summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/populate_sdk_ext.bbclass
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-11 00:08:41 +0000
commit5d5a4f31c88e364c89921e3439abc9233ff5861f (patch)
tree71f7754efb32e163427438471e6d86b60e6c60c6 /meta/classes-recipe/populate_sdk_ext.bbclass
parentaa484fd4159ba1620d84164ed2092edb7c5075ca (diff)
downloadpoky-5d5a4f31c88e364c89921e3439abc9233ff5861f.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: 00e96bf250eaaded839caf465dbc0af5b604aed7) Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/populate_sdk_ext.bbclass')
-rw-r--r--meta/classes-recipe/populate_sdk_ext.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/populate_sdk_ext.bbclass b/meta/classes-recipe/populate_sdk_ext.bbclass
index de74a7524c..2e6673bcd9 100644
--- a/meta/classes-recipe/populate_sdk_ext.bbclass
+++ b/meta/classes-recipe/populate_sdk_ext.bbclass
@@ -719,7 +719,7 @@ sdk_ext_postinst() {
719 719
720 # A bit of another hack, but we need this in the path only for devtool 720 # A bit of another hack, but we need this in the path only for devtool
721 # so put it at the end of $PATH. 721 # so put it at the end of $PATH.
722 echo "export PATH=$target_sdk_dir/sysroots/${SDK_SYS}${bindir_nativesdk}:\$PATH" >> $env_setup_script 722 echo "export PATH=\"$target_sdk_dir/sysroots/${SDK_SYS}${bindir_nativesdk}:\$PATH\"" >> $env_setup_script
723 723
724 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 724 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
725 725