All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v3 1/1] BR2_EXTERNAL linux-kernel-extensions support
@ 2019-07-09 21:05 robert.mccabe at rockwellcollins.com
  0 siblings, 0 replies; only message in thread
From: robert.mccabe at rockwellcollins.com @ 2019-07-09 21:05 UTC (permalink / raw)
  To: buildroot

From: "McCabe, Robert J" <robert.mccabe@rockwellcollins.com>

Allows external projects to inject custom code inside the Linux source
tree.

Signed-off-by: McCabe, Robert J <robert.mccabe@rockwellcollins.com>
---
 linux/linux.mk | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/linux/linux.mk b/linux/linux.mk
index a1378345c3..2128a36b5f 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -511,14 +511,19 @@ endef
 #
 # Note: our package infrastructure uses the full-path of the last-scanned
 # Makefile to determine what package we're currently defining, using the
-# last directory component in the path. As such, including other Makefile,
-# like below, before we call one of the *-package macro is usally not
-# working.
+# last directory component in the path. As such, including other Makefiles,
+# like below, before we call one of the *-package macros usually doesn't
+# work.
 # However, since the files we include here are in the same directory as
 # the current Makefile, we are OK. But this is a hard requirement: files
-# included here *must* be in the same directory!
+# included here *must* either be in this same directory OR within a
+# another directory with the name "linux" (in the BR2_EXTERNAL case).
 include $(sort $(wildcard linux/linux-ext-*.mk))

+#Import linux-kernel-extensions from externals
+-include $(sort $(wildcard $(foreach ext,$(BR2_EXTERNAL_DIRS), \
+       $(ext)/linux/linux-ext-*.mk)))
+
 LINUX_PATCH_DEPENDENCIES += $(foreach ext,$(LINUX_EXTENSIONS),\
        $(if $(BR2_LINUX_KERNEL_EXT_$(call UPPERCASE,$(ext))),$(ext)))

--
2.17.1

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

only message in thread, other threads:[~2019-07-09 21:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-09 21:05 [Buildroot] [PATCH v3 1/1] BR2_EXTERNAL linux-kernel-extensions support robert.mccabe at rockwellcollins.com

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.