Revision 791e08c7
b/pc-bios/optionrom/Makefile | ||
---|---|---|
1 | 1 |
all: build-all |
2 | 2 |
|
3 | 3 |
include ../../config-host.mak |
4 |
include ../../rules.mak |
|
4 | 5 |
|
5 | 6 |
VPATH=$(SRC_PATH)/pc-bios/optionrom |
6 | 7 |
|
... | ... | |
22 | 23 |
cc-option-yn = $(call try-run,\ |
23 | 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 | 28 |
ifeq ($(call cc-option-yn,-fno-stack-protector),y) |
28 |
CFLAGS += -fno-stack-protector |
|
29 |
CPPFLAGS += -fno-stack-protector
|
|
29 | 30 |
endif |
30 | 31 |
|
31 | 32 |
build-all: multiboot.bin |
32 | 33 |
|
33 |
%.o: %.S |
|
34 |
$(CC) $(CFLAGS) -o $@ -c $< |
|
35 |
|
|
36 | 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 | 37 |
%.raw: %.img |
40 |
$(OBJCOPY) -O binary -j .text $< $@
|
|
38 |
$(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@," Building $(TARGET_DIR)$@")
|
|
41 | 39 |
|
42 | 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 | 43 |
clean: |
46 | 44 |
$(RM) *.o *.img *.bin *~ |
Also available in: Unified diff