diff mbox series

[2/2] toolchain: kernel-headers: kernel Git tree mirror hash

Message ID 20201121153341.7406-2-ynezz@true.cz
State Under Review
Delegated to: Petr Štetiar
Headers show
Series [1/2] toolchain: kernel-headers: fix check target for kernel Git tree | expand

Commit Message

Petr Štetiar Nov. 21, 2020, 3:33 p.m. UTC
Allow setting of mirror hash for Git kernel tree.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
---
 config/Config-devel.in            | 5 +++++
 toolchain/kernel-headers/Makefile | 1 +
 2 files changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/config/Config-devel.in b/config/Config-devel.in
index 6447a79db2ca..21e15f16dcb4 100644
--- a/config/Config-devel.in
+++ b/config/Config-devel.in
@@ -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
diff --git a/toolchain/kernel-headers/Makefile b/toolchain/kernel-headers/Makefile
index 1bc650dc3c78..eea0ffbde071 100644
--- a/toolchain/kernel-headers/Makefile
+++ b/toolchain/kernel-headers/Makefile
@@ -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)