X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=include%2Fkernel-version.mk;h=958ed9be0c0b80d82e4dab4aa95f83fd08a0ee87;hb=389135501565a6544775e0c75828a11e536e64a2;hp=4008511940ba1d230d95f27cfda0688c5a60f835;hpb=3d0499bcdb9869075d1a7470c73c9ea4c7a32e8f;p=openwrt%2Fstaging%2Fstintel.git diff --git a/include/kernel-version.mk b/include/kernel-version.mk index 4008511940..958ed9be0c 100644 --- a/include/kernel-version.mk +++ b/include/kernel-version.mk @@ -6,11 +6,21 @@ ifdef CONFIG_TESTING_KERNEL KERNEL_PATCHVER:=$(KERNEL_TESTING_PATCHVER) endif -LINUX_VERSION-5.4 = .154 -LINUX_VERSION-5.10 = .72 +KERNEL_DETAILS_FILE=$(INCLUDE_DIR)/kernel-$(KERNEL_PATCHVER) +ifeq ($(wildcard $(KERNEL_DETAILS_FILE)),) + $(error Missing kernel version/hash file for $(KERNEL_PATCHVER). Please create $(KERNEL_DETAILS_FILE)) +endif + +include $(KERNEL_DETAILS_FILE) + +ifdef KERNEL_TESTING_PATCHVER + KERNEL_TESTING_DETAILS_FILE=$(INCLUDE_DIR)/kernel-$(KERNEL_TESTING_PATCHVER) + ifeq ($(wildcard $(KERNEL_TESTING_DETAILS_FILE)),) + $(error Missing kernel version/hash file for $(KERNEL_TESTING_PATCHVER). Please create $(KERNEL_TESTING_DETAILS_FILE)) + endif -LINUX_KERNEL_HASH-5.4.154 = 058994f4666b6b0474a4d5228583e394594e406783b7e93d487c2a66c35f3c06 -LINUX_KERNEL_HASH-5.10.72 = b4d635afe7646ac6a6617c738e747ba0a6006675cd9735d18f672f8b1fba4c7c + include $(KERNEL_TESTING_DETAILS_FILE) +endif remove_uri_prefix=$(subst git://,,$(subst http://,,$(subst https://,,$(1)))) sanitize_uri=$(call qstrip,$(subst @,_,$(subst :,_,$(subst .,_,$(subst -,_,$(subst /,_,$(1)))))))