[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/5] use cc-option for optionrom
From: |
quintela |
Subject: |
[Qemu-devel] [PATCH 3/5] use cc-option for optionrom |
Date: |
Tue, 21 Jul 2009 14:11:20 +0200 |
From: Juan Quintela <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>
---
pc-bios/optionrom/Makefile | 22 +---------------------
1 files changed, 1 insertions(+), 21 deletions(-)
diff --git a/pc-bios/optionrom/Makefile b/pc-bios/optionrom/Makefile
index 2a0a7e7..b3f487b 100644
--- a/pc-bios/optionrom/Makefile
+++ b/pc-bios/optionrom/Makefile
@@ -5,29 +5,9 @@ include ../../rules.mak
VPATH=$(SRC_PATH)/pc-bios/optionrom
-# from kernel sources - scripts/Kbuild.include
-# try-run
-# Usage: option = $(call try-run, $(CC)...-o "$$TMP",option-ok,otherwise)
-# Exit code chooses option. "$$TMP" is can be used as temporary file and
-# is automatically cleaned up.
-try-run = $(shell set -e; \
- TMP="$(TMPOUT).$$$$.tmp"; \
- if ($(1)) >/dev/null 2>&1; \
- then echo "$(2)"; \
- else echo "$(3)"; \
- fi; \
- rm -f "$$TMP")
-
-# cc-option-yn
-# Usage: flag := $(call cc-option-yn,-march=winchip-c6)
-cc-option-yn = $(call try-run,\
- $(CC) $(KBUILD_CFLAGS) $(1) -S -xc /dev/null -o "$$TMP",y,n)
-
CPPFLAGS = -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin
CPPFLAGS += -I$(SRC_PATH)
-ifeq ($(call cc-option-yn,-fno-stack-protector),y)
-CPPFLAGS += -fno-stack-protector
-endif
+CPPFLAGS += $(call cc-option, $(CFLAGS), -fno-stack-protector,"")
build-all: multiboot.bin
--
1.6.2.5
- [Qemu-devel] [PATCH 0/5] optionrom build fixes, quintela, 2009/07/21
- [Qemu-devel] [PATCH 1/5] move cc-option definition to rules.mak, quintela, 2009/07/21
- [Qemu-devel] [PATCH 3/5] use cc-option for optionrom,
quintela <=
- [Qemu-devel] [PATCH 2/5] Use quiet-command for building optionrom, quintela, 2009/07/21
- [Qemu-devel] [PATCH 5/5] Don't build option roms on Mac OS X, quintela, 2009/07/21
- [Qemu-devel] [PATCH 4/5] multiboot.bin is a generated file, quintela, 2009/07/21
- [Qemu-devel] Re: [PATCH 0/5] optionrom build fixes, Alexander Graf, 2009/07/21