[PATCH] backports: Keep kconf/zconf.{lex,tab}.c during "make clean"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Anthony Wong <yp@xxxxxxxxxxxxxxx>

On recent kernel versions, build fails after "make clean" is run
because "make clean" removes kconf/zconf.{lex,tab}.c, so presesrve
them during "make clean".

Signed-off-by: Anthony Wong <yp@xxxxxxxxxxxxxxx>
 backport/Makefile.real | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/backport/Makefile.real b/backport/Makefile.real
index 65508028..e772a9cf 100644
--- a/backport/Makefile.real
+++ b/backport/Makefile.real
@@ -115,7 +115,10 @@ uninstall:
 	@echo Reboot.
+EXCLUDE_CLEAN := kconf/zconf.lex.c kconf/zconf.tab.c
 .PHONY: clean
+	@$(foreach f, $(EXCLUDE_CLEAN), mv $(f) $(f).orig;)
 	@$(MAKE) -f Makefile.build clean
 	@$(MAKE) -C kconf clean
+	@$(foreach f, $(EXCLUDE_CLEAN), mv $(f).orig $(f);)

To unsubscribe from this list: send the line "unsubscribe backports" in

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux