From patchwork Wed Sep 2 19:29:56 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: cndougla@linux.vnet.ibm.com X-Patchwork-Id: 45253 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n82JTxhX000537 for ; Wed, 2 Sep 2009 19:29:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750808AbZIBT3z (ORCPT ); Wed, 2 Sep 2009 15:29:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751647AbZIBT3z (ORCPT ); Wed, 2 Sep 2009 15:29:55 -0400 Received: from e1.ny.us.ibm.com ([32.97.182.141]:51308 "EHLO e1.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750808AbZIBT3z convert rfc822-to-8bit (ORCPT ); Wed, 2 Sep 2009 15:29:55 -0400 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e1.ny.us.ibm.com (8.14.3/8.13.1) with ESMTP id n82JTSsU025568 for ; Wed, 2 Sep 2009 15:29:28 -0400 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id n82JTvfM248220 for ; Wed, 2 Sep 2009 15:29:57 -0400 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n82JTv5Q013588 for ; Wed, 2 Sep 2009 15:29:57 -0400 Received: from linux.ibm.com (imap.raleigh.ibm.com [9.37.253.145]) by d01av03.pok.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id n82JTujI013574 for ; Wed, 2 Sep 2009 15:29:56 -0400 Received: from 9.12.224.52 ([9.12.224.52]) by imap.linux.ibm.com (Horde MIME library) with HTTP; Wed, 2 Sep 2009 15:29:56 -0400 Message-ID: <20090902152956.huh9lx2hcco44coc@imap.linux.ibm.com> Date: Wed, 2 Sep 2009 15:29:56 -0400 From: cndougla@linux.vnet.ibm.com To: linux-kbuild@vger.kernel.org Subject: [PATCH] Makefile: make clean keep bounds.h and asm-offsets.h MIME-Version: 1.0 Content-Disposition: inline User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org 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 --- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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