diff options
author | Gary Thomas <gary@mlbassoc.com> | 2014-02-24 17:11:48 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-11 08:14:01 -0700 |
commit | 5662ab61b4f840aedb7787211c06a8060ed1da74 (patch) | |
tree | f01ab475202f322dc960d5775a849d7eac3b198b /scripts/oe-setup-builddir | |
parent | 61e8fdba041c04be05805ed511f2e9dd66f4fdfb (diff) | |
download | poky-5662ab61b4f840aedb7787211c06a8060ed1da74.tar.gz |
scripts/oe-setup-builddir: Keep track of TEMPLATECONF setting
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.
Note that the default value for TEMPLATECONF now comes from
an easily customizable file $OEROOT/.templateconf
(From OE-Core rev: 4474357faf2cbca250e99630d749776fbc80d44b)
Signed-off-by: Gary Thomas <gary@mlbassoc.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-setup-builddir')
-rwxr-xr-x | scripts/oe-setup-builddir | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/oe-setup-builddir b/scripts/oe-setup-builddir index adb55c7c38..e4356f1551 100755 --- a/scripts/oe-setup-builddir +++ b/scripts/oe-setup-builddir | |||
@@ -37,7 +37,15 @@ fi | |||
37 | 37 | ||
38 | cd "$BUILDDIR" | 38 | cd "$BUILDDIR" |
39 | 39 | ||
40 | TEMPLATECONF=${TEMPLATECONF:-meta-yocto/conf} | 40 | if (test -f "$BUILDDIR/conf/templateconf.cfg") then |
41 | TEMPLATECONF=$(cat $BUILDDIR/conf/templateconf.cfg) | ||
42 | fi | ||
43 | |||
44 | source $OEROOT/.templateconf | ||
45 | |||
46 | if ! (test -f "$BUILDDIR/conf/templateconf.cfg") then | ||
47 | echo "$TEMPLATECONF" >$BUILDDIR/conf/templateconf.cfg | ||
48 | fi | ||
41 | 49 | ||
42 | # | 50 | # |
43 | # $TEMPLATECONF can point to a directory for the template local.conf & bblayers.conf | 51 | # $TEMPLATECONF can point to a directory for the template local.conf & bblayers.conf |