summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorKenfe-Mickael Laventure <mickael.laventure@gmail.com>2023-03-09 11:49:22 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-23 22:45:34 +0000
commit7a502f838ae7cbf41e9a3b825aa0032275e8234d (patch)
treef37d0c7daed2126e4cf9f87aefe1f1907169f8a4 /meta
parentfaae923062c803f9d4ab122f3aeed3845cac038e (diff)
downloadpoky-7a502f838ae7cbf41e9a3b825aa0032275e8234d.tar.gz
populate_sdk_ext: Handle spaces within user $PATH
The script generated by the sdk_ext_postinst function was not quoting the user existing PATH when updating it causing the export command to fail. Add necessary double quotes around $PATH. (From OE-Core rev: d2800e00bb4a1d169e0a91b758d3fb2ec5e35f74) Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> (cherry picked from commit 00e96bf250eaaded839caf465dbc0af5b604aed7) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/populate_sdk_ext.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass
index 0fd30478dc..a673af7e7b 100644
--- a/meta/classes/populate_sdk_ext.bbclass
+++ b/meta/classes/populate_sdk_ext.bbclass
@@ -714,7 +714,7 @@ sdk_ext_postinst() {
714 714
715 # A bit of another hack, but we need this in the path only for devtool 715 # A bit of another hack, but we need this in the path only for devtool
716 # so put it at the end of $PATH. 716 # so put it at the end of $PATH.
717 echo "export PATH=$target_sdk_dir/sysroots/${SDK_SYS}${bindir_nativesdk}:\$PATH" >> $env_setup_script 717 echo "export PATH=\"$target_sdk_dir/sysroots/${SDK_SYS}${bindir_nativesdk}:\$PATH\"" >> $env_setup_script
718 718
719 echo "printf 'SDK environment now set up; additionally you may now run devtool to perform development tasks.\nRun devtool --help for further details.\n'" >> $env_setup_script 719 echo "printf 'SDK environment now set up; additionally you may now run devtool to perform development tasks.\nRun devtool --help for further details.\n'" >> $env_setup_script
720 720