add roms/pcbios
[armpft.git] / pc-bios / optionrom / Makefile
blobb01a54ec2d80e09e87e25df25ec652a9a88d9e43
1 all: build-all
2 # Dummy command so that make thinks it has done something
3 @true
5 include ../../config-host.mak
6 include $(SRC_PATH)/rules.mak
8 VPATH=$(SRC_PATH)/pc-bios/optionrom
9 .PHONY : all clean build-all
11 CFLAGS := -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin
12 CFLAGS += -I$(SRC_PATH)
13 CFLAGS += $(call cc-option, $(CFLAGS), -fno-stack-protector)
14 QEMU_CFLAGS = $(CFLAGS)
16 build-all: multiboot.bin
18 %.img: %.o
19 $(call quiet-command,$(LD) -Ttext 0 -e _start -s -o $@ $<," Building $(TARGET_DIR)$@")
21 %.raw: %.img
22 $(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@," Building $(TARGET_DIR)$@")
24 %.bin: %.raw
25 $(call quiet-command,$(SHELL) $(SRC_PATH)/pc-bios/optionrom/signrom.sh $< $@," Signing $(TARGET_DIR)$@")
27 clean:
28 rm -f *.o *.d *.raw *.img *.bin *~