All of lore.kernel.org
 help / color / mirror / Atom feed
From: cndougla@linux.vnet.ibm.com
To: linux-kbuild@vger.kernel.org
Subject: [PATCH] Makefile: make clean keep bounds.h and asm-offsets.h
Date: Wed,  2 Sep 2009 15:29:56 -0400	[thread overview]
Message-ID: <20090902152956.huh9lx2hcco44coc@imap.linux.ibm.com> (raw)

make clean is supposed to leave the kernel in a state such that  
modules may be built against it. However, currently make clean deletes  
include/linux/bounds.h and include/asm/asm-offsets.h, which are needed  
to build kernel modules. The following patch filters these two files  
from the targets to be cleaned.

Signed-off-by: Chase Douglas <cndougla@linux.vnet.ibm.com>

diff --git a/scripts/Makefile.clean b/scripts/Makefile.clean
index 6f89fbb..1ad01f8 100644
--- a/scripts/Makefile.clean
+++ b/scripts/Makefile.clean
@@ -40,10 +40,11 @@ subdir-ymn  := $(addprefix $(obj)/,$(subdir-ymn))
  # build a list of files to remove, usually relative to the current
  # directory

-__clean-files  := $(extra-y) $(always)                  \
+__clean-files  := $(filter-out $(bounds-file) $(offsets-file), \
+                  $(extra-y) $(always)                  \
                    $(targets) $(clean-files)             \
                    $(host-progs)                         \
-                  $(hostprogs-y) $(hostprogs-m) $(hostprogs-)
+                  $(hostprogs-y) $(hostprogs-m) $(hostprogs-))

  # as clean-files is given relative to the current directory, this adds
  # a $(obj) prefix, except for absolute paths


                 reply	other threads:[~2009-09-02 19:29 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=20090902152956.huh9lx2hcco44coc@imap.linux.ibm.com \
    --to=cndougla@linux.vnet.ibm.com \
    --cc=linux-kbuild@vger.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.