summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/oe-setup-builddir10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/oe-setup-builddir b/scripts/oe-setup-builddir
index d3c7f943e7..70f2245b16 100755
--- a/scripts/oe-setup-builddir
+++ b/scripts/oe-setup-builddir
@@ -63,11 +63,11 @@ if [ -n "$TEMPLATECONF" ]; then
63 echo >&2 "Error: TEMPLATECONF value points to nonexistent directory '$TEMPLATECONF'" 63 echo >&2 "Error: TEMPLATECONF value points to nonexistent directory '$TEMPLATECONF'"
64 exit 1 64 exit 1
65 fi 65 fi
66 templatesdir=$(python3 -c "import sys; print(sys.argv[1].strip('/').split('/')[-2])" $TEMPLATECONF) 66 fi
67 if [ ! -f "$TEMPLATECONF/../../layer.conf" -o $templatesdir != "templates" ]; then 67 templatesdir=$(python3 -c "import sys; print(sys.argv[1].strip('/').split('/')[-2])" $TEMPLATECONF)
68 echo >&2 "Error: TEMPLATECONF value (which is $TEMPLATECONF) must point to meta-some-layer/conf/templates/template-name" 68 if [ ! -f "$TEMPLATECONF/../../layer.conf" -o $templatesdir != "templates" ]; then
69 exit 1 69 echo >&2 "Error: TEMPLATECONF value (which is $TEMPLATECONF) must point to meta-some-layer/conf/templates/template-name"
70 fi 70 exit 1
71 fi 71 fi
72 OECORELAYERCONF="$TEMPLATECONF/bblayers.conf.sample" 72 OECORELAYERCONF="$TEMPLATECONF/bblayers.conf.sample"
73 OECORELOCALCONF="$TEMPLATECONF/local.conf.sample" 73 OECORELOCALCONF="$TEMPLATECONF/local.conf.sample"