[Buildroot] [PATCH v2] linux-headers: allow use of headers from kernel "package" selected

Károly Kasza kaszak at gmail.com
Sat Oct 25 14:28:31 UTC 2014


Hi Alexey,

Much more significant one is how to get kernel sources for
> "linux-headers" package from the same location as "linux" package will
> get them.
>
> We cannot rely on internal variables of "linux" package like LINUX_xxx
> because they could be resolved later than we need them.
>
Could you point me some examples, in which cases can these be computed too
late?


> So we need to do the same one calculations as we do in "linux.mk" see:
> linux/linux.mk: # Compute LINUX_SOURCE and LINUX_SITE from the
> configuration
>
Maybe add an extra target for computing the variables somewhere, and make
both
linux and linux-headers depend on it?


>
> In the best case it's dummy code duplication which inevitably will bite
> us in the future. Still I didn't find any better solution. Any input is
> much appreciated.

I agree, code duplication is at least not future-proof :)

Best regards,
Karoly
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20141025/1092b844/attachment-0002.html>


More information about the buildroot mailing list