Skip to content

Commit

Permalink
fs: change to new flag variable
Browse files Browse the repository at this point in the history
Replace EXTRA_CFLAGS with ccflags-y. And change ntfs-objs to ntfs-y
for cleaner conditional inclusion.

Signed-off-by: matt mooney <[email protected]>
Acked-by: WANG Cong <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
mfmooney authored and michal42 committed Mar 17, 2011
1 parent 3996eab commit 0ccd234
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 29 deletions.
2 changes: 1 addition & 1 deletion fs/affs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Makefile for the Linux affs filesystem routines.
#

#EXTRA_CFLAGS=-DDEBUG=1
#ccflags-y := -DDEBUG=1

obj-$(CONFIG_AFFS_FS) += affs.o

Expand Down
2 changes: 1 addition & 1 deletion fs/coda/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ coda-objs := psdev.o cache.o cnode.o inode.o dir.o file.o upcall.o \

# If you want debugging output, please uncomment the following line.

# EXTRA_CFLAGS += -DDEBUG -DDEBUG_SMB_MALLOC=1
# ccflags-y := -DDEBUG -DDEBUG_SMB_MALLOC=1
2 changes: 1 addition & 1 deletion fs/gfs2/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
EXTRA_CFLAGS := -I$(src)
ccflags-y := -I$(src)
obj-$(CONFIG_GFS2_FS) += gfs2.o
gfs2-y := acl.o bmap.o dir.o xattr.o glock.o \
glops.o inode.o log.o lops.o main.o meta_io.o \
Expand Down
2 changes: 1 addition & 1 deletion fs/jfs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jfs-y := super.o file.o inode.o namei.o jfs_mount.o jfs_umount.o \

jfs-$(CONFIG_JFS_POSIX_ACL) += acl.o

EXTRA_CFLAGS += -D_JFS_4K
ccflags-y := -D_JFS_4K
2 changes: 1 addition & 1 deletion fs/ncpfs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ ncpfs-$(CONFIG_NCPFS_EXTRAS) += symlink.o
ncpfs-$(CONFIG_NCPFS_NFS_NS) += symlink.o

# If you want debugging output, please uncomment the following line
# EXTRA_CFLAGS += -DDEBUG_NCP=1
# ccflags-y := -DDEBUG_NCP=1

CFLAGS_ncplib_kernel.o := -finline-functions
19 changes: 7 additions & 12 deletions fs/ntfs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,13 @@

obj-$(CONFIG_NTFS_FS) += ntfs.o

ntfs-objs := aops.o attrib.o collate.o compress.o debug.o dir.o file.o \
index.o inode.o mft.o mst.o namei.o runlist.o super.o sysctl.o \
unistr.o upcase.o
ntfs-y := aops.o attrib.o collate.o compress.o debug.o dir.o file.o \
index.o inode.o mft.o mst.o namei.o runlist.o super.o sysctl.o \
unistr.o upcase.o

EXTRA_CFLAGS = -DNTFS_VERSION=\"2.1.30\"
ntfs-$(CONFIG_NTFS_RW) += bitmap.o lcnalloc.o logfile.o quota.o usnjrnl.o

ifeq ($(CONFIG_NTFS_DEBUG),y)
EXTRA_CFLAGS += -DDEBUG
endif
ccflags-y := -DNTFS_VERSION=\"2.1.30\"
ccflags-$(CONFIG_NTFS_DEBUG) += -DDEBUG
ccflags-$(CONFIG_NTFS_RW) += -DNTFS_RW

ifeq ($(CONFIG_NTFS_RW),y)
EXTRA_CFLAGS += -DNTFS_RW

ntfs-objs += bitmap.o lcnalloc.o logfile.o quota.o usnjrnl.o
endif
4 changes: 2 additions & 2 deletions fs/ocfs2/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
EXTRA_CFLAGS += -Ifs/ocfs2
ccflags-y := -Ifs/ocfs2

EXTRA_CFLAGS += -DCATCH_BH_JBD_RACES
ccflags-y += -DCATCH_BH_JBD_RACES

obj-$(CONFIG_OCFS2_FS) += \
ocfs2.o \
Expand Down
2 changes: 1 addition & 1 deletion fs/ocfs2/dlm/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
EXTRA_CFLAGS += -Ifs/ocfs2
ccflags-y := -Ifs/ocfs2

obj-$(CONFIG_OCFS2_FS_O2CB) += ocfs2_dlm.o

Expand Down
2 changes: 1 addition & 1 deletion fs/ocfs2/dlmfs/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
EXTRA_CFLAGS += -Ifs/ocfs2
ccflags-y := -Ifs/ocfs2

obj-$(CONFIG_OCFS2_FS) += ocfs2_dlmfs.o

Expand Down
4 changes: 1 addition & 3 deletions fs/reiserfs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ endif
# and causing a panic. Since this behavior only affects ppc32, this ifeq
# will work around it. If any other architecture displays this behavior,
# add it here.
ifeq ($(CONFIG_PPC32),y)
EXTRA_CFLAGS := $(call cc-ifversion, -lt, 0400, -O1)
endif
ccflags-$(CONFIG_PPC32) := $(call cc-ifversion, -lt, 0400, -O1)

TAGS:
etags *.c
Expand Down
7 changes: 2 additions & 5 deletions fs/xfs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,11 @@
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#

EXTRA_CFLAGS += -I$(src) -I$(src)/linux-2.6
ccflags-y := -I$(src) -I$(src)/linux-2.6
ccflags-$(CONFIG_XFS_DEBUG) += -g

XFS_LINUX := linux-2.6

ifeq ($(CONFIG_XFS_DEBUG),y)
EXTRA_CFLAGS += -g
endif

obj-$(CONFIG_XFS_FS) += xfs.o

xfs-y += linux-2.6/xfs_trace.o
Expand Down

0 comments on commit 0ccd234

Please sign in to comment.