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