migration_init: Fix lock initialisation/make it explicit
[qemu/cris-port.git] / pc-bios / optionrom / Makefile
blobce4852a4d55d114a6bc21d92da8b0b0b90e0e6c3
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 $(call set-vpath, $(SRC_PATH)/pc-bios/optionrom)
10 .PHONY : all clean build-all
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 CFLAGS += $(CFLAGS_NOPIE)
16 QEMU_CFLAGS = $(CFLAGS)
18 build-all: multiboot.bin linuxboot.bin kvmvapic.bin
20 # suppress auto-removal of intermediate files
21 .SECONDARY:
23 %.img: %.o
24 $(call quiet-command,$(LD) $(LDFLAGS_NOPIE) -Ttext 0 -e _start -s -o $@ $<," Building $(TARGET_DIR)$@")
26 %.raw: %.img
27 $(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@," Building $(TARGET_DIR)$@")
29 %.bin: %.raw
30 $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/signrom.py $< $@," Signing $(TARGET_DIR)$@")
32 clean:
33 rm -f *.o *.d *.raw *.img *.bin *~