Skip to content

Commit

Permalink
setup: fix multi-machine layers
Browse files Browse the repository at this point in the history
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 bb789d5

Signed-off-by: Patrick Williams <[email protected]>
Change-Id: If90f1a3c4052c019ea88eeea7787bc2b252f6094
  • Loading branch information
williamspatrick committed Nov 18, 2022
1 parent 9c01098 commit 08b6cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08b6cec

Please sign in to comment.