summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2022-09-02 14:02:01 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-09-03 08:51:57 +0100
commitaf03e804360547b79fa9b2d0c783ff0aa69abd23 (patch)
tree3b5af8f4e1d3f2e71e2cf8addf1e873b0651ae64 /scripts
parent57536f640ad3f7bf4f4a97c27d478f1b296596a3 (diff)
downloadpoky-af03e804360547b79fa9b2d0c783ff0aa69abd23.tar.gz
scripts/oe-setup-builddir: make environment variable the highest priority source for TEMPLATECONF
This sets the following order: 1. TEMPLATECONF set in the unix environment (for example as a prefix to '. oe-init-build-env'). 2. If empty then $BUILDDIR/conf/templateconf.cfg 3. If absent then $OEROOT/.templateconf (oe-init-build-env sets OEROOT to where it is, which is poky or oe-core). I believe this is more logical and consistent with common practice; it also avoids situations where the user is stuck with cryptic errors because templateconf.cfg contains something invalid and that something cannot be overridden from command line. (From OE-Core rev: 7296c42b8c58e6e08f4210eb7b51d852b1ee950e) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/oe-setup-builddir2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/oe-setup-builddir b/scripts/oe-setup-builddir
index 6493e46b2b..d3c7f943e7 100755
--- a/scripts/oe-setup-builddir
+++ b/scripts/oe-setup-builddir
@@ -38,7 +38,7 @@ chmod -st "$BUILDDIR/conf" 2>/dev/null || echo "WARNING: unable to chmod $BUILDD
38 38
39cd "$BUILDDIR" 39cd "$BUILDDIR"
40 40
41if [ -f "$BUILDDIR/conf/templateconf.cfg" ]; then 41if [ -f "$BUILDDIR/conf/templateconf.cfg" -a -z "$TEMPLATECONF" ]; then
42 TEMPLATECONF=$(cat "$BUILDDIR/conf/templateconf.cfg") 42 TEMPLATECONF=$(cat "$BUILDDIR/conf/templateconf.cfg")
43 # The following two are no longer valid; unsetting them will automatically get them replaced 43 # The following two are no longer valid; unsetting them will automatically get them replaced
44 # with correct ones. 44 # with correct ones.