Skip to content

Commit

Permalink
kbuild: finally remove the obsolete variable $TOPDIR
Browse files Browse the repository at this point in the history
TOPDIR is obsolete, it can be finally removed now.

Signed-off-by: WANG Cong <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
Amerigo Wang authored and sravnborg committed Jun 26, 2009
1 parent c512d25 commit 1129423
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion drivers/scsi/cxgb3i/Kbuild
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1129423

Please sign in to comment.