diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-11 08:48:29 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-16 08:28:14 -0500 |
commit | 7aa486fe6bac2a471b92c3c4aef1ba5c214f06df (patch) | |
tree | 9e2186b881d9c2fefd2d27b6650a4cc9e30628b4 /pc-bios | |
parent | b8c0e7d7c4e9fe3ec00757053a33605eda1c5ac4 (diff) |
Fix multiboot.bin build on mingw32
This combination of ld/object was suggested by Bartlomiej Celary
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'pc-bios')
-rw-r--r-- | pc-bios/optionrom/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pc-bios/optionrom/Makefile b/pc-bios/optionrom/Makefile index 7f987d898f..69e6c22acc 100644 --- a/pc-bios/optionrom/Makefile +++ b/pc-bios/optionrom/Makefile @@ -3,7 +3,6 @@ all: build-all include ../../config-host.mak VPATH=$(SRC_PATH)/pc-bios/optionrom -OBJCOPY=objcopy # from kernel sources - scripts/Kbuild.include # try-run @@ -35,9 +34,12 @@ build-all: multiboot.bin $(CC) $(CFLAGS) -o $@ -c $< %.img: %.o - $(LD) --oformat binary -Ttext 0 -o $@ $< + $(LD) -Ttext 0 -e _start -s -o $@ $< -%.bin: %.img +%.raw: %.img + $(OBJCOPY) -O binary -j .text $< $@ + +%.bin: %.raw $(SRC_PATH)/pc-bios/optionrom/signrom.sh $< $@ cp $@ $(SRC_PATH)/pc-bios/ |