diff options
-rwxr-xr-x | scripts/poky-env-internal | 18 |
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 |
59 | fi | 59 | fi |
60 | 60 | ||
61 | # | ||
62 | # $POKYCONF can point to a directory for the template local.conf & bblayers.conf | ||
63 | # | ||
64 | if [ "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" | ||
77 | fi | ||
78 | |||
61 | if [ "x" = "x$POKYLOCALCONF" ]; then | 79 | if [ "x" = "x$POKYLOCALCONF" ]; then |
62 | POKYLOCALCONF="$OEROOT/meta/conf/local.conf.sample" | 80 | POKYLOCALCONF="$OEROOT/meta/conf/local.conf.sample" |
63 | fi | 81 | fi |