]>
Commit | Line | Data |
---|---|---|
253d0942 | 1 | all: build-all |
c05ac895 PB |
2 | # Dummy command so that make thinks it has done something |
3 | @true | |
253d0942 AG |
4 | |
5 | include ../../config-host.mak | |
925ce05f | 6 | include $(SRC_PATH)/rules.mak |
253d0942 | 7 | |
076d2471 PB |
8 | $(call set-vpath, $(SRC_PATH)/pc-bios/optionrom) |
9 | ||
4888ec26 | 10 | .PHONY : all clean build-all |
253d0942 | 11 | |
fc3baad7 | 12 | CFLAGS := -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin |
a558ee17 | 13 | CFLAGS += -I$(SRC_PATH) |
fc3baad7 | 14 | CFLAGS += $(call cc-option, $(CFLAGS), -fno-stack-protector) |
9b083b62 | 15 | QEMU_CFLAGS = $(CFLAGS) |
253d0942 | 16 | |
2a2af967 | 17 | build-all: multiboot.bin linuxboot.bin kvmvapic.bin |
253d0942 | 18 | |
6fbcef29 JK |
19 | # suppress auto-removal of intermediate files |
20 | .SECONDARY: | |
21 | ||
253d0942 | 22 | %.img: %.o |
791e08c7 | 23 | $(call quiet-command,$(LD) -Ttext 0 -e _start -s -o $@ $<," Building $(TARGET_DIR)$@") |
253d0942 | 24 | |
7aa486fe | 25 | %.raw: %.img |
791e08c7 | 26 | $(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@," Building $(TARGET_DIR)$@") |
7aa486fe AL |
27 | |
28 | %.bin: %.raw | |
0d6b9cc7 | 29 | $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/signrom.py $< $@," Signing $(TARGET_DIR)$@") |
253d0942 | 30 | |
253d0942 | 31 | clean: |
3e4e4646 | 32 | rm -f *.o *.d *.raw *.img *.bin *~ |