Statistics
| Branch: | Revision:

root / pc-bios / optionrom / Makefile @ 3e4e4646

History | View | Annotate | Download (760 Bytes)

1
all: build-all
2
# Dummy command so that make thinks it has done something
3
	@true
4

    
5
include ../../config-host.mak
6
include $(SRC_PATH)/rules.mak
7

    
8
VPATH=$(SRC_PATH)/pc-bios/optionrom
9

    
10
CFLAGS := -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin
11
CFLAGS += -I$(SRC_PATH)
12
CFLAGS += $(call cc-option, $(CFLAGS), -fno-stack-protector)
13
QEMU_CFLAGS = $(CFLAGS)
14

    
15
build-all: multiboot.bin
16

    
17
%.img: %.o
18
	$(call quiet-command,$(LD) -Ttext 0 -e _start -s -o $@ $<,"  Building $(TARGET_DIR)$@")
19

    
20
%.raw: %.img
21
	$(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@,"  Building $(TARGET_DIR)$@")
22

    
23
%.bin: %.raw
24
	$(call quiet-command,$(SHELL) $(SRC_PATH)/pc-bios/optionrom/signrom.sh $< $@,"  Signing $(TARGET_DIR)$@")
25

    
26
clean:
27
	rm -f *.o *.d *.raw *.img *.bin *~