diff options
author | Stijn Tintel <stijn@linux-ipv6.be> | 2017-01-04 02:45:36 +0100 |
---|---|---|
committer | Stijn Tintel <stijn@linux-ipv6.be> | 2017-01-04 13:20:19 +0100 |
commit | a93accd73dba6d56247a1076e62c612b31e4ebc3 (patch) | |
tree | 68b690ac1d97ee12f05f27a175a215cf2ccac683 | |
parent | 301301da2b2998177d4c34521f933c828972a985 (diff) | |
download | upstream-a93accd73dba6d56247a1076e62c612b31e4ebc3.tar.gz upstream-a93accd73dba6d56247a1076e62c612b31e4ebc3.tar.bz2 upstream-a93accd73dba6d56247a1076e62c612b31e4ebc3.zip |
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@linux-ipv6.be>
-rw-r--r-- | include/kernel.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/kernel.mk b/include/kernel.mk index 4e66c0c76f..2314ec73aa 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 |