From f746bbff35e19dd79aedd395c826cb4a43ffbdc5 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Wed, 16 Oct 2013 12:30:36 +0200 Subject: build: add a sample script for setting up the environment --- buildconf/export | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 buildconf/export (limited to 'buildconf') 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 -- cgit v1.2.3