Hi Florian,

this does not answer my question, I asked about PKG_BUILD_DEPENDS, not DEPENDS!
Defining the dependencies between packages is not the problem.

My problem is an application, that can manage two different chips via their 
drivers.
To build the application I need the sources of the driver unpacked/installed 
before compiling,
to include the interface definition of the driver.

For a single driver it is no problem to define
        PKG_BUILD_DEPENDS:=driver_x

But if I can select a second driver and define 
        PKG_BUILD_DEPENDS:=driver_x driver_y
both drivers gets unpacked and built (which is not what I want, but would be a 
workaround!).
You can try the same with ppp and libpcap (which is only listed as 
build-dependency!)

If I do the definition like described in my first mail, no build-dependency is 
defined, 
as the config-options are not known during package-scan (which is correct in 
general).

Maybe you have an idea, how to restrict the build-dependencies to the selected 
packages.
Currently updating to kamikaze/trunk is not an option, even if it might be 
fixed there.

Hoping for another hint,
Thomas

> -----Original Message-----
> From: Florian Fainelli [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 02, 2007 7:22 PM
> To: [email protected]
> Cc: Langer Thomas (IFAG COM AC SD BBA)
> Subject: Re: [OpenWrt-Devel] Build dependencies
> 
> Hello Thomas,
> 
> Such dependency  is possible, you can have a look at how 
> freeradius handles 
> it : https://dev.openwrt.org/browser/packages/net/freeradius/Makefile
> 
> This package is divided into several modules, each of these 
> module have custom 
> dependencies, and passes arguments.
> 
> Some other packages also check the SDK, including, this might 
> be closer to 
> your question.
> 
> I hope this answers your question ?
> 
> Le jeudi 2 août 2007, [EMAIL PROTECTED] a écrit :
> > Hi,
> >
> > I have a question regarding the build system and the dependencies
> > (Kamikaze 7.07):
> >
> > Is it possible to dynamical (re-)define the build dependencies?
> > I know about PKG_BUILD_DEPENDS, but I want to do something like:
> >
> > ifdef CONFIG_option_X
> > PKG_BUILD_DEPENDS+=my-package-Y
> > endif
> >
> > Is it possible to trigger such a behaviour, maybe via some other
> > definitions in my Makefile?
> >
> > Thanks for your help,
> > Thomas
> > _______________________________________________
> > openwrt-devel mailing list
> > [email protected]
> > http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> 
> 
> 
> -- 
> Cordialement, Florian Fainelli
> ------------------------------
> 
_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to