summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorGary Thomas <gary@mlbassoc.com>2010-12-08 06:11:52 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-12-09 14:44:13 +0000
commit7581654a030961eda03b07de0e0f6d62a7f4055e (patch)
treefd2990c2f2999f2cbbef167cc0cadb3332e299b0 /scripts
parentc91caeea89845a88fa069db7218e6eb99843e2a0 (diff)
downloadpoky-7581654a030961eda03b07de0e0f6d62a7f4055e.tar.gz
poky-env-internal: Allow the environment variable POKYCONF to provide the basis for the working "conf" directory.
By using the POKYCONF variable, a meta layer can provide the basic setup for files to be used during a build. This is similar to the default values stored in the main meta tree, .../meta/conf/local.conf.sample, etc Signed-off-by: Gary Thomas <gary@mlbassoc.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/poky-env-internal18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/poky-env-internal b/scripts/poky-env-internal
index 5b206ed55c..c8b39c9dbf 100755
--- a/scripts/poky-env-internal
+++ b/scripts/poky-env-internal
@@ -58,6 +58,24 @@ if ! (test -d "$BITBAKEDIR" && test -d "$BUILDDIR"); then
58 return 58 return
59fi 59fi
60 60
61#
62# $POKYCONF can point to a directory for the template local.conf & bblayers.conf
63#
64if [ "x" != "x$POKYCONF" ]; then
65 if ! (test -d "$POKYCONF"); then
66 # Allow POKYCONF=meta-xyz/conf as a shortcut
67 if [ -d "$OEROOT/$POKYCONF" ]; then
68 POKYCONF="$OEROOT/$POKYCONF"
69 fi
70 if ! (test -d "$POKYCONF"); then
71 echo >&2 "Error: '$POKYCONF' must be a directory containing local.conf & bblayers.conf"
72 return
73 fi
74 fi
75 POKYLAYERCONF="$POKYCONF/bblayers.conf"
76 POKYLOCALCONF="$POKYCONF/local.conf"
77fi
78
61if [ "x" = "x$POKYLOCALCONF" ]; then 79if [ "x" = "x$POKYLOCALCONF" ]; then
62 POKYLOCALCONF="$OEROOT/meta/conf/local.conf.sample" 80 POKYLOCALCONF="$OEROOT/meta/conf/local.conf.sample"
63fi 81fi