aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel
diff options
context:
space:
mode:
authorAnsuel Smith <ansuelsmth@gmail.com>2022-01-22 21:27:49 +0100
committerPaul Spooren <mail@aparcar.org>2022-02-06 12:43:57 +0100
commit4d904524effc9eb0cc5094574c55d3a520803223 (patch)
treecfa7f61d0c6951ca819fe586f117e26dc50ea1cc /package/kernel
parent1b311aab3141bbea5667be4517e2599e6235cca0 (diff)
downloadupstream-4d904524effc9eb0cc5094574c55d3a520803223.tar.gz
upstream-4d904524effc9eb0cc5094574c55d3a520803223.tar.bz2
upstream-4d904524effc9eb0cc5094574c55d3a520803223.zip
kernel: bpf-headers: fix build error when testing kernel is used
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@gmail.com>
Diffstat (limited to 'package/kernel')
-rw-r--r--package/kernel/bpf-headers/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/kernel/bpf-headers/Makefile b/package/kernel/bpf-headers/Makefile
index 0f0857133a..4d603707af 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 and 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)