summaryrefslogtreecommitdiff
path: root/buildconf
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2013-10-16 12:30:36 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2013-10-16 12:30:36 +0200
commitaaed099138dbf13e9dffcc89f47df08130fb08dd (patch)
tree79e56297ea56892830f0f3cb7a3a2614e7fbd156 /buildconf
parent6ad7ef43c5d9a16922795866018885c8e446e7e4 (diff)
build: add a sample script for setting up the environment
Diffstat (limited to 'buildconf')
-rw-r--r--buildconf/export21
1 files changed, 21 insertions, 0 deletions
diff --git a/buildconf/export b/buildconf/export
new file mode 100644
index 0000000..cd41736
--- /dev/null
+++ b/buildconf/export
@@ -0,0 +1,21 @@
+#!/bin/sh
+ECHO=`which echo`
+BUILDDIR="../../build"
+FIRST_TIME=0
+cd stuff/openembedded-core/
+if [ ! -f ${BUILDDIR}/conf/local.conf ]; then
+ FIRST_TIME=1
+fi
+
+. oe-init-build-env ${BUILDDIR}
+
+if [ $FIRST_TIME -eq 1 ]; then
+ mkdir -p conf
+ cp ../stuff/meta-toradex/buildconf/*.conf
+
+ echo ""
+ $ECHO -e "\033[1mA sample conf/local.conf file has been created"
+ $ECHO -e "Check and edit the file to adapt to your local needs\033[0m"
+ echo "The following likely need your attention:"
+ echo "BB_NUMBER_THREADS, PARALLEL_MAKE, DL_DIR"
+fi