[source] kernel: allow subtarget specific KernelPackage
LEDE Commits
lede-commits at lists.infradead.org
Wed Jan 4 04:21:27 PST 2017
stintel pushed a commit to source.git, branch master:
https://git.lede-project.org/a93accd73dba6d56247a1076e62c612b31e4ebc3
commit a93accd73dba6d56247a1076e62c612b31e4ebc3
Author: Stijn Tintel <stijn at linux-ipv6.be>
AuthorDate: Wed Jan 4 02:45:36 2017 +0100
kernel: allow subtarget specific KernelPackage
Add a call to KernelPackage/$(1)/$(BOARD)/$(SUBTARGET) to the
KernelPackage macro. This allows to add kernel packages for x86/64,
without breaking x86. It's not possible to do this with BOARD, as
BOARD=x86 for x86_64.
Signed-off-by: Stijn Tintel <stijn at linux-ipv6.be>
---
include/kernel.mk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/kernel.mk b/include/kernel.mk
index 4e66c0c..2314ec7 100644
--- a/include/kernel.mk
+++ b/include/kernel.mk
@@ -155,6 +155,7 @@ define KernelPackage
$(eval $(call KernelPackage/Defaults))
$(eval $(call KernelPackage/$(1)))
$(eval $(call KernelPackage/$(1)/$(BOARD)))
+ $(eval $(call KernelPackage/$(1)/$(BOARD)/$(if $(SUBTARGET),$(SUBTARGET),generic)))
define Package/kmod-$(1)
TITLE:=$(TITLE)
@@ -166,6 +167,7 @@ define KernelPackage
PKGFLAGS:=$(PKGFLAGS)
$(call KernelPackage/$(1))
$(call KernelPackage/$(1)/$(BOARD))
+ $(call KernelPackage/$(1)/$(BOARD)/$(if $(SUBTARGET),$(SUBTARGET),generic))
endef
ifdef KernelPackage/$(1)/conffiles
More information about the lede-commits
mailing list