summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool/sdk.py
diff options
context:
space:
mode:
authorOleksandr Hnatiuk <ohnatiuk@cisco.com>2023-07-25 09:51:48 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-07-27 21:07:53 +0100
commit9205ac1d5359546883719918dddd75d354b7b5fd (patch)
tree08f6cfa7bdbfaf541fa3d77b1c279f477ce7855b /scripts/lib/devtool/sdk.py
parent0da5484b2f1667c3fb46f7b074e1b231ca93212f (diff)
downloadpoky-9205ac1d5359546883719918dddd75d354b7b5fd.tar.gz
file: fix the way path is written to environment-setup.d
$OECORE_NATIVE_SYSROOT is not escaped, thus it is expanded to an empty string. This happens to work because we have ${datadir} which in this context is relocated to the buildtools sysroot after installation of buildtools. If the $ before OECORE_NATIVE_SYSROOT is escaped, it will be saved to file.sh as intended, but MAGIC will point to the wrong location because both OECORE_NATIVE_SYSROOT and datadir resolve to sysroot which doubles the path like so: /path/to/buildtools/sysroots/x86_64-xesdk-linux/path/to/buildtools/sysroots/x86_64-xesdk-linux/usr/share/misc/magic.mgc which does not exist. So, removing reference to OECORE_NATIVE_SYSROOT. (From OE-Core rev: c6206249683876670602888e78ecaf719753a317) Signed-off-by: Oleksandr Hnatiuk <ohnatiuk@cisco.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool/sdk.py')
0 files changed, 0 insertions, 0 deletions