]>
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 AG |
7 | |
8 | VPATH=$(SRC_PATH)/pc-bios/optionrom | |
4888ec26 | 9 | .PHONY : all clean build-all |
253d0942 | 10 | |
fc3baad7 | 11 | CFLAGS := -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin |
a558ee17 | 12 | CFLAGS += -I$(SRC_PATH) |
fc3baad7 | 13 | CFLAGS += $(call cc-option, $(CFLAGS), -fno-stack-protector) |
9b083b62 | 14 | QEMU_CFLAGS = $(CFLAGS) |
253d0942 | 15 | |
57a46d05 | 16 | build-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 | 27 | clean: |
3e4e4646 | 28 | rm -f *.o *.d *.raw *.img *.bin *~ |