提交 791e08c7 编写于 作者: J Juan Quintela 提交者: Anthony Liguori

Use quiet-command for building optionrom

Signed-off-by: NJuan Quintela <quintela@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 70071e17
all: build-all all: build-all
include ../../config-host.mak include ../../config-host.mak
include ../../rules.mak
VPATH=$(SRC_PATH)/pc-bios/optionrom VPATH=$(SRC_PATH)/pc-bios/optionrom
...@@ -22,25 +23,22 @@ try-run = $(shell set -e; \ ...@@ -22,25 +23,22 @@ try-run = $(shell set -e; \
cc-option-yn = $(call try-run,\ cc-option-yn = $(call try-run,\
$(CC) $(KBUILD_CFLAGS) $(1) -S -xc /dev/null -o "$$TMP",y,n) $(CC) $(KBUILD_CFLAGS) $(1) -S -xc /dev/null -o "$$TMP",y,n)
CFLAGS = -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin CPPFLAGS = -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin
CFLAGS += -I$(SRC_PATH) CPPFLAGS += -I$(SRC_PATH)
ifeq ($(call cc-option-yn,-fno-stack-protector),y) ifeq ($(call cc-option-yn,-fno-stack-protector),y)
CFLAGS += -fno-stack-protector CPPFLAGS += -fno-stack-protector
endif endif
build-all: multiboot.bin build-all: multiboot.bin
%.o: %.S
$(CC) $(CFLAGS) -o $@ -c $<
%.img: %.o %.img: %.o
$(LD) -Ttext 0 -e _start -s -o $@ $< $(call quiet-command,$(LD) -Ttext 0 -e _start -s -o $@ $<," Building $(TARGET_DIR)$@")
%.raw: %.img %.raw: %.img
$(OBJCOPY) -O binary -j .text $< $@ $(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@," Building $(TARGET_DIR)$@")
%.bin: %.raw %.bin: %.raw
$(SRC_PATH)/pc-bios/optionrom/signrom.sh $< $@ $(call quiet-command,$(SRC_PATH)/pc-bios/optionrom/signrom.sh $< $@," Signing $(TARGET_DIR)$@")
clean: clean:
$(RM) *.o *.img *.bin *~ $(RM) *.o *.img *.bin *~
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册