diff options
author | Kenfe-Mickael Laventure <mickael.laventure@gmail.com> | 2023-03-09 11:49:22 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-21 14:26:31 +0000 |
commit | de8c168e5f6fb1765b709e0f03f4b16f44bc7446 (patch) | |
tree | 20ca41461ddfdd535b299f63ff2aac1d1019a525 | |
parent | 54c6dc4ebf305f68322ff5386bd886de82fa83f2 (diff) | |
download | poky-de8c168e5f6fb1765b709e0f03f4b16f44bc7446.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: 679835b6f692d7e344c115da72ddf4553657ac54)
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>
-rw-r--r-- | meta/classes-recipe/populate_sdk_ext.bbclass | 2 |
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 80f4f0be05..1b47fbe770 100644 --- a/meta/classes-recipe/populate_sdk_ext.bbclass +++ b/meta/classes-recipe/populate_sdk_ext.bbclass | |||
@@ -720,7 +720,7 @@ sdk_ext_postinst() { | |||
720 | 720 | ||
721 | # A bit of another hack, but we need this in the path only for devtool | 721 | # A bit of another hack, but we need this in the path only for devtool |
722 | # so put it at the end of $PATH. | 722 | # so put it at the end of $PATH. |
723 | echo "export PATH=$target_sdk_dir/sysroots/${SDK_SYS}${bindir_nativesdk}:\$PATH" >> $env_setup_script | 723 | echo "export PATH=\"$target_sdk_dir/sysroots/${SDK_SYS}${bindir_nativesdk}:\$PATH\"" >> $env_setup_script |
724 | 724 | ||
725 | 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 | 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 |
726 | 726 | ||