toolchain: kernel-headers: kernel Git tree mirror hash
authorPetr Štetiar <ynezz@true.cz>
Sat, 21 Nov 2020 14:59:50 +0000 (15:59 +0100)
committerPetr Štetiar <ynezz@true.cz>
Fri, 27 Nov 2020 13:46:13 +0000 (14:46 +0100)
Allow setting of mirror hash for Git kernel tree.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
config/Config-devel.in
toolchain/kernel-headers/Makefile

index 6447a79db2caa3367caf1d7530ef33928e526ba0..21e15f16dcb46cd561ba6e63117b395fd7542449 100644 (file)
@@ -107,6 +107,11 @@ menuconfig DEVEL
                  It can be a git hash or a branch name.
                  If unused, the clone's repository HEAD will be checked-out.
 
+       config KERNEL_GIT_MIRROR_HASH
+               string "Enter hash of Git kernel tree source checkout tarball" if DEVEL
+               depends on (KERNEL_GIT_CLONE_URI != "")
+               default ""
+
        config BUILD_LOG
                bool "Enable log files during build process" if DEVEL
                help
index 1bc650dc3c7802dc698eee30e207cd8454e5d24e..eea0ffbde0713c2175bbc5954ff029942fd2e938 100644 (file)
@@ -21,6 +21,7 @@ ifneq ($(call qstrip,$(CONFIG_KERNEL_GIT_CLONE_URI)),)
   PKG_SOURCE_PROTO:=git
   PKG_SOURCE_URL:=$(call qstrip,$(CONFIG_KERNEL_GIT_CLONE_URI))
   PKG_SOURCE_VERSION:=$(call qstrip,$(CONFIG_KERNEL_GIT_REF))
+  PKG_MIRROR_HASH:=$(call qstrip,$(CONFIG_KERNEL_GIT_MIRROR_HASH))
 ifdef CHECK
   include $(INCLUDE_DIR)/kernel-version.mk
   PKG_VERSION:=$(LINUX_VERSION)