summaryrefslogtreecommitdiff
path: root/setup
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:20 +0300
commit08b6cec504bcededcc23a7293d064c118c37b371 (patch)
tree235c0510cc9f237585f453243e895ec9dc5267da /setup
parent9c01098f996d9661f479e6348dc05cba4b6b839b (diff)
downloadopenbmc-08b6cec504bcededcc23a7293d064c118c37b371.tar.xz
setup: fix multi-machine layers
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
Diffstat (limited to 'setup')
-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