summaryrefslogtreecommitdiff
path: root/buildconf/export
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2019-03-06 12:48:37 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2019-03-06 12:55:16 +0100
commitcb3a89c37da2892fbc812a858a1f587c3737b7a0 (patch)
tree769f5309b0ca9bdc3b9360a803a2e3b39fb88fe1 /buildconf/export
parentaf2deffa61768a72142fdba7563db18759f6bde6 (diff)
buildconf: moved here from meta-toradex-demo
Also adapted to use the now available tdx-x11 distro. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'buildconf/export')
-rw-r--r--buildconf/export27
1 files changed, 27 insertions, 0 deletions
diff --git a/buildconf/export b/buildconf/export
new file mode 100644
index 0000000..9f229cf
--- /dev/null
+++ b/buildconf/export
@@ -0,0 +1,27 @@
+#!/bin/sh
+ECHO=`which echo`
+BUILDDIR="../../build"
+FIRST_TIME=0
+cd layers/openembedded-core
+if [ ! -f ${BUILDDIR}/conf/local.conf ]; then
+ FIRST_TIME=1
+fi
+
+. ./oe-init-build-env ${BUILDDIR}
+
+echo ""
+echo "Toradex targets are:"
+echo " console-tdx-image"
+echo " other (unsupported) targets may be found in"
+echo " meta-toradex-demos/recipes-images/images/"
+
+if [ $FIRST_TIME -eq 1 ]; then
+ mkdir -p conf
+ cp ../layers/meta-toradex-distro/buildconf/*.conf 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 "DL_DIR"
+fi