[OpenWrt-Devel] build: conditional dependencies in packages sharing the same source

Hauke Mehrtens hauke at hauke-m.de
Sun Apr 24 13:35:21 EDT 2016


On 04/24/2016 01:47 PM, Eyal Birger wrote:
> 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.

Hi,

When more than one package is build from one source, this is mostly done
by building the source code once for all binaries and then only
packaging the stuff into different packages. I assume that there is a
build time dependency to atm in the ppp source.

Hauke
_______________________________________________
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