All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] linux-extensions and OVERRIDE_SRCDIR
@ 2018-02-13 21:01 Thomas De Schampheleire
  0 siblings, 0 replies; only message in thread
From: Thomas De Schampheleire @ 2018-02-13 21:01 UTC (permalink / raw)
  To: buildroot

Hi,

The linux-extensions mechanism works by using a PRE_PATCH_HOOK to do 'stuff'.
This means that if LINUX_OVERRIDE_SRCDIR is set by a user, the extensions do not
actually do anything, because there is no patch step, and hence no patch hooks.

While one can argue that for regular packages, _not_ patching in case of
OVERRIDE_SRCDIR is a sensible thing to do, I find it a bit odd in case of the
linux extensions.

Moreover, even for regular packages, I have heard several reports of users
actually expecting/desiring patching to happen even with an OVERRIDE_SRCDIR.
And similarly, with SITE_METHOD = local.

One method to solve this is to introduce a new variable, e.g.
FOO_PATCH_LOCAL, that would retain the patch step in the sequence of steps.
This variable can either be set by a user in local.mk, alongside
FOO_OVERRIDE_SRCDIR, or by a package in the case of SITE_METHOD=local.

For the use case of kernel extensions with OVERRIDE_SRCDIR, it does require the
user to be aware of the fact that the extensions work via patch hooks.

Feedback? Alternative solutions?

Thanks,
Thomas

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-02-13 21:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-13 21:01 [Buildroot] linux-extensions and OVERRIDE_SRCDIR Thomas De Schampheleire

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.