VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Masahiro Yamada <masahiroy@kernel.org> 2021-04-25 16:07:12 +0900 committer: Masahiro Yamada <masahiroy@kernel.org> 2021-05-02 00:43:35 +0900 commit: 1476fee5c53e24e06cfc436110cdefbc1868e8c1 parent: 46b41d5dd8019b264717978c39c43313a524d033
Commit Summary:
kbuild: add a script to remove stale generated files
Diffstat:
1 file changed, 5 insertions, 1 deletion
diff --git a/Makefile b/Makefile
index 6eafedd7efc6..9f5a3cac63e7 100644
--- a/Makefile
+++ b/Makefile
@@ -1225,7 +1225,7 @@ PHONY += prepare archprepare
 
 archprepare: outputmakefile archheaders archscripts scripts include/config/kernel.release \
 	asm-generic $(version_h) $(autoksyms_h) include/generated/utsrelease.h \
-	include/generated/autoconf.h
+	include/generated/autoconf.h remove-stale-files
 
 prepare0: archprepare
 	$(Q)$(MAKE) $(build)=scripts/mod
@@ -1234,6 +1234,10 @@ prepare0: archprepare
 # All the preparing..
 prepare: prepare0 prepare-objtool prepare-resolve_btfids
 
+PHONY += remove-stale-files
+remove-stale-files:
+	$(Q)$(srctree)/scripts/remove-stale-files
+
 # Support for using generic headers in asm-generic
 asm-generic := -f $(srctree)/scripts/Makefile.asm-generic obj