[OE-core] [PATCH 2/2] scripts/oe-setup-builddir: Keep track of TEMPLATECONF setting
Gary Thomas
gary at mlbassoc.com
Mon Feb 24 15:18:00 UTC 2014
Keeping track of the TEMPLATECONF variable in the build
tree will let this script produce the same output when
listing 'conf-notes.txt' every time the script is run,
regardless of whether or not TEMPLATECONF has been provided
by the user.
Signed-off-by: Gary Thomas <gary at mlbassoc.com>
---
scripts/oe-setup-builddir | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/scripts/oe-setup-builddir b/scripts/oe-setup-builddir
index a869fdc..4322158 100755
--- a/scripts/oe-setup-builddir
+++ b/scripts/oe-setup-builddir
@@ -37,8 +37,16 @@ fi
cd "$BUILDDIR"
+if (test -f "$BUILDDIR/conf/template.conf") then
+ TEMPLATECONF=$(cat $BUILDDIR/conf/template.conf)
+fi
+
TEMPLATECONF=${TEMPLATECONF:-meta/conf}
+if ! (test -f "$BUILDDIR/conf/template.conf") then
+ echo "$TEMPLATECONF" >$BUILDDIR/conf/template.conf
+fi
+
#
# $TEMPLATECONF can point to a directory for the template local.conf & bblayers.conf
#
--
1.7.9.5
More information about the Openembedded-core
mailing list