summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2022-11-18 19:30:50 +0300
committerPatrick Williams <patrick@stwcx.xyz>2022-11-18 20:08:31 +0300
commitf4e5dde7fa70d6927253adf5cf32c31073293b32 (patch)
tree197ca8e7bfa105f9b50c1337620c824c9eb60b7e
parentf241bb5774c192f7e64e38b87e0a455f90c5ce54 (diff)
downloadopenbmc-2.13.0.tar.xz
setup: fix multi-machine layers2.13.0
When making the change required by Yocto to move configs into template subdirectories, the setup script wasn't updated in a way to handle the appropriate fix-up of the MACHINE variable in the `conf/local.conf`. Fixes bb789d5694b3696a9aa81d2cd37a1c7f39908ed8 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: If90f1a3c4052c019ea88eeea7787bc2b252f6094 (cherry picked from commit 08b6cec504bcededcc23a7293d064c118c37b371)
-rwxr-xr-xsetup2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup b/setup
index 5152c59850..9398cb9547 100755
--- a/setup
+++ b/setup
@@ -79,7 +79,7 @@ machine() {
TEMPLATECONF="${tmpl}/templates/default" source \
oe-init-build-env "${build_dir}"
- if [ "$(cat conf/templateconf.cfg)" = "${tmpl}" ]; then
+ if [ "$(cat conf/templateconf.cfg)" = "${tmpl}/templates/default" ]; then
sed "s/^\(MACHINE\s*[?:]*\s*=\s*\).*$/\1\"${target}\"/" \
-i conf/local.conf
fi