From: Andi Kleen <ak@linux.intel.com>
To: masahiroy@kernel.org
Cc: linux-kbuild@vger.kernel.org, Andi Kleen <andi@firstfloor.org>,
Andi Kleen <ak@linux.intel.com>
Subject: [PATCH] kbuild, link-vmlinux: Don't delete output files with make -i
Date: Sun, 25 Apr 2021 14:35:21 -0700 [thread overview]
Message-ID: <20210425213521.3159899-1-ak@linux.intel.com> (raw)
From: Andi Kleen <andi@firstfloor.org>
make -i is useful to see output files which normally get deleted on an
error. Make this work with link-vmlinux.sh too. Don't delete the output
files on error when make -i is used.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
scripts/link-vmlinux.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh
index 0e039a4cf2cb..a1a57f214c58 100755
--- a/scripts/link-vmlinux.sh
+++ b/scripts/link-vmlinux.sh
@@ -300,6 +300,11 @@ sorttable()
# Delete output files in case of error
cleanup()
{
+ # don't delete for make -i
+ case "$MFLAGS" in
+ *-i*) return ;;
+ esac
+
rm -f .btf.*
rm -f .tmp_System.map
rm -f .tmp_initcalls.lds
--
2.25.4
next reply other threads:[~2021-04-25 21:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-25 21:35 Andi Kleen [this message]
2021-04-26 9:01 ` [PATCH] kbuild, link-vmlinux: Don't delete output files with make -i Masahiro Yamada
2021-04-26 14:20 ` Andi Kleen
2022-06-23 8:31 Jiri Slaby
2022-06-23 9:45 ` Masahiro Yamada
2022-06-23 9:50 ` Jiri Slaby
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=20210425213521.3159899-1-ak@linux.intel.com \
--to=ak@linux.intel.com \
--cc=andi@firstfloor.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=masahiroy@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.