Discussion:
[yocto] so how does PACKAGECONFIG_remove really work?
Aditya Tayade
2018-11-09 14:18:36 UTC
Permalink
Hi,


Can any one please help me to understand PACKAGECONFIG_remove feature


Let's take an example of systemd recipe as follows:

PACKAGECONFIG ??= "vconsole"

PACKAGECONFIG[vconsole] = "-Dvconsole=true,-Dvconsole=false,,${PN}-vconsole-setup"


Now how should we disable features set in PACKAGECONFIG using PACKAGECONFIG_remove from it's bbappend file?


Regards,

Aditya Tayade

This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails.
Aditya Tayade
2018-11-09 14:21:17 UTC
Permalink
Hi,


Can any one please help me to understand PACKAGECONFIG_remove feature


Let's take an example of systemd recipe as follows:

PACKAGECONFIG ??= "vconsole"

PACKAGECONFIG[vconsole] = "-Dvconsole=true,-Dvconsole=false,,${PN}-vconsole-setup"


Now how should we disable features set in PACKAGECONFIG[vconsole] using PACKAGECONFIG_remove from it's bbappend file?


Regards,

Aditya Tayade


________________________________
From: Aditya Tayade
Sent: Friday, November 9, 2018 7:48:36 PM
To: Yocto discussion list
Subject: [yocto] so how does PACKAGECONFIG_remove really work?


Hi,


Can any one please help me to understand PACKAGECONFIG_remove feature


Let's take an example of systemd recipe as follows:

PACKAGECONFIG ??= "vconsole"

PACKAGECONFIG[vconsole] = "-Dvconsole=true,-Dvconsole=false,,${PN}-vconsole-setup"


Now how should we disable features set in PACKAGECONFIG using PACKAGECONFIG_remove from it's bbappend file?


Regards,

Aditya Tayade

This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails.
Burton, Ross
2018-11-09 14:40:22 UTC
Permalink
On Fri, 9 Nov 2018 at 14:36, Aditya Tayade <***@kpit.com> wrote:
> Can any one please help me to understand PACKAGECONFIG_remove feature
>
>
> Let's take an example of systemd recipe as follows:
>
> PACKAGECONFIG ??= "vconsole"
>
> PACKAGECONFIG[vconsole] = "-Dvconsole=true,-Dvconsole=false,,${PN}-vconsole-setup"
>
>
> Now how should we disable features set in PACKAGECONFIG[vconsole] using PACKAGECONFIG_remove from it's bbappend file?

The _remove override removes a value from a variable. So this will
remove 'vconsole' from the value of PACKAGECONFIG:

PACKAGECONFIG_remove = "vconsole"

Ross
--
Uwe Geuder
2018-11-09 15:01:58 UTC
Permalink
On Fri, Nov 9, 2018 at 4:41 PM Burton, Ross ross.burton-at-intel.com wrote:
>
> On Fri, 9 Nov 2018 at 14:36, Aditya Tayade <***@kpit.com> wrote:
> > Can any one please help me to understand PACKAGECONFIG_remove feature
> >
> >
> > Let's take an example of systemd recipe as follows:
> >
> > PACKAGECONFIG ??= "vconsole"
> >
> > PACKAGECONFIG[vconsole] = "-Dvconsole=true,-Dvconsole=false,,${PN}-vconsole-setup"
> >
> >
> > Now how should we disable features set in PACKAGECONFIG[vconsole] using PACKAGECONFIG_remove from it's bbappend file?
>
> The _remove override removes a value from a variable. So this will
> remove 'vconsole' from the value of PACKAGECONFIG:
>
> PACKAGECONFIG_remove = "vconsole"
>

I also wondered quite a while in the past why such questions are not covered
by the Mega Manual.

https://www.yoctoproject.org/docs/2.5.1/mega-manual/mega-manual.html

Once I had been told that the mega manual contains "everything". As matter of
fact that is not true. Basic syntax for bitbake (recipes and conf files) is
documented only in a separate Bitbake User Manual.

https://www.yoctoproject.org/docs/2.5.1/bitbake-user-manual/bitbake-user-manual.html#removing-override-style-syntax

Regards,

Uwe Geuder
Neuro Event Labs Oy
Tampere, Finland
***@neuroeventlabs.com (Bot check: fix one obvious typo)
--
Aditya Tayade
2018-11-09 15:05:27 UTC
Permalink
Thanks Ross.


Regards,

Aditya Tayade

________________________________
From: Burton, Ross <***@intel.com>
Sent: Friday, November 9, 2018 8:10:22 PM
To: Aditya Tayade
Cc: Yocto-mailing-list
Subject: Re: [yocto] so how does PACKAGECONFIG_remove really work?

On Fri, 9 Nov 2018 at 14:36, Aditya Tayade <***@kpit.com> wrote:
> Can any one please help me to understand PACKAGECONFIG_remove feature
>
>
> Let's take an example of systemd recipe as follows:
>
> PACKAGECONFIG ??= "vconsole"
>
> PACKAGECONFIG[vconsole] = "-Dvconsole=true,-Dvconsole=false,,${PN}-vconsole-setup"
>
>
> Now how should we disable features set in PACKAGECONFIG[vconsole] using PACKAGECONFIG_remove from it's bbappend file?

The _remove override removes a value from a variable. So this will
remove 'vconsole' from the value of PACKAGECONFIG:

PACKAGECONFIG_remove = "vconsole"

Ross
This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails.
Loading...