]> git.proxmox.com Git - qemu.git/blame - pc-bios/optionrom/Makefile
Convert linux bootrom to external rom and fw_cfg
[qemu.git] / pc-bios / optionrom / Makefile
CommitLineData
253d0942 1all: build-all
c05ac895
PB
2# Dummy command so that make thinks it has done something
3 @true
253d0942
AG
4
5include ../../config-host.mak
925ce05f 6include $(SRC_PATH)/rules.mak
253d0942
AG
7
8VPATH=$(SRC_PATH)/pc-bios/optionrom
4888ec26 9.PHONY : all clean build-all
253d0942 10
fc3baad7 11CFLAGS := -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin
a558ee17 12CFLAGS += -I$(SRC_PATH)
fc3baad7 13CFLAGS += $(call cc-option, $(CFLAGS), -fno-stack-protector)
9b083b62 14QEMU_CFLAGS = $(CFLAGS)
253d0942 15
57a46d05 16build-all: multiboot.bin linuxboot.bin
253d0942 17
253d0942 18%.img: %.o
791e08c7 19 $(call quiet-command,$(LD) -Ttext 0 -e _start -s -o $@ $<," Building $(TARGET_DIR)$@")
253d0942 20
7aa486fe 21%.raw: %.img
791e08c7 22 $(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@," Building $(TARGET_DIR)$@")
7aa486fe
AL
23
24%.bin: %.raw
0ff6697d 25 $(call quiet-command,$(SHELL) $(SRC_PATH)/pc-bios/optionrom/signrom.sh $< $@," Signing $(TARGET_DIR)$@")
253d0942 26
253d0942 27clean:
3e4e4646 28 rm -f *.o *.d *.raw *.img *.bin *~