]> code.ossystems Code Review - openembedded-core.git/commit
toolchain-scripts.bbclass: use double quotes for exported PS1
authorKai Kang <kai.kang@windriver.com>
Mon, 7 Feb 2022 07:38:34 +0000 (15:38 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 8 Feb 2022 14:19:33 +0000 (14:19 +0000)
commite13e657dabcabd97f50794e7375777ef5ad883c8
tree9e5f231ba9ce2080327fbfc5beb26c2e16242686
parent0942b161252fc70c65d46754b44bfebe75cf8c09
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.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/toolchain-scripts.bbclass