scripts: signGP: properly returning 1 in case of errors
[pandora-x-loader.git] / Makefile
index ea93acb..d134fdc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -70,6 +70,7 @@ LIBS += lib/lib$(ARCH).a
 LIBS += fs/fat/libfat.a
 LIBS += disk/libdisk.a
 LIBS += drivers/libdrivers.a
+LIBS += common/libcommon.a
 .PHONY : $(LIBS)
 
 # Add GCC lib
@@ -83,6 +84,12 @@ ALL = x-load.bin System.map
 
 all:           $(ALL)
 
+ift:   $(ALL) x-load.bin.ift
+
+x-load.bin.ift: signGP System.map x-load.bin
+       TEXT_BASE=`grep -w _start System.map|cut -d ' ' -f1`
+       ./signGP x-load.bin $(TEXT_BASE)
+       cp x-load.bin.ift MLO
  
 x-load.bin:    x-load
                $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
@@ -105,6 +112,9 @@ System.map: x-load
 oneboot:       x-load.bin
                scripts/mkoneboot.sh
 
+signGP:                scripts/signGP.c
+               gcc -Wall -g -O3 -o signGP  $<
+
 #########################################################################
 else
 all install x-load x-load.srec oneboot depend dep:
@@ -153,9 +163,14 @@ overo_config :     unconfig
        @./mkconfig $(@:_config=) arm omap3 overo
 
 omap3530beagle_config :    unconfig
-
        @./mkconfig $(@:_config=) arm omap3 omap3530beagle
 
+#########################################################################
+## OMAP4 (ARM-CortexA9) Systems
+#########################################################################
+omap4430panda_config :    unconfig
+       @./mkconfig $(@:_config=) arm omap4 omap4430panda
+
 #########################################################################
 
 clean:
@@ -171,7 +186,7 @@ clobber:    clean
                | xargs rm -f
        rm -f $(OBJS) *.bak tags TAGS
        rm -fr *.*~
-       rm -f x-load x-load.map $(ALL) 
+       rm -f x-load x-load.map $(ALL) x-load.bin.ift signGP MLO
        rm -f include/asm/proc include/asm/arch
 
 mrproper \