Introduce the _AVAILABLE mechanism
Get series with b4
b4 am 20121017224106.6bb0ad49@skateVersions newest first
- v1 Latest2 of 7 patches 0 repliesNew
2 of 7 patches are in this archive. The cover letter announces 7.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | docs/manual: update 'adding packages' with the new _AVAILABLE symbol | +0 | 0 replies | |
| 2/7 | support/scripts: add a script to add a new package | +0 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Buildroot] [PATCH 0/7] Introduce the _AVAILABLE mechanism
Yann,
Quoted 10 lines · Yann E. MORIN
Quoted 3 lines
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
_AVAILABLEpatch set.To be honest, I'm surprised too I did not think about it. ;-]
In fact, as an after-thought, I do know why. That's because I was thinking the other way-around: a package that depends on a sub-option of another package, sub-option which in turn depends on a third package. *That* one would require an
_AVAILABLEfor sub-options.
Aaah yes.
Quoted 5 lines
For example, libuuid which is a sub-option of util-linux (although that one sub-option has no dpendency; but you get the idea) is select by a few other packages (eg. parted, ntfs-3g...).
And going *that* route is IMHO not what we want.
Our example was the one of python-dpkt, which was doing a:
depends on BR2_PACKAGE_PYTHON
select BR2_PACKAGE_PYTHON_ZLIB
or BR2_PACKAGE_PYTHON_ZLIB is not a package per-se, but a sub-option of the python package. And this this sub-option does a select, we should introduce a BR2_PACKAGE_PYTHON_ZLIB_AVAILABLE, I don't see a way around it.
Except modifying kconfig, as we discussed, of course...
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com