glibc-external: fix do_install_append processing

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
Christopher Larson
2020-02-10 20:19:51 +05:00
parent a8684e7ee1
commit 6411230fa6

View File

@@ -57,6 +57,7 @@ python do_install () {
bb.build.exec_func('external_toolchain_do_install', d)
bb.build.exec_func('glibc_external_do_install_extra', d)
bb.build.exec_func('adjust_locale_names', d)
# sentinel
}
python adjust_locale_names () {
@@ -152,8 +153,8 @@ do_install_locale_append() {
python () {
# Undo the do_install_append which joined shell to python
install = d.getVar('do_install', False)
python, shell = install.split('rm -f ', 1)
d.setVar('do_install_glibc', 'rm -f ' + shell)
python, shell = install.split('# sentinel', 1)
d.setVar('do_install_glibc', shell)
d.setVarFlag('do_install_glibc', 'func', '1')
new_install = python + '\n bb.build.exec_func("do_install_glibc", d)\n'
d.setVar('do_install', new_install.replace('\t', ' '))