aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2010-03-25 14:18:57 +0000
committerStefan Reinauer <stepan@openbios.org>2010-03-25 14:18:57 +0000
commit86dbe15017d2042e6b15d89b7f2e19e100a884eb (patch)
treea19ab4003c605935a51770f7609103dbb8e8b84b
parent715d6e0982ad05a317478738acb8d7e3d3cf85da (diff)
downloadcoreboot-86dbe15017d2042e6b15d89b7f2e19e100a884eb.tar.gz
coreboot-86dbe15017d2042e6b15d89b7f2e19e100a884eb.tar.xz
coreboot-86dbe15017d2042e6b15d89b7f2e19e100a884eb.zip
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
-rwxr-xr-xutil/abuild/abuild10
1 files changed, 10 insertions, 0 deletions
diff --git a/util/abuild/abuild b/util/abuild/abuild
index 3325fed6e..eca9315d7 100755
--- a/util/abuild/abuild
+++ b/util/abuild/abuild
@@ -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