diff options
author | Kai Kang <kai.kang@windriver.com> | 2022-02-07 15:38:34 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-08 14:20:18 +0000 |
commit | efa450bfbf20b826e952d08a40495cba6fa7beba (patch) | |
tree | 4b0fac13e3a656ce2fce8c48cf2a7729a3471fcf /meta/classes | |
parent | 0d4392fbb3061872579c981147da45cd55bf76b9 (diff) | |
download | poky-efa450bfbf20b826e952d08a40495cba6fa7beba.tar.gz |
toolchain-scripts.bbclass: use double quotes for exported PS1
Use double quotes("") rather than single quotes('') for PS1 in
EXPORT_SDK_PS1 which will be exported in SDK environment file. Then it
could set PS1 for SDK env with some variables in host env, such as the
original PS1. The SDK PS1 could be some distinct words plus original PS1
rather than replace the whole original PS1. For example, it could set in
local.conf with
SDK_PS1 = "(oesdk) \${PS1}"
then it just prepends '(oesdk) ' before original PS1 after source the
SDK environment file.
(From OE-Core rev: e13e657dabcabd97f50794e7375777ef5ad883c8)
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/toolchain-scripts.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass index fb6261c91d..8f914cce27 100644 --- a/meta/classes/toolchain-scripts.bbclass +++ b/meta/classes/toolchain-scripts.bbclass | |||
@@ -8,7 +8,7 @@ TARGET_CC_ARCH:append:libc-musl = " -mmusl" | |||
8 | # default debug prefix map isn't valid in the SDK | 8 | # default debug prefix map isn't valid in the SDK |
9 | DEBUG_PREFIX_MAP = "" | 9 | DEBUG_PREFIX_MAP = "" |
10 | 10 | ||
11 | EXPORT_SDK_PS1 = "${@ 'export PS1=\'%s\'' % d.getVar('SDK_PS1') if d.getVar('SDK_PS1') else ''}" | 11 | EXPORT_SDK_PS1 = "${@ 'export PS1=\\"%s\\"' % d.getVar('SDK_PS1') if d.getVar('SDK_PS1') else ''}" |
12 | 12 | ||
13 | # This function creates an environment-setup-script for use in a deployable SDK | 13 | # This function creates an environment-setup-script for use in a deployable SDK |
14 | toolchain_create_sdk_env_script () { | 14 | toolchain_create_sdk_env_script () { |