Author: stepan
Date: Thu Mar 25 15:18:57 2010
New Revision: 5288
URL: https://tracker.coreboot.org/trac/coreboot/changeset/5288

Log:
One feature I've been really missing since we switched to
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 <[email protected]>
Acked-by: Stefan Reinauer <[email protected]>

Modified:
   trunk/util/abuild/abuild

Modified: trunk/util/abuild/abuild
==============================================================================
--- trunk/util/abuild/abuild    Wed Mar 24 23:39:40 2010        (r5287)
+++ trunk/util/abuild/abuild    Thu Mar 25 15:18:57 2010        (r5288)
@@ -210,6 +210,16 @@
        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

-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to