[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/5] Use quiet-command for building optionrom
From: |
quintela |
Subject: |
[Qemu-devel] [PATCH 2/5] Use quiet-command for building optionrom |
Date: |
Tue, 21 Jul 2009 14:11:19 +0200 |
From: Juan Quintela <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>
---
pc-bios/optionrom/Makefile | 16 +++++++---------
1 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/pc-bios/optionrom/Makefile b/pc-bios/optionrom/Makefile
index 88fbc4c..2a0a7e7 100644
--- a/pc-bios/optionrom/Makefile
+++ b/pc-bios/optionrom/Makefile
@@ -1,6 +1,7 @@
all: build-all
include ../../config-host.mak
+include ../../rules.mak
VPATH=$(SRC_PATH)/pc-bios/optionrom
@@ -22,25 +23,22 @@ try-run = $(shell set -e; \
cc-option-yn = $(call try-run,\
$(CC) $(KBUILD_CFLAGS) $(1) -S -xc /dev/null -o "$$TMP",y,n)
-CFLAGS = -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin
-CFLAGS += -I$(SRC_PATH)
+CPPFLAGS = -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin
+CPPFLAGS += -I$(SRC_PATH)
ifeq ($(call cc-option-yn,-fno-stack-protector),y)
-CFLAGS += -fno-stack-protector
+CPPFLAGS += -fno-stack-protector
endif
build-all: multiboot.bin
-%.o: %.S
- $(CC) $(CFLAGS) -o $@ -c $<
-
%.img: %.o
- $(LD) -Ttext 0 -e _start -s -o $@ $<
+ $(call quiet-command,$(LD) -Ttext 0 -e _start -s -o $@ $<," Building
$(TARGET_DIR)$@")
%.raw: %.img
- $(OBJCOPY) -O binary -j .text $< $@
+ $(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@," Building
$(TARGET_DIR)$@")
%.bin: %.raw
- $(SRC_PATH)/pc-bios/optionrom/signrom.sh $< $@
+ $(call quiet-command,$(SRC_PATH)/pc-bios/optionrom/signrom.sh $< $@,"
Signing $(TARGET_DIR)$@")
clean:
$(RM) *.o *.img *.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, 2009/07/21
- [Qemu-devel] [PATCH 2/5] Use quiet-command for building optionrom,
quintela <=
- [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