[Buildroot] [RFC 2/2] linux: Add support for specifying a custom directory
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Sun Oct 29 09:12:49 UTC 2017
Hello,
On Sun, 29 Oct 2017 08:26:49 +0100, Yann E. MORIN wrote:
> On 2017-10-28 19:06 -0700, Florian Fainelli spake thusly:
> > Add the ability to specify a path to a custom directory where kernel sources
> > may be contained. This is useful when doing kernel development in an existing
> > git tree.
>
> This case is covered by the override-sourcedir mechanism.
>
> Create a file (by default, local.mk) in your config directory (the one
> with the Buildroot .config file), and edit this file with:
>
> LINUX_OVERRIDE_SRCDIR = /path/to/your/linux
>
> and Buildroot will use that as a rsync source, instead of downloading
> the kernel sources.
>
> See also e782cd5b1bc (Revert "Added local directory as source of kernel
> code") for more in-depth explanations. ;-)
Fully agreed with Yann here: there is no point in adding a
Linux-specific solution for this use case, as we already have a much
more general solution that works for all packages, including the
'linux' package.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
More information about the buildroot
mailing list