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