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
commitf746bbff35e19dd79aedd395c826cb4a43ffbdc5 (patch)
tree4c074b9d36eb5c6774b8dbfd97f40cd709495ca5 /buildconf
parentb5bac36690f71249e19a7fa6312db57b0fb16d7f (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