Revision 7aa486fe pc-bios/optionrom/Makefile
b/pc-bios/optionrom/Makefile | ||
---|---|---|
3 | 3 |
include ../../config-host.mak |
4 | 4 |
|
5 | 5 |
VPATH=$(SRC_PATH)/pc-bios/optionrom |
6 |
OBJCOPY=objcopy |
|
7 | 6 |
|
8 | 7 |
# from kernel sources - scripts/Kbuild.include |
9 | 8 |
# try-run |
... | ... | |
35 | 34 |
$(CC) $(CFLAGS) -o $@ -c $< |
36 | 35 |
|
37 | 36 |
%.img: %.o |
38 |
$(LD) --oformat binary -Ttext 0 -o $@ $<
|
|
37 |
$(LD) -Ttext 0 -e _start -s -o $@ $<
|
|
39 | 38 |
|
40 |
%.bin: %.img |
|
39 |
%.raw: %.img |
|
40 |
$(OBJCOPY) -O binary -j .text $< $@ |
|
41 |
|
|
42 |
%.bin: %.raw |
|
41 | 43 |
$(SRC_PATH)/pc-bios/optionrom/signrom.sh $< $@ |
42 | 44 |
cp $@ $(SRC_PATH)/pc-bios/ |
43 | 45 |
|
Also available in: Unified diff