From: anthony.wong@canonical.com
To: hauke@hauke-m.de, mcgrof@kernel.org
Cc: backports@vger.kernel.org
Subject: [PATCH] backports: Keep kconf/zconf.{lex,tab}.c during "make clean"
Date: Sat, 22 Jun 2019 16:50:53 +0800 [thread overview]
Message-ID: <20190622085053.6709-1-yp@anthonywong.net> (raw)
From: Anthony Wong <yp@anthonywong.net>
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@anthonywong.net>
---
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.
@echo
+EXCLUDE_CLEAN := kconf/zconf.lex.c kconf/zconf.tab.c
.PHONY: clean
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);)
--
2.11.0
--
To unsubscribe from this list: send the line "unsubscribe backports" in
reply other threads:[~2019-06-22 8:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190622085053.6709-1-yp@anthonywong.net \
--to=anthony.wong@canonical.com \
--cc=backports@vger.kernel.org \
--cc=hauke@hauke-m.de \
--cc=mcgrof@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.