Skip to content

Introduce the _AVAILABLE mechanism

Thomas Petazzoni buildroot 1 version New

Get series with b4
b4 am 20121017220525.6e7e173b@skate

Versions newest first

  1. v1 Latest0 of 7 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 7 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Buildroot] [PATCH 0/7] Introduce the _AVAILABLE mechanism
Quoted 29 lines · Yann E. MORIN

Maybe the solution would be that we do not add _AVAILABLE to sub-options, but we can still use it from sub-options. Eg. (condensed):

config PKG_FOO_AVAIL
def_bool y
depends on blabla

config PKG_FOO
bool "package foo"
depends on PKG_FOO_AVAIL
select blabla

config PKG_BAR_AVAIL
def_bool y
depends on booboo

config PKG_BAR
bool "package bar"
depends on PKG_BAR_AVAIL
select booboo

if PKG_BAR

config PKG_BAR_OPTION
bool "bar's option"
depends on PKG_FOO_AVAIL
select PKG_FOO

Quoted 6 lines

comment "bar's option needs package foo"
depends on !PKG_FOO_AVAIL

endif # PKG_BAR

Isn't that sufficient?

From a quick review, it sounds sufficient indeed. What surprises me is why we didn't think about this solution the other day when discussing your _AVAILABLE patch set.

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com