[Buildroot] [PATCH 7/8] package: change ordering of steps
thomas.petazzoni at free-electrons.com
Wed Sep 28 14:28:07 UTC 2011
Le Wed, 28 Sep 2011 16:13:00 +0200,
Thomas De Schampheleire <patrickdepinguin+buildroot at gmail.com> a écrit :
> I'm experiencing a problem now with Xenomai:
> * First of all, there was no dependencies to linux anymore in the
> Xenomai .mk file, which caused incorrect ordering of builds. To
> address this, I copied the approach of RTAI that Thomas added (add a
> linux dependency to xenomai-patch and add a xenomai dependency to
Normally, the Xenomai package in package/xenomai/ does not depend on
Linux being extracted/configured/compiled. It's the opposite: the Linux
build process depends on the Xenomai package to be extracted, so that
the package can be applied.
The case of RTAI is different, because the kernel modules of RTAI are
built by package/rtai/, so RTAI depends on Linux.
Could you expand on which problem you have when the Xenomai package in
package/xenomai does not depend on Linux ?
> * after this, I stumbled upon another problem: if I removed both the
> linux and the xenomai output directories, and ran make, then linux was
> the first to come into play. After extraction of linux, the PRE_PATCH
> hook of xenomai is executed, but Xenomai is not yet extracted! Indeed,
> the current dependency tree does not enforce this.
> I can fix my scenario by changing the order of -patch and -depends :
> -$(1)-configure: $(1)-patch $(1)-depends \
> +$(1)-configure: $(1)-depends $(1)-patch \
> but I'm not sure whether this breaks other cases...
> What do you think?
Aaaah, yes, dammit. Technically speaking, it's a bit ugly that the
patch step of one package depends on the dependencies being available.
This needs some more thought I guess...
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
More information about the buildroot