diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2022-09-06 16:58:51 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-08 14:59:39 +0100 |
commit | 7162ba29c78c7af8270e95ca63cd62ce6eda3db2 (patch) | |
tree | 8430c8deb99f4092d7d60afea35c6a39d75817d7 /scripts/oe-setup-builddir | |
parent | ed3db56c496d4320dc86960843d84bf4d44b3279 (diff) | |
download | poky-7162ba29c78c7af8270e95ca63cd62ce6eda3db2.tar.gz |
oe-setup-builddir: Correct when validation of the templates dir is run
The validation of the templates directory is supposed to be run as long
as $TEMPLATECONF is defined, but it was only done if the directory did
not exist.
(From OE-Core rev: dcca9ee6f06e9eacd6507f57bd0a5012ea343aa9)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.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, 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" |