aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/bpf-headers
diff options
context:
space:
mode:
Diffstat (limited to 'package/kernel/bpf-headers')
-rw-r--r--package/kernel/bpf-headers/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/kernel/bpf-headers/Makefile b/package/kernel/bpf-headers/Makefile
index df24bfa13f..f3c0584007 100644
--- a/package/kernel/bpf-headers/Makefile
+++ b/package/kernel/bpf-headers/Makefile
@@ -63,9 +63,15 @@ endef
BPF_DOC = $(PKG_BUILD_DIR)/scripts/bpf_helpers_doc.py
+define Build/Configure/64
+ echo 'CONFIG_CPU_MIPS64_R2=y' >> $(PKG_BUILD_DIR)/.config
+ echo 'CONFIG_64BIT=y' >> $(PKG_BUILD_DIR)/.config
+endef
+
define Build/Configure
grep -vE 'CONFIG_(CPU_.*ENDIAN|HZ)' $(PKG_BUILD_DIR)/arch/mips/configs/generic_defconfig > $(PKG_BUILD_DIR)/.config
echo 'CONFIG_CPU_$(if $(CONFIG_BIG_ENDIAN),BIG,LITTLE)_ENDIAN=y' >> $(PKG_BUILD_DIR)/.config
+ $(if $(CONFIG_ARCH_64BIT),$(Build/Configure/64))
grep CONFIG_HZ $(REAL_LINUX_DIR)/.config >> $(PKG_BUILD_DIR)/.config
yes '' | $(KERNEL_MAKE) oldconfig
grep 'CONFIG_HZ=' $(REAL_LINUX_DIR)/.config | \