aboutsummaryrefslogtreecommitdiff
path: root/pc-bios/optionrom/Makefile
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2009-07-01 22:08:21 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-09 16:06:38 -0500
commit89e671e3f3d5754e78efc447f13386ced719f1f7 (patch)
tree3d933278757307e5f9c08bae320c303a318b12af /pc-bios/optionrom/Makefile
parent1cec71e3597b6ab8df939dff90cc05515d0f0272 (diff)
Replace signrom with shell script v3
In order to not execute code we just compiled, let's replace signrom with a shell script that does the same thing while staying compatible to pretty much every system available. This should make cross-compilation for windows easier. aliguori: fix build when objdir != srcdir Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'pc-bios/optionrom/Makefile')
-rw-r--r--pc-bios/optionrom/Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/pc-bios/optionrom/Makefile b/pc-bios/optionrom/Makefile
index c4a6f42625..7f987d898f 100644
--- a/pc-bios/optionrom/Makefile
+++ b/pc-bios/optionrom/Makefile
@@ -37,12 +37,9 @@ build-all: multiboot.bin
%.img: %.o
$(LD) --oformat binary -Ttext 0 -o $@ $<
-%.bin: %.img signrom
- ./signrom $< $@
+%.bin: %.img
+ $(SRC_PATH)/pc-bios/optionrom/signrom.sh $< $@
cp $@ $(SRC_PATH)/pc-bios/
-signrom: signrom.c
- $(CC) -o $@ -g -Wall $^
-
clean:
- $(RM) *.o *.img *.bin signrom *~
+ $(RM) *.o *.img *.bin *~