[PATCH] kernel: bpf-headers: fix build error when testing kernel is used
Ansuel Smith
ansuelsmth at gmail.com
Sat Jan 22 12:30:17 PST 2022
Now that we have separate files for each kernel version, only the version/hash
for the target kernel are available.
This cause a missing hash error (and wrong kernel version) for bpf-headers
when a testing kernel version is used for the current target.
Fix this error by manually including the kernel version/hash file for the
specific kernel version requested.
Signed-off-by: Ansuel Smith <ansuelsmth at gmail.com>
---
package/kernel/bpf-headers/Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/package/kernel/bpf-headers/Makefile b/package/kernel/bpf-headers/Makefile
index f3c0584007..b3f1c0c7f3 100644
--- a/package/kernel/bpf-headers/Makefile
+++ b/package/kernel/bpf-headers/Makefile
@@ -14,6 +14,9 @@ include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=linux
PKG_PATCHVER:=5.10
+# Manually include kernel version/hash from kernel details file
+include $(INCLUDE_DIR)/kernel-$(PKG_PATCHVER)
+
PKG_VERSION:=$(PKG_PATCHVER)$(strip $(LINUX_VERSION-$(PKG_PATCHVER)))
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=$(LINUX_SITE)
--
2.30.2.windows.1
More information about the openwrt-devel
mailing list