2009-06-29 17:37:40 +04:00
|
|
|
all: build-all
|
|
|
|
|
|
|
|
include ../../config-host.mak
|
2009-07-21 16:11:19 +04:00
|
|
|
include ../../rules.mak
|
2009-06-29 17:37:40 +04:00
|
|
|
|
|
|
|
VPATH=$(SRC_PATH)/pc-bios/optionrom
|
|
|
|
|
2009-07-21 16:11:19 +04:00
|
|
|
CPPFLAGS = -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin
|
|
|
|
CPPFLAGS += -I$(SRC_PATH)
|
2009-07-21 16:11:20 +04:00
|
|
|
CPPFLAGS += $(call cc-option, $(CFLAGS), -fno-stack-protector,"")
|
2009-06-29 17:37:40 +04:00
|
|
|
|
|
|
|
build-all: multiboot.bin
|
|
|
|
|
|
|
|
%.img: %.o
|
2009-07-21 16:11:19 +04:00
|
|
|
$(call quiet-command,$(LD) -Ttext 0 -e _start -s -o $@ $<," Building $(TARGET_DIR)$@")
|
2009-06-29 17:37:40 +04:00
|
|
|
|
2009-07-11 17:48:29 +04:00
|
|
|
%.raw: %.img
|
2009-07-21 16:11:19 +04:00
|
|
|
$(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@," Building $(TARGET_DIR)$@")
|
2009-07-11 17:48:29 +04:00
|
|
|
|
|
|
|
%.bin: %.raw
|
2009-07-21 16:11:19 +04:00
|
|
|
$(call quiet-command,$(SRC_PATH)/pc-bios/optionrom/signrom.sh $< $@," Signing $(TARGET_DIR)$@")
|
2009-06-29 17:37:40 +04:00
|
|
|
|
|
|
|
clean:
|
2009-07-02 00:08:21 +04:00
|
|
|
$(RM) *.o *.img *.bin *~
|