aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
Diffstat (limited to 'target')
-rw-r--r--target/sdk/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/target/sdk/Makefile b/target/sdk/Makefile
index 80deedbbd6..ae4bce5260 100644
--- a/target/sdk/Makefile
+++ b/target/sdk/Makefile
@@ -48,6 +48,12 @@ BASE_FEED:=$(if $(BASE_FEED),$(BASE_FEED),$(shell cd $(TOPDIR); LC_ALL=C svn inf
BASE_FEED:=$(if $(BASE_FEED),$(BASE_FEED),src-git base https://git.lede-project.org/source.git$(if $(GIT_BRANCH),;$(GIT_BRANCH),$(if $(GIT_TAGNAME),;$(GIT_TAGNAME))))
KDIR_BASE = $(patsubst $(TOPDIR)/%,%,$(LINUX_DIR))
+KDIR_ARCHES = $(LINUX_KARCH)
+
+# arch/arm64/ includes reference files in arch/arm/, so we'll need both
+ifeq ($(LINUX_KARCH),arm64)
+ KDIR_ARCHES += arm
+endif
KERNEL_FILES_ARCH = \
Makefile* \
@@ -66,7 +72,7 @@ KERNEL_FILES_BASE := \
include \
Module.symvers \
modules.builtin \
- $(addprefix arch/$(LINUX_KARCH)/,$(KERNEL_FILES_ARCH))
+ $(foreach arch,$(KDIR_ARCHES),$(addprefix arch/$(arch)/,$(KERNEL_FILES_ARCH)))
KERNEL_FILES := $(patsubst $(TOPDIR)/%,%,$(wildcard $(addprefix $(LINUX_DIR)/,$(KERNEL_FILES_BASE))))