public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Patch] kbuild: finally remove the obsolete variable $TOPDIR
@ 2009-06-19  7:40 Amerigo Wang
  2009-06-30  9:06 ` Amerigo Wang
  0 siblings, 1 reply; 4+ messages in thread
From: Amerigo Wang @ 2009-06-19  7:40 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm, sam, Amerigo Wang


TOPDIR is obsolete, it can be finally removed now.

Signed-off-by: WANG Cong <amwang@redhat.com>
Cc: Sam <sam@ravnborg.org>

---
diff --git a/Makefile b/Makefile
index 46e1c9d..6e41628 100644
--- a/Makefile
+++ b/Makefile
@@ -140,15 +140,13 @@ _all: modules
 endif
 
 srctree		:= $(if $(KBUILD_SRC),$(KBUILD_SRC),$(CURDIR))
-TOPDIR		:= $(srctree)
-# FIXME - TOPDIR is obsolete, use srctree/objtree
 objtree		:= $(CURDIR)
 src		:= $(srctree)
 obj		:= $(objtree)
 
 VPATH		:= $(srctree)$(if $(KBUILD_EXTMOD),:$(KBUILD_EXTMOD))
 
-export srctree objtree VPATH TOPDIR
+export srctree objtree VPATH
 
 
 # SUBARCH tells the usermode build what the underlying arch is.  That is set
diff --git a/drivers/scsi/cxgb3i/Kbuild b/drivers/scsi/cxgb3i/Kbuild
index 25a2032..70d060b 100644
--- a/drivers/scsi/cxgb3i/Kbuild
+++ b/drivers/scsi/cxgb3i/Kbuild
@@ -1,4 +1,4 @@
-EXTRA_CFLAGS += -I$(TOPDIR)/drivers/net/cxgb3
+EXTRA_CFLAGS += -I$(srctree)/drivers/net/cxgb3
 
 cxgb3i-y := cxgb3i_init.o cxgb3i_iscsi.o cxgb3i_pdu.o cxgb3i_offload.o cxgb3i_ddp.o
 obj-$(CONFIG_SCSI_CXGB3_ISCSI) += cxgb3i.o

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Patch] kbuild: finally remove the obsolete variable $TOPDIR
  2009-06-19  7:40 [Patch] kbuild: finally remove the obsolete variable $TOPDIR Amerigo Wang
@ 2009-06-30  9:06 ` Amerigo Wang
  2009-06-30  9:16   ` Sam Ravnborg
  0 siblings, 1 reply; 4+ messages in thread
From: Amerigo Wang @ 2009-06-30  9:06 UTC (permalink / raw)
  To: Amerigo Wang; +Cc: linux-kernel, akpm, sam

On Fri, Jun 19, 2009 at 03:40:26AM -0400, Amerigo Wang wrote:
>
>TOPDIR is obsolete, it can be finally removed now.
>
>Signed-off-by: WANG Cong <amwang@redhat.com>
>Cc: Sam <sam@ravnborg.org>

ping Sam...


>
>---
>diff --git a/Makefile b/Makefile
>index 46e1c9d..6e41628 100644
>--- a/Makefile
>+++ b/Makefile
>@@ -140,15 +140,13 @@ _all: modules
> endif
> 
> srctree		:= $(if $(KBUILD_SRC),$(KBUILD_SRC),$(CURDIR))
>-TOPDIR		:= $(srctree)
>-# FIXME - TOPDIR is obsolete, use srctree/objtree
> objtree		:= $(CURDIR)
> src		:= $(srctree)
> obj		:= $(objtree)
> 
> VPATH		:= $(srctree)$(if $(KBUILD_EXTMOD),:$(KBUILD_EXTMOD))
> 
>-export srctree objtree VPATH TOPDIR
>+export srctree objtree VPATH
> 
> 
> # SUBARCH tells the usermode build what the underlying arch is.  That is set
>diff --git a/drivers/scsi/cxgb3i/Kbuild b/drivers/scsi/cxgb3i/Kbuild
>index 25a2032..70d060b 100644
>--- a/drivers/scsi/cxgb3i/Kbuild
>+++ b/drivers/scsi/cxgb3i/Kbuild
>@@ -1,4 +1,4 @@
>-EXTRA_CFLAGS += -I$(TOPDIR)/drivers/net/cxgb3
>+EXTRA_CFLAGS += -I$(srctree)/drivers/net/cxgb3
> 
> cxgb3i-y := cxgb3i_init.o cxgb3i_iscsi.o cxgb3i_pdu.o cxgb3i_offload.o cxgb3i_ddp.o
> obj-$(CONFIG_SCSI_CXGB3_ISCSI) += cxgb3i.o
>--
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Patch] kbuild: finally remove the obsolete variable $TOPDIR
  2009-06-30  9:06 ` Amerigo Wang
@ 2009-06-30  9:16   ` Sam Ravnborg
  2009-06-30  9:18     ` Amerigo Wang
  0 siblings, 1 reply; 4+ messages in thread
From: Sam Ravnborg @ 2009-06-30  9:16 UTC (permalink / raw)
  To: Amerigo Wang; +Cc: Amerigo Wang, linux-kernel, akpm

On Tue, Jun 30, 2009 at 05:06:39PM +0800, Amerigo Wang wrote:
> On Fri, Jun 19, 2009 at 03:40:26AM -0400, Amerigo Wang wrote:
> >
> >TOPDIR is obsolete, it can be finally removed now.
> >
> >Signed-off-by: WANG Cong <amwang@redhat.com>
> >Cc: Sam <sam@ravnborg.org>
> 
> ping Sam...
http://git.kernel.org/?p=linux/kernel/git/sam/kbuild-fixes.git;a=commit;h=112942353992d95099fb5b71c679ff1046fccfcf

Seems I forgot to send you an "applied" mail.

	Sam

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Patch] kbuild: finally remove the obsolete variable $TOPDIR
  2009-06-30  9:16   ` Sam Ravnborg
@ 2009-06-30  9:18     ` Amerigo Wang
  0 siblings, 0 replies; 4+ messages in thread
From: Amerigo Wang @ 2009-06-30  9:18 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: Amerigo Wang, Amerigo Wang, linux-kernel, akpm

On Tue, Jun 30, 2009 at 11:16:38AM +0200, Sam Ravnborg wrote:
>On Tue, Jun 30, 2009 at 05:06:39PM +0800, Amerigo Wang wrote:
>> On Fri, Jun 19, 2009 at 03:40:26AM -0400, Amerigo Wang wrote:
>> >
>> >TOPDIR is obsolete, it can be finally removed now.
>> >
>> >Signed-off-by: WANG Cong <amwang@redhat.com>
>> >Cc: Sam <sam@ravnborg.org>
>> 
>> ping Sam...
>http://git.kernel.org/?p=linux/kernel/git/sam/kbuild-fixes.git;a=commit;h=112942353992d95099fb5b71c679ff1046fccfcf
>
>Seems I forgot to send you an "applied" mail.
>

No problem. Thanks!


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-06-30  9:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-19  7:40 [Patch] kbuild: finally remove the obsolete variable $TOPDIR Amerigo Wang
2009-06-30  9:06 ` Amerigo Wang
2009-06-30  9:16   ` Sam Ravnborg
2009-06-30  9:18     ` Amerigo Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox