xfs-masters
[Top] [All Lists]

[xfs-masters] Re: [Patch 7/8] FS: Remove 'TOPDIR' from Makefiles

To: xfs-masters@xxxxxxxxxxx
Subject: [xfs-masters] Re: [Patch 7/8] FS: Remove 'TOPDIR' from Makefiles
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Tue, 01 Jan 2008 11:27:37 -0600
Cc: LKML <linux-kernel@xxxxxxxxxxxxxxx>, Sam Ravnborg <sam@xxxxxxxxxxxx>, linux-kbuild@xxxxxxxxxxxxxxx, Andrew Morton <akpm@xxxxxxxx>, viro@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080101074105.GH2496@hacking>
References: <20080101071311.GA2496@hacking> <20080101074105.GH2496@hacking>
Reply-to: xfs-masters@xxxxxxxxxxx
Sender: xfs-masters-bounce@xxxxxxxxxxx
User-agent: Thunderbird 2.0.0.9 (Macintosh/20071031)
WANG Cong wrote:
> TOPDIR is obsolete, use objtree instead.
> This patch removes TOPDIR from all fs/ Makefiles.

> diff --git a/fs/xfs/Makefile b/fs/xfs/Makefile
> index 49e3e7e..d1d3d49 100644
> --- a/fs/xfs/Makefile
> +++ b/fs/xfs/Makefile
> @@ -1 +1 @@
> -include $(TOPDIR)/fs/xfs/Makefile-linux-$(VERSION).$(PATCHLEVEL)
> +include $(objtree)/fs/xfs/Makefile-linux-$(VERSION).$(PATCHLEVEL)

FWIW $(TOPDIR) is already banished from the latest xfs build code:

http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/Makefile

and the patch is in -mm too via git:

http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.24-rc6/2.6.24-rc6-mm1/broken-out/git-xfs.patch

Thanks,

-Eric

p.s. what is $(objtree) exactly?  I don't see it mentioned in
Documentation/kbuild except as one line in an example... I thought
$(obj) and $(src) should be used outside of the core kbuild
infrastructure, and in this case wouldn't it be $(src) anyway?


<Prev in Thread] Current Thread [Next in Thread>