]>
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 | |
253d0942 | 9 | |
a558ee17 JQ |
10 | CFLAGS = -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin |
11 | CFLAGS += -I$(SRC_PATH) | |
8a2e6ab5 | 12 | CFLAGS += $(call cc-option, -fno-stack-protector,"") |
9b083b62 | 13 | QEMU_CFLAGS = $(CFLAGS) |
253d0942 AG |
14 | |
15 | build-all: multiboot.bin | |
16 | ||
253d0942 | 17 | %.img: %.o |
791e08c7 | 18 | $(call quiet-command,$(LD) -Ttext 0 -e _start -s -o $@ $<," Building $(TARGET_DIR)$@") |
253d0942 | 19 | |
7aa486fe | 20 | %.raw: %.img |
791e08c7 | 21 | $(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@," Building $(TARGET_DIR)$@") |
7aa486fe AL |
22 | |
23 | %.bin: %.raw | |
0ff6697d | 24 | $(call quiet-command,$(SHELL) $(SRC_PATH)/pc-bios/optionrom/signrom.sh $< $@," Signing $(TARGET_DIR)$@") |
253d0942 | 25 | |
253d0942 | 26 | clean: |
89e671e3 | 27 | $(RM) *.o *.img *.bin *~ |