Commit 791e08c753a9f9be3c3880b4ea83b6dfa4b6ccad
Committed by
Anthony Liguori
1 parent
70071e17
Use quiet-command for building optionrom
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing
1 changed file
with
7 additions
and
9 deletions
pc-bios/optionrom/Makefile
1 | all: build-all | 1 | all: build-all |
2 | 2 | ||
3 | include ../../config-host.mak | 3 | include ../../config-host.mak |
4 | +include ../../rules.mak | ||
4 | 5 | ||
5 | VPATH=$(SRC_PATH)/pc-bios/optionrom | 6 | VPATH=$(SRC_PATH)/pc-bios/optionrom |
6 | 7 | ||
@@ -22,25 +23,22 @@ try-run = $(shell set -e; \ | @@ -22,25 +23,22 @@ try-run = $(shell set -e; \ | ||
22 | cc-option-yn = $(call try-run,\ | 23 | cc-option-yn = $(call try-run,\ |
23 | $(CC) $(KBUILD_CFLAGS) $(1) -S -xc /dev/null -o "$$TMP",y,n) | 24 | $(CC) $(KBUILD_CFLAGS) $(1) -S -xc /dev/null -o "$$TMP",y,n) |
24 | 25 | ||
25 | -CFLAGS = -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin | ||
26 | -CFLAGS += -I$(SRC_PATH) | 26 | +CPPFLAGS = -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin |
27 | +CPPFLAGS += -I$(SRC_PATH) | ||
27 | ifeq ($(call cc-option-yn,-fno-stack-protector),y) | 28 | ifeq ($(call cc-option-yn,-fno-stack-protector),y) |
28 | -CFLAGS += -fno-stack-protector | 29 | +CPPFLAGS += -fno-stack-protector |
29 | endif | 30 | endif |
30 | 31 | ||
31 | build-all: multiboot.bin | 32 | build-all: multiboot.bin |
32 | 33 | ||
33 | -%.o: %.S | ||
34 | - $(CC) $(CFLAGS) -o $@ -c $< | ||
35 | - | ||
36 | %.img: %.o | 34 | %.img: %.o |
37 | - $(LD) -Ttext 0 -e _start -s -o $@ $< | 35 | + $(call quiet-command,$(LD) -Ttext 0 -e _start -s -o $@ $<," Building $(TARGET_DIR)$@") |
38 | 36 | ||
39 | %.raw: %.img | 37 | %.raw: %.img |
40 | - $(OBJCOPY) -O binary -j .text $< $@ | 38 | + $(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@," Building $(TARGET_DIR)$@") |
41 | 39 | ||
42 | %.bin: %.raw | 40 | %.bin: %.raw |
43 | - $(SRC_PATH)/pc-bios/optionrom/signrom.sh $< $@ | 41 | + $(call quiet-command,$(SRC_PATH)/pc-bios/optionrom/signrom.sh $< $@," Signing $(TARGET_DIR)$@") |
44 | 42 | ||
45 | clean: | 43 | clean: |
46 | $(RM) *.o *.img *.bin *~ | 44 | $(RM) *.o *.img *.bin *~ |