[OpenWrt-Devel] Unintended consequence of building all profiles for a target
openwrt at daniel.thecshore.com
Sun Jan 17 15:28:33 EST 2016
I have noticed an unintended consequence of building all profiles for a
single target at once: All profiles get all packages marked as 'y' as a
consquence of dependencies of *any* profile being built.
This is true even before the code I'm doing to build multiple profiles
and is a consequence of the way package selection works. Because select
<package> selects a package as y even if it only needed for one image,
it becomes y for all images being built at the same time!
While I don't think there are any cases where that causes fatal negative
consequences it is perhaps somewhat surprising and unexpected (and in
the brcm47xx results is bloated images when built as a group).
The offending code is in package/Makefile:
$(foreach pkg,$(sort $(package-y)), \
$(foreach variant, \
$(if $(strip $(package/$(pkg)/variants)), \
$(if $(package/$(pkg)/default-variant), \
Unfortunately solving this problem is non-trivial, especially since
there is no easy way to disinguish between auto-y and intended-y or what
would be intended of there were not auto.
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
More information about the openwrt-devel