Skip to content

Commit

Permalink
sdk: include arch/arm/ Linux includes along with arch/arm64/ ones
Browse files Browse the repository at this point in the history
The Linux headers on arm64 architectures contain references to common
arch/arm/ headers which were not bundled by the SDK so far.

Check if we're packing the SDK for an arm64 target and if we do, also
include arch/arm headers as well.

Fixes FS#1725.
Signed-off-by: Jo-Philipp Wich <[email protected]>
  • Loading branch information
jow- committed Aug 3, 2018
1 parent 13c66f8 commit 4bb8a67
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion target/sdk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,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 $(PROJECT_GIT)/openwrt/openwrt.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* \
Expand All @@ -67,7 +73,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))))

Expand Down

0 comments on commit 4bb8a67

Please sign in to comment.