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 <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
This commit is contained in:
Stefan Reinauer 2010-03-25 14:18:57 +00:00 committed by Stefan Reinauer
parent 715d6e0982
commit 86dbe15017
1 changed files with 10 additions and 0 deletions

View File

@ -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