Statistics
| Branch: | Revision:

root / pc-bios / optionrom / Makefile @ 57a46d05

History | View | Annotate | Download (803 Bytes)

1 253d0942 Alexander Graf
all: build-all
2 c05ac895 Paul Brook
# Dummy command so that make thinks it has done something
3 c05ac895 Paul Brook
	@true
4 253d0942 Alexander Graf
5 253d0942 Alexander Graf
include ../../config-host.mak
6 925ce05f Blue Swirl
include $(SRC_PATH)/rules.mak
7 253d0942 Alexander Graf
8 253d0942 Alexander Graf
VPATH=$(SRC_PATH)/pc-bios/optionrom
9 4888ec26 Juan Quintela
.PHONY : all clean build-all
10 253d0942 Alexander Graf
11 fc3baad7 Thomas Monjalon
CFLAGS := -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin
12 a558ee17 Juan Quintela
CFLAGS += -I$(SRC_PATH)
13 fc3baad7 Thomas Monjalon
CFLAGS += $(call cc-option, $(CFLAGS), -fno-stack-protector)
14 9b083b62 Juan Quintela
QEMU_CFLAGS = $(CFLAGS)
15 253d0942 Alexander Graf
16 57a46d05 Alexander Graf
build-all: multiboot.bin linuxboot.bin
17 253d0942 Alexander Graf
18 253d0942 Alexander Graf
%.img: %.o
19 791e08c7 Juan Quintela
	$(call quiet-command,$(LD) -Ttext 0 -e _start -s -o $@ $<,"  Building $(TARGET_DIR)$@")
20 253d0942 Alexander Graf
21 7aa486fe Anthony Liguori
%.raw: %.img
22 791e08c7 Juan Quintela
	$(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@,"  Building $(TARGET_DIR)$@")
23 7aa486fe Anthony Liguori
24 7aa486fe Anthony Liguori
%.bin: %.raw
25 0ff6697d malc
	$(call quiet-command,$(SHELL) $(SRC_PATH)/pc-bios/optionrom/signrom.sh $< $@,"  Signing $(TARGET_DIR)$@")
26 253d0942 Alexander Graf
27 253d0942 Alexander Graf
clean:
28 3e4e4646 Juan Quintela
	rm -f *.o *.d *.raw *.img *.bin *~