lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080131085408.GA14470@linux-sh.org>
Date:	Thu, 31 Jan 2008 17:54:08 +0900
From:	Paul Mundt <lethal@...ux-sh.org>
To:	Francis Moreau <francis.moro@...il.com>,
	linux-kernel@...r.kernel.org
Subject: Re: [Kbuild] How to clean a particular directory ?

On Thu, Jan 31, 2008 at 05:48:51PM +0900, Paul Mundt wrote:
> On Thu, Jan 31, 2008 at 09:38:10AM +0100, Francis Moreau wrote:
> > I'd like to clean a particular directory in the kernel tree.
> > 
> > I tried several things such as:
> > 
> > $ make drivers/char clean
> > $ make -f scripts/Makefile.clean obj=drivers/char
> > 
> > But it doesn't work.
> > 
> > Could anybody give me  a hint ?
> 
> make SUBDIRS=drivers/char clean
> 
> should do the trick. Kbuild might have a magic incantation for it these
> days, but that's the way it used to work, and still seems to.

Makefile says:

# Use make M=dir to specify directory of external module to build
# Old syntax make ... SUBDIRS=$PWD is still supported
# Setting the environment variable KBUILD_EXTMOD take precedence
ifdef SUBDIRS
  KBUILD_EXTMOD ?= $(SUBDIRS)
endif
ifdef M
  ifeq ("$(origin M)", "command line")
    KBUILD_EXTMOD := $(M)
  endif
endif

so M= is apparently the newfangled (and undocumented) way of doing this.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ