diff --git a/patch/kernel/archive/meson-s4t7-5.15/Makefile-don-t-try-to-modify-git-hooks.patch b/patch/kernel/archive/meson-s4t7-5.15/Makefile-don-t-try-to-modify-git-hooks.patch new file mode 100644 index 0000000000..8d0b2ff258 --- /dev/null +++ b/patch/kernel/archive/meson-s4t7-5.15/Makefile-don-t-try-to-modify-git-hooks.patch @@ -0,0 +1,33 @@ +From e2de477ae718ae0cefcb2ad7ee65743b33bea999 Mon Sep 17 00:00:00 2001 +From: Gunjan Gupta +Date: Fri, 26 Jan 2024 23:19:30 +0000 +Subject: [PATCH] Makefile: don't try to modify git hooks + +--- + Makefile | 8 ----------- + 1 file changed, 8 deletions(-) + +diff --git a/Makefile b/Makefile +index 5fdf7c5ca5cd..a95777682e60 100644 +--- a/Makefile ++++ b/Makefile +@@ -2106,16 +2106,8 @@ endif # config-build + endif # mixed-build + endif # need-sub-make + +-ifdef CONFIG_AMLOGIC_DRIVER + PHONY += FORCE + FORCE: +- $(Q)-cp $(srctree)/scripts/amlogic/commit-msg $(srctree)/.git/hooks/ +- $(Q)-cp $(srctree)/scripts/amlogic/commit-msg $(srctree)/$(COMMON_DRIVERS_DIR)/.git/hooks/ +- $(Q)-chmod +x $(srctree)/.git/hooks/commit-msg $(srctree)/$(COMMON_DRIVERS_DIR)/.git/hooks/commit-msg +-else +-PHONY += FORCE +-FORCE: +-endif + + # Declare the contents of the PHONY variable as phony. We keep that + # information in a variable so we can use it in if_changed and friends. +-- +2.34.1 +