1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# Makefile for the Linux filesystems. 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun# 14 Sep 2000, Christoph Hellwig <hch@infradead.org> 6*4882a593Smuzhiyun# Rewritten to use lists instead of if-statements. 7*4882a593Smuzhiyun# 8*4882a593Smuzhiyun 9*4882a593Smuzhiyunsubdir-ccflags-y += -DANDROID_GKI_VFS_EXPORT_ONLY=VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver 10*4882a593Smuzhiyun 11*4882a593Smuzhiyunobj-y := open.o read_write.o file_table.o super.o \ 12*4882a593Smuzhiyun char_dev.o stat.o exec.o pipe.o namei.o fcntl.o \ 13*4882a593Smuzhiyun ioctl.o readdir.o select.o dcache.o inode.o \ 14*4882a593Smuzhiyun attr.o bad_inode.o file.o filesystems.o namespace.o \ 15*4882a593Smuzhiyun seq_file.o xattr.o libfs.o fs-writeback.o \ 16*4882a593Smuzhiyun pnode.o splice.o sync.o utimes.o d_path.o \ 17*4882a593Smuzhiyun stack.o fs_struct.o statfs.o fs_pin.o nsfs.o \ 18*4882a593Smuzhiyun fs_types.o fs_context.o fs_parser.o fsopen.o init.o \ 19*4882a593Smuzhiyun kernel_read_file.o remap_range.o 20*4882a593Smuzhiyun 21*4882a593Smuzhiyunifeq ($(CONFIG_BLOCK),y) 22*4882a593Smuzhiyunobj-y += buffer.o block_dev.o direct-io.o mpage.o 23*4882a593Smuzhiyunelse 24*4882a593Smuzhiyunobj-y += no-block.o 25*4882a593Smuzhiyunendif 26*4882a593Smuzhiyun 27*4882a593Smuzhiyunobj-$(CONFIG_PROC_FS) += proc_namespace.o 28*4882a593Smuzhiyun 29*4882a593Smuzhiyunobj-y += notify/ 30*4882a593Smuzhiyunobj-$(CONFIG_EPOLL) += eventpoll.o 31*4882a593Smuzhiyunobj-y += anon_inodes.o 32*4882a593Smuzhiyunobj-$(CONFIG_SIGNALFD) += signalfd.o 33*4882a593Smuzhiyunobj-$(CONFIG_TIMERFD) += timerfd.o 34*4882a593Smuzhiyunobj-$(CONFIG_EVENTFD) += eventfd.o 35*4882a593Smuzhiyunobj-$(CONFIG_USERFAULTFD) += userfaultfd.o 36*4882a593Smuzhiyunobj-$(CONFIG_AIO) += aio.o 37*4882a593Smuzhiyunobj-$(CONFIG_FS_DAX) += dax.o 38*4882a593Smuzhiyunobj-$(CONFIG_FS_ENCRYPTION) += crypto/ 39*4882a593Smuzhiyunobj-$(CONFIG_FS_VERITY) += verity/ 40*4882a593Smuzhiyunobj-$(CONFIG_FILE_LOCKING) += locks.o 41*4882a593Smuzhiyunobj-$(CONFIG_BINFMT_AOUT) += binfmt_aout.o 42*4882a593Smuzhiyunobj-$(CONFIG_BINFMT_EM86) += binfmt_em86.o 43*4882a593Smuzhiyunobj-$(CONFIG_BINFMT_MISC) += binfmt_misc.o 44*4882a593Smuzhiyunobj-$(CONFIG_BINFMT_SCRIPT) += binfmt_script.o 45*4882a593Smuzhiyunobj-$(CONFIG_BINFMT_ELF) += binfmt_elf.o 46*4882a593Smuzhiyunobj-$(CONFIG_COMPAT_BINFMT_ELF) += compat_binfmt_elf.o 47*4882a593Smuzhiyunobj-$(CONFIG_BINFMT_ELF_FDPIC) += binfmt_elf_fdpic.o 48*4882a593Smuzhiyunobj-$(CONFIG_BINFMT_FLAT) += binfmt_flat.o 49*4882a593Smuzhiyun 50*4882a593Smuzhiyunobj-$(CONFIG_FS_MBCACHE) += mbcache.o 51*4882a593Smuzhiyunobj-$(CONFIG_FS_POSIX_ACL) += posix_acl.o 52*4882a593Smuzhiyunobj-$(CONFIG_NFS_COMMON) += nfs_common/ 53*4882a593Smuzhiyunobj-$(CONFIG_COREDUMP) += coredump.o 54*4882a593Smuzhiyunobj-$(CONFIG_SYSCTL) += drop_caches.o 55*4882a593Smuzhiyun 56*4882a593Smuzhiyunobj-$(CONFIG_FHANDLE) += fhandle.o 57*4882a593Smuzhiyunobj-y += iomap/ 58*4882a593Smuzhiyun 59*4882a593Smuzhiyunobj-y += quota/ 60*4882a593Smuzhiyun 61*4882a593Smuzhiyunobj-$(CONFIG_PROC_FS) += proc/ 62*4882a593Smuzhiyunobj-$(CONFIG_KERNFS) += kernfs/ 63*4882a593Smuzhiyunobj-$(CONFIG_SYSFS) += sysfs/ 64*4882a593Smuzhiyunobj-$(CONFIG_CONFIGFS_FS) += configfs/ 65*4882a593Smuzhiyunobj-y += devpts/ 66*4882a593Smuzhiyun 67*4882a593Smuzhiyunobj-$(CONFIG_PROFILING) += dcookies.o 68*4882a593Smuzhiyunobj-$(CONFIG_DLM) += dlm/ 69*4882a593Smuzhiyun 70*4882a593Smuzhiyun# Do not add any filesystems before this line 71*4882a593Smuzhiyunobj-$(CONFIG_FSCACHE) += fscache/ 72*4882a593Smuzhiyunobj-$(CONFIG_REISERFS_FS) += reiserfs/ 73*4882a593Smuzhiyunobj-$(CONFIG_EXT4_FS) += ext4/ 74*4882a593Smuzhiyun# We place ext4 before ext2 so that clean ext3 root fs's do NOT mount using the 75*4882a593Smuzhiyun# ext2 driver, which doesn't know about journalling! Explicitly request ext2 76*4882a593Smuzhiyun# by giving the rootfstype= parameter. 77*4882a593Smuzhiyunobj-$(CONFIG_EXT2_FS) += ext2/ 78*4882a593Smuzhiyunobj-$(CONFIG_JBD2) += jbd2/ 79*4882a593Smuzhiyunobj-$(CONFIG_CRAMFS) += cramfs/ 80*4882a593Smuzhiyunobj-$(CONFIG_SQUASHFS) += squashfs/ 81*4882a593Smuzhiyunobj-y += ramfs/ 82*4882a593Smuzhiyunobj-$(CONFIG_HUGETLBFS) += hugetlbfs/ 83*4882a593Smuzhiyunobj-$(CONFIG_CODA_FS) += coda/ 84*4882a593Smuzhiyunobj-$(CONFIG_MINIX_FS) += minix/ 85*4882a593Smuzhiyunobj-$(CONFIG_FAT_FS) += fat/ 86*4882a593Smuzhiyunobj-$(CONFIG_EXFAT_FS) += exfat/ 87*4882a593Smuzhiyunobj-$(CONFIG_BFS_FS) += bfs/ 88*4882a593Smuzhiyunobj-$(CONFIG_ISO9660_FS) += isofs/ 89*4882a593Smuzhiyunobj-$(CONFIG_HFSPLUS_FS) += hfsplus/ # Before hfs to find wrapped HFS+ 90*4882a593Smuzhiyunobj-$(CONFIG_HFS_FS) += hfs/ 91*4882a593Smuzhiyunobj-$(CONFIG_ECRYPT_FS) += ecryptfs/ 92*4882a593Smuzhiyunobj-$(CONFIG_VXFS_FS) += freevxfs/ 93*4882a593Smuzhiyunobj-$(CONFIG_NFS_FS) += nfs/ 94*4882a593Smuzhiyunobj-$(CONFIG_EXPORTFS) += exportfs/ 95*4882a593Smuzhiyunobj-$(CONFIG_NFSD) += nfsd/ 96*4882a593Smuzhiyunobj-$(CONFIG_LOCKD) += lockd/ 97*4882a593Smuzhiyunobj-$(CONFIG_NLS) += nls/ 98*4882a593Smuzhiyunobj-$(CONFIG_UNICODE) += unicode/ 99*4882a593Smuzhiyunobj-$(CONFIG_SYSV_FS) += sysv/ 100*4882a593Smuzhiyunobj-$(CONFIG_CIFS) += cifs/ 101*4882a593Smuzhiyunobj-$(CONFIG_HPFS_FS) += hpfs/ 102*4882a593Smuzhiyunobj-$(CONFIG_NTFS_FS) += ntfs/ 103*4882a593Smuzhiyunobj-$(CONFIG_UFS_FS) += ufs/ 104*4882a593Smuzhiyunobj-$(CONFIG_EFS_FS) += efs/ 105*4882a593Smuzhiyunobj-$(CONFIG_JFFS2_FS) += jffs2/ 106*4882a593Smuzhiyunobj-$(CONFIG_UBIFS_FS) += ubifs/ 107*4882a593Smuzhiyunobj-$(CONFIG_AFFS_FS) += affs/ 108*4882a593Smuzhiyunobj-$(CONFIG_ROMFS_FS) += romfs/ 109*4882a593Smuzhiyunobj-$(CONFIG_QNX4FS_FS) += qnx4/ 110*4882a593Smuzhiyunobj-$(CONFIG_QNX6FS_FS) += qnx6/ 111*4882a593Smuzhiyunobj-$(CONFIG_AUTOFS_FS) += autofs/ 112*4882a593Smuzhiyunobj-$(CONFIG_ADFS_FS) += adfs/ 113*4882a593Smuzhiyunobj-$(CONFIG_FUSE_FS) += fuse/ 114*4882a593Smuzhiyunobj-$(CONFIG_OVERLAY_FS) += overlayfs/ 115*4882a593Smuzhiyunobj-$(CONFIG_ORANGEFS_FS) += orangefs/ 116*4882a593Smuzhiyunobj-$(CONFIG_INCREMENTAL_FS) += incfs/ 117*4882a593Smuzhiyunobj-$(CONFIG_UDF_FS) += udf/ 118*4882a593Smuzhiyunobj-$(CONFIG_SUN_OPENPROMFS) += openpromfs/ 119*4882a593Smuzhiyunobj-$(CONFIG_OMFS_FS) += omfs/ 120*4882a593Smuzhiyunobj-$(CONFIG_JFS_FS) += jfs/ 121*4882a593Smuzhiyunobj-$(CONFIG_XFS_FS) += xfs/ 122*4882a593Smuzhiyunobj-$(CONFIG_9P_FS) += 9p/ 123*4882a593Smuzhiyunobj-$(CONFIG_AFS_FS) += afs/ 124*4882a593Smuzhiyunobj-$(CONFIG_NILFS2_FS) += nilfs2/ 125*4882a593Smuzhiyunobj-$(CONFIG_BEFS_FS) += befs/ 126*4882a593Smuzhiyunobj-$(CONFIG_HOSTFS) += hostfs/ 127*4882a593Smuzhiyunobj-$(CONFIG_CACHEFILES) += cachefiles/ 128*4882a593Smuzhiyunobj-$(CONFIG_DEBUG_FS) += debugfs/ 129*4882a593Smuzhiyunobj-$(CONFIG_TRACING) += tracefs/ 130*4882a593Smuzhiyunobj-$(CONFIG_OCFS2_FS) += ocfs2/ 131*4882a593Smuzhiyunobj-$(CONFIG_BTRFS_FS) += btrfs/ 132*4882a593Smuzhiyunobj-$(CONFIG_GFS2_FS) += gfs2/ 133*4882a593Smuzhiyunobj-$(CONFIG_F2FS_FS) += f2fs/ 134*4882a593Smuzhiyunobj-$(CONFIG_CEPH_FS) += ceph/ 135*4882a593Smuzhiyunobj-$(CONFIG_PSTORE) += pstore/ 136*4882a593Smuzhiyunobj-$(CONFIG_EFIVAR_FS) += efivarfs/ 137*4882a593Smuzhiyunobj-$(CONFIG_EROFS_FS) += erofs/ 138*4882a593Smuzhiyunobj-$(CONFIG_VBOXSF_FS) += vboxsf/ 139*4882a593Smuzhiyunobj-$(CONFIG_ZONEFS_FS) += zonefs/ 140