All of
 help / color / mirror / Atom feed
From: Robin Meijboom <>
To: Masahiro Yamada <>,
	Michal Marek <>
	Josh Poimboeuf <>,
	Peter Zijlstra <>
Subject: [PATCH] objtool: remove generated files with make clean
Date: Thu, 14 Feb 2019 22:08:38 +0100	[thread overview]
Message-ID: <> (raw)

Make clean currently does not remove the generated files for objtool:
tools/objtool/objtool, tools/objtool/fixdep, and

Clean these files up as part of make clean.

Fixes: b9ab5ebb14ec ("objtool: Add CONFIG_STACK_VALIDATION option") and
bug report 199485 (

Signed-off-by: Robin Meijboom <>
In the discussions I didn't find a reason for keeping the files, so I
assume it is an oversight. Otherwise I would have expected them to be
removed at least by make distconfig (which they are not).

Tested by compiling, cleaning, compiling again, and booting on x86_64.

diff --git a/Makefile b/Makefile
index 141653226f3c..81a8149a805f 100644
--- a/Makefile
+++ b/Makefile
@@ -1328,6 +1328,8 @@ endif # CONFIG_MODULES

  # Directories & files removed with 'make clean'
  CLEAN_DIRS  += $(MODVERDIR) include/ksym
+CLEAN_FILES += tools/objtool/objtool tools/objtool/fixdep \
+           tools/objtool/arch/$(ARCH)/lib/inat-tables.c

  # Directories & files removed with 'make mrproper'
  MRPROPER_DIRS  += include/config usr/include include/generated          \

             reply	other threads:[~2019-02-14 21:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-14 21:08 Robin Meijboom [this message]
2019-02-28 13:36 ` [PATCH] objtool: remove generated files with make clean Masahiro Yamada
2019-02-28 20:12   ` Robin Meijboom
2019-02-28 22:29     ` Josh Poimboeuf
2019-03-04 22:43       ` Robin Meijboom
2019-03-05  2:05         ` Josh Poimboeuf
2019-03-05  5:56         ` Masahiro Yamada
2019-03-05  5:52       ` Masahiro Yamada

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \

* 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.