]> git.proxmox.com Git - qemu.git/blob - pc-bios/optionrom/Makefile
Merge remote-tracking branch 'pmaydell/tags/pull-arm-devs-20130722' into staging
[qemu.git] / pc-bios / optionrom / Makefile
1 all: build-all
2 # Dummy command so that make thinks it has done something
3 @true
4
5 include ../../config-host.mak
6 include $(SRC_PATH)/rules.mak
7
8 $(call set-vpath, $(SRC_PATH)/pc-bios/optionrom)
9
10 .PHONY : all clean build-all
11
12 CFLAGS := -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin
13 CFLAGS += -I$(SRC_PATH)
14 CFLAGS += $(call cc-option, $(CFLAGS), -fno-stack-protector)
15 QEMU_CFLAGS = $(CFLAGS)
16
17 build-all: multiboot.bin linuxboot.bin kvmvapic.bin
18
19 # suppress auto-removal of intermediate files
20 .SECONDARY:
21
22 %.img: %.o
23 $(call quiet-command,$(LD) -Ttext 0 -e _start -s -o $@ $<," Building $(TARGET_DIR)$@")
24
25 %.raw: %.img
26 $(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@," Building $(TARGET_DIR)$@")
27
28 %.bin: %.raw
29 $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/signrom.py $< $@," Signing $(TARGET_DIR)$@")
30
31 clean:
32 rm -f *.o *.d *.raw *.img *.bin *~