2009-06-29 15:37:40 +02:00
|
|
|
all: build-all
|
2009-07-31 14:18:32 +02:00
|
|
|
# Dummy command so that make thinks it has done something
|
|
|
|
@true
|
2009-06-29 15:37:40 +02:00
|
|
|
|
|
|
|
include ../../config-host.mak
|
2009-07-27 21:59:36 +02:00
|
|
|
include $(SRC_PATH)/rules.mak
|
2009-06-29 15:37:40 +02:00
|
|
|
|
|
|
|
VPATH=$(SRC_PATH)/pc-bios/optionrom
|
|
|
|
|
2009-09-11 18:45:40 +02:00
|
|
|
CFLAGS := -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin
|
2009-08-03 14:46:21 +02:00
|
|
|
CFLAGS += -I$(SRC_PATH)
|
2009-09-11 18:45:40 +02:00
|
|
|
CFLAGS += $(call cc-option, $(CFLAGS), -fno-stack-protector)
|
2009-08-31 00:48:46 +02:00
|
|
|
QEMU_CFLAGS = $(CFLAGS)
|
2009-06-29 15:37:40 +02:00
|
|
|
|
|
|
|
build-all: multiboot.bin
|
|
|
|
|
|
|
|
%.img: %.o
|
2009-07-21 14:11:19 +02:00
|
|
|
$(call quiet-command,$(LD) -Ttext 0 -e _start -s -o $@ $<," Building $(TARGET_DIR)$@")
|
2009-06-29 15:37:40 +02:00
|
|
|
|
2009-07-11 15:48:29 +02:00
|
|
|
%.raw: %.img
|
2009-07-21 14:11:19 +02:00
|
|
|
$(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@," Building $(TARGET_DIR)$@")
|
2009-07-11 15:48:29 +02:00
|
|
|
|
|
|
|
%.bin: %.raw
|
2009-08-10 01:40:16 +02:00
|
|
|
$(call quiet-command,$(SHELL) $(SRC_PATH)/pc-bios/optionrom/signrom.sh $< $@," Signing $(TARGET_DIR)$@")
|
2009-06-29 15:37:40 +02:00
|
|
|
|
|
|
|
clean:
|
2009-08-31 00:41:35 +02:00
|
|
|
$(RM) *.o *.d *.raw *.img *.bin *~
|