* PACKAGECONFIG ?
@ 2013-09-03 23:19 JC
2013-09-04 12:31 ` Daiane Angolini
0 siblings, 1 reply; 3+ messages in thread
From: JC @ 2013-09-03 23:19 UTC (permalink / raw)
To: meta-freescale@yoctoproject.org
Hi,
I'm sorry about that, but it's impossible to find the information anywhere:
In many bb files you find some "PACKAGECONFIG" variables which are
configure options, such as the following examples:
meta-multimedia/recipes-multimedia/sox/sox_14.4.0.bb:PACKAGECONFIG ??=
"${@base_contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)} \
meta-multimedia/recipes-multimedia/sox/sox_14.4.0.bb:PACKAGECONFIG[pulseaudio]
= "--with-pulseaudio=dyn,--with-pulseaudio=no,pulseaudio,"
meta-multimedia/recipes-multimedia/sox/sox_14.4.0.bb:PACKAGECONFIG[alsa]
= "--with-alsa=dyn,--with-alsa=no,alsa-lib,"
meta-multimedia/recipes-multimedia/sox/sox_14.4.0.bb:PACKAGECONFIG[wavpack]
= "--with-wavpack=dyn,--with-wavpack=no,wavpack,"
How can I tell bitbake to use / not use such options? for instance if I
want to build sox with wavpack and without pulseaudio ?
There's probably something I should add somewhere in my local.conf, but
I can't figure out what.
Thanks !
Regards
Jay
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: PACKAGECONFIG ? 2013-09-03 23:19 PACKAGECONFIG ? JC @ 2013-09-04 12:31 ` Daiane Angolini 2013-09-04 13:04 ` JC 0 siblings, 1 reply; 3+ messages in thread From: Daiane Angolini @ 2013-09-04 12:31 UTC (permalink / raw) To: JC; +Cc: meta-freescale@yoctoproject.org On Tue, Sep 3, 2013 at 8:19 PM, JC <jc@vtkloud.com> wrote: > Hi, > > I'm sorry about that, but it's impossible to find the information anywhere: I usually like to think that I'm not here to be expert, but to rise experts. So, please, keep questions coming. > > In many bb files you find some "PACKAGECONFIG" variables which are configure > options, such as the following examples: > > > meta-multimedia/recipes-multimedia/sox/sox_14.4.0.bb:PACKAGECONFIG ??= > "${@base_contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)} \ > meta-multimedia/recipes-multimedia/sox/sox_14.4.0.bb:PACKAGECONFIG[pulseaudio] > = "--with-pulseaudio=dyn,--with-pulseaudio=no,pulseaudio," > meta-multimedia/recipes-multimedia/sox/sox_14.4.0.bb:PACKAGECONFIG[alsa] = > "--with-alsa=dyn,--with-alsa=no,alsa-lib," > meta-multimedia/recipes-multimedia/sox/sox_14.4.0.bb:PACKAGECONFIG[wavpack] > = "--with-wavpack=dyn,--with-wavpack=no,wavpack," > > How can I tell bitbake to use / not use such options? for instance if I want > to build sox with wavpack and without pulseaudio ? > There's probably something I should add somewhere in my local.conf, but I > can't figure out what. What you would do in local.conf is: PACKAGECONFIG_pn-sox = "alsa" PACKAGECONFIG_pn-sox += "wavpack" in case you want to add alsa AND wavpack (I really have no idea if this selection makes sense together) But, from sox_14.4.0.bb file you can see: PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)} \ ${@base_contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \ magic \ " So, PACKAGECONFIG will be automatica filled (if you don't on local.conf) based on DISTRO_FEATURES. At least for pulseaudio, and alsa support. So, I think it makes sense to you avoid pulseaudio, remove it from DISTRO_FEATURES. But it will affect your whole system. Daiane ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PACKAGECONFIG ? 2013-09-04 12:31 ` Daiane Angolini @ 2013-09-04 13:04 ` JC 0 siblings, 0 replies; 3+ messages in thread From: JC @ 2013-09-04 13:04 UTC (permalink / raw) To: Daiane Angolini; +Cc: meta-freescale@yoctoproject.org On 04/09/2013 14:31, Daiane Angolini wrote: > I usually like to think that I'm not here to be expert, but to rise > experts. So, please, keep questions coming. Thanks :) > What you would do in local.conf is: > > PACKAGECONFIG_pn-sox = "alsa" > PACKAGECONFIG_pn-sox += "wavpack" Great!!! For information, I also figured that in my own layer I can use bbappend and tell: PACKAGECONFIG +="alsa wavpack" But that's a different need. Yours also make sense :) BTW, that was an example, I do not intend to do this, that was just a package to enlight my question :) Thanks !!! Regards JC ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-09-04 13:04 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-09-03 23:19 PACKAGECONFIG ? JC 2013-09-04 12:31 ` Daiane Angolini 2013-09-04 13:04 ` JC
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.