[OpenWrt-Devel] build: conditional dependencies in packages sharing the same source
Eyal Birger
eyal.birger at gmail.com
Sun Apr 24 07:47:39 EDT 2016
Hi All,
We've encountered an interesting behavior in the OpenWRT build system, on which
feedback would be appreciated:
When building packages sharing the same source code, all packages
prerequisites seem to
be joined unconditionally, instead of each prerequisite depending on
the package that required
it.
As an example:
ppp-mod-pppoa shares its source code with the ppp package;
ppp-mod-pppoa depends on linux-atm;
as a result, ppp depends unconditionally on linux-atm.
i.e. in the generated tmp/.packagedeps file, the following is generated:
$(curdir)/ppp/compile += ... $(curdir)/linux-atm/compile ...
And not:
$(curdir)/ppp/compile += ... $(if
$(CONFIG_ppp-mod-pppoa),$(curdir)/linux-atm/compile) ...
This results in unnecessary compilation dependencies.
Is this behavior intentional?
Best regards,
Eyal.
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list