summaryrefslogtreecommitdiff
path: root/util/abuild
diff options
context:
space:
mode:
Diffstat (limited to 'util/abuild')
-rwxr-xr-xutil/abuild/abuild10
1 files changed, 10 insertions, 0 deletions
diff --git a/util/abuild/abuild b/util/abuild/abuild
index 3325fed6e3..eca9315d7f 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