[yocto] Is there any way to remove some package frome IMAGE_INSTALL conditionally in local.conf?
ChenQi
Qi.Chen at windriver.com
Wed Aug 1 03:41:00 PDT 2018
IMAGE_INSTALL_remove = "${@'package1 package2' if TCLIBC == 'glibc' else
''}"
This only removes packages from IMAGE_INSTALL variable.
So if packages are not removed, you may want to use PACKAGE_EXCLUDE to
replace IMAGE_INSTALL_remove above.
Best Regards,
Chen Qi
On 08/01/2018 06:11 PM, tugouxp wrote:
> hi folks:
>
> i meet an problem that need keep TCLIBC both work in "musl" and
> "glibc" environment , but a user-defined package cant work with
> "glibc", so i need to remote them in the "IMAGE_INSTALL" variable,
> but i don`t want to offer a seperate "image*.bb" files for this reason
> because it may be cause the customer misunderstand, so i have a
> thought to judge the "TCLIBC" and do the remove operation during
> bitbake runtime in local.conf
> like this in local.conf
>
> if TCLIBC == glibc
> IMAGE_INSTALL_remove="package1 package2"
> else
> do nothing
> endif
>
> so, how the above pseudo code be implemented in bitbake config files?
> thanks for your support.
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180801/4752e7e9/attachment.html>
More information about the yocto
mailing list