On Wed, Sep 26, 2007 at 05:11:02PM -0500, Joseph Lutz wrote:
> In ptxdist how do you set that one package is dependent upon another.
> What I mean by this is how do you set for one package to compile
> before another package. I know how to set one package to be dependent
> upon another package in menuconfig.

Yup, and that autogenerates the dependency for the make file. The rule
is like this:

- if packet is "foo", it's label is "FOO" [1]
- if you want foo to depend on bar, add

        config FOO
                bool
                prompt "foo"
                select BAR
                help
                  This is the foo packet

That's all. Note that the "select" has to be at the packet label itself,
so if foo only selects bar if FOO_SOMEOPTION is set, you have to use

        config FOO
                bool
                prompt "foo"
                select BAR if FOO_SOMEOPTION

        config FOO_SOMEOPTION
                bool
                depends on FOO

> For an example I added initng-ifiles package to ptxdist and also
> selected initng. when I perform a complete rebuild initng-ifiles tries
> to build before initng. This does not work because initng-ifiles
> requires that initng already built.

Which ptxdist version are you using? Can you send me the ptxconfig file
off-list?

Robert

[1] We currently have a problem when it comes to dependencies,
    because we convert "-" in packet names to "_" in labels, which makes it
    impossible to find out about the packet name later on. This
    behaviour will probably change soon, so that PTXCONF_FOO_*
    corresponds to "FOO" being the packet label, even if it contains "-"
    characters. I remember that there was a reason why we did it, but
    it has to be changed in order to make it possible that changing
    a configuration switch automatically recompiles that packet
    afterwards.
-- 
Pengutronix - Linux Solutions for Science and Industry
Entwicklungszentrum Nord     http://www.pengutronix.de

-- 
ptxdist mailing list
[email protected]

Reply via email to