Commit fa3d60b2 authored by Sam Ravnborg's avatar Sam Ravnborg Committed by Linus Torvalds

[PATCH] fs/ Makefile cleanup

Simplify Makefiles in fs/ by utilising the new syntax for composite
objects. The new syntax allowed a couple of ifeq ($(CONFIG_FOO),y)
to be deleted, resulting in more readable Makefiles.

No functional changes introduced.
parent bae79439
...@@ -4,12 +4,6 @@ ...@@ -4,12 +4,6 @@
obj-$(CONFIG_DEVPTS_FS) += devpts.o obj-$(CONFIG_DEVPTS_FS) += devpts.o
devpts-objs := inode.o devpts-y := inode.o
devpts-$(CONFIG_DEVPTS_FS_XATTR) += xattr.o
ifeq ($(CONFIG_DEVPTS_FS_XATTR),y) devpts-$(CONFIG_DEVPTS_FS_SECURITY) += xattr_security.o
devpts-objs += xattr.o
endif
ifeq ($(CONFIG_DEVPTS_FS_SECURITY),y)
devpts-objs += xattr_security.o
endif
...@@ -4,17 +4,9 @@ ...@@ -4,17 +4,9 @@
obj-$(CONFIG_EXT2_FS) += ext2.o obj-$(CONFIG_EXT2_FS) += ext2.o
ext2-objs := balloc.o bitmap.o dir.o file.o fsync.o ialloc.o inode.o \ ext2-y := balloc.o bitmap.o dir.o file.o fsync.o ialloc.o inode.o \
ioctl.o namei.o super.o symlink.o ioctl.o namei.o super.o symlink.o
ifeq ($(CONFIG_EXT2_FS_XATTR),y) ext2-$(CONFIG_EXT2_FS_XATTR) += xattr.o xattr_user.o xattr_trusted.o
ext2-objs += xattr.o xattr_user.o xattr_trusted.o ext2-$(CONFIG_EXT2_FS_POSIX_ACL) += acl.o
endif ext2-$(CONFIG_EXT2_FS_SECURITY) += xattr_security.o
ifeq ($(CONFIG_EXT2_FS_POSIX_ACL),y)
ext2-objs += acl.o
endif
ifeq ($(CONFIG_EXT2_FS_SECURITY),y)
ext2-objs += xattr_security.o
endif
...@@ -4,17 +4,9 @@ ...@@ -4,17 +4,9 @@
obj-$(CONFIG_EXT3_FS) += ext3.o obj-$(CONFIG_EXT3_FS) += ext3.o
ext3-objs := balloc.o bitmap.o dir.o file.o fsync.o ialloc.o inode.o \ ext3-y := balloc.o bitmap.o dir.o file.o fsync.o ialloc.o inode.o \
ioctl.o namei.o super.o symlink.o hash.o ioctl.o namei.o super.o symlink.o hash.o
ifeq ($(CONFIG_EXT3_FS_XATTR),y) ext3-$(CONFIG_EXT3_FS_XATTR) += xattr.o xattr_user.o xattr_trusted.o
ext3-objs += xattr.o xattr_user.o xattr_trusted.o ext3-$(CONFIG_EXT3_FS_POSIX_ACL) += acl.o
endif ext3-$(CONFIG_EXT3_FS_SECURITY) += xattr_security.o
ifeq ($(CONFIG_EXT3_FS_POSIX_ACL),y)
ext3-objs += acl.o
endif
ifeq ($(CONFIG_EXT3_FS_SECURITY),y)
ext3-objs += xattr_security.o
endif
...@@ -4,14 +4,12 @@ ...@@ -4,14 +4,12 @@
obj-$(CONFIG_JFS_FS) += jfs.o obj-$(CONFIG_JFS_FS) += jfs.o
jfs-objs := super.o file.o inode.o namei.o jfs_mount.o jfs_umount.o \ jfs-y := super.o file.o inode.o namei.o jfs_mount.o jfs_umount.o \
jfs_xtree.o jfs_imap.o jfs_debug.o jfs_dmap.o \ jfs_xtree.o jfs_imap.o jfs_debug.o jfs_dmap.o \
jfs_unicode.o jfs_dtree.o jfs_inode.o \ jfs_unicode.o jfs_dtree.o jfs_inode.o \
jfs_extent.o symlink.o jfs_metapage.o \ jfs_extent.o symlink.o jfs_metapage.o \
jfs_logmgr.o jfs_txnmgr.o jfs_uniupr.o resize.o xattr.o jfs_logmgr.o jfs_txnmgr.o jfs_uniupr.o resize.o xattr.o
ifeq ($(CONFIG_JFS_POSIX_ACL),y) jfs-$(CONFIG_JFS_POSIX_ACL) += acl.o
jfs-objs += acl.o
endif
EXTRA_CFLAGS += -D_JFS_4K EXTRA_CFLAGS += -D_JFS_4K
...@@ -4,14 +4,11 @@ ...@@ -4,14 +4,11 @@
obj-$(CONFIG_NCP_FS) += ncpfs.o obj-$(CONFIG_NCP_FS) += ncpfs.o
ncpfs-objs := dir.o file.o inode.o ioctl.o mmap.o ncplib_kernel.o sock.o \ ncpfs-y := dir.o file.o inode.o ioctl.o mmap.o ncplib_kernel.o sock.o \
ncpsign_kernel.o getopt.o ncpsign_kernel.o getopt.o
ifeq ($(CONFIG_NCPFS_EXTRAS),y)
ncpfs-objs += symlink.o ncpfs-$(CONFIG_NCPFS_EXTRAS) += symlink.o
endif ncpfs-$(CONFIG_NCPFS_NFS_NS) += symlink.o
ifeq ($(CONFIG_NCPFS_NFS_NS),y)
ncpfs-objs += symlink.o
endif
# If you want debugging output, please uncomment the following line # If you want debugging output, please uncomment the following line
# EXTRA_CFLAGS += -DDEBUG_NCP=1 # EXTRA_CFLAGS += -DDEBUG_NCP=1
......
...@@ -4,15 +4,10 @@ ...@@ -4,15 +4,10 @@
obj-$(CONFIG_PROC_FS) += proc.o obj-$(CONFIG_PROC_FS) += proc.o
proc-objs := inode.o root.o base.o generic.o array.o \ proc-y := task_nommu.o
kmsg.o proc_tty.o proc_misc.o kcore.o proc-$(CONFIG_MMU) := task_mmu.o
ifeq ($(CONFIG_MMU),y) proc-y += inode.o root.o base.o generic.o array.o \
proc-objs += task_mmu.o kmsg.o proc_tty.o proc_misc.o kcore.o
else
proc-objs += task_nommu.o
endif
ifeq ($(CONFIG_PROC_DEVICETREE),y) proc-$(CONFIG_PROC_DEVICETREE) += proc_devtree.o
proc-objs += proc_devtree.o
endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment