One feature I've been really missing since we switched to
authorStefan Reinauer <stepan@coresystems.de>
Thu, 25 Mar 2010 14:18:57 +0000 (14:18 +0000)
committerStefan Reinauer <stepan@openbios.org>
Thu, 25 Mar 2010 14:18:57 +0000 (14:18 +0000)
Kconfig is that after an abuild run you could cd to
coreboot-builds/mainboard_name and just run "make" to rebuild
that one target (and get a non-parallel build easily)

This small add-on to abuild brings that feature back.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5288 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

util/abuild/abuild

index 3325fed6e32cd6f06ac583e9414b47a73ddaa3c8..eca9315d7fb9347a7ae228be857ef5be238e7e2a 100755 (executable)
@@ -210,6 +210,16 @@ function create_buildenv
        MAINBOARD=$2
        CONFIG=$3
        create_config $VENDOR $MAINBOARD $CONFIG
+
+       # Allow simple "make" in the target directory
+       MAKEFILE=$TARGET/${VENDOR}_${MAINBOARD}/Makefile
+       echo "# autogenerated makefile" > $MAKEFILE
+       echo "TOP=$ROOT" >> $MAKEFILE
+       echo "OUT=$TARGET/${VENDOR}_${MAINBOARD}" >> $MAKEFILE
+       echo "coreboot.rom:" >> $MAKEFILE
+       echo "  cp config.build \$(TOP)/.config" >> $MAKEFILE
+       echo "  cd \$(TOP); \$(MAKE) oldconfig O=\$(OUT)" >> $MAKEFILE
+       echo "  cd \$(TOP); \$(MAKE) O=\$(OUT)" >> $MAKEFILE
 }
 
 function compile_target