xref: /kernel/linux/linux-5.10/fs/Makefile (revision 8c2ecf20)
18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci#
38c2ecf20Sopenharmony_ci# Makefile for the Linux filesystems.
48c2ecf20Sopenharmony_ci#
58c2ecf20Sopenharmony_ci# 14 Sep 2000, Christoph Hellwig <hch@infradead.org>
68c2ecf20Sopenharmony_ci# Rewritten to use lists instead of if-statements.
78c2ecf20Sopenharmony_ci# 
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ciobj-y :=	open.o read_write.o file_table.o super.o \
108c2ecf20Sopenharmony_ci		char_dev.o stat.o exec.o pipe.o namei.o fcntl.o \
118c2ecf20Sopenharmony_ci		ioctl.o readdir.o select.o dcache.o inode.o \
128c2ecf20Sopenharmony_ci		attr.o bad_inode.o file.o filesystems.o namespace.o \
138c2ecf20Sopenharmony_ci		seq_file.o xattr.o libfs.o fs-writeback.o \
148c2ecf20Sopenharmony_ci		pnode.o splice.o sync.o utimes.o d_path.o \
158c2ecf20Sopenharmony_ci		stack.o fs_struct.o statfs.o fs_pin.o nsfs.o \
168c2ecf20Sopenharmony_ci		fs_types.o fs_context.o fs_parser.o fsopen.o init.o \
178c2ecf20Sopenharmony_ci		kernel_read_file.o remap_range.o
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ciifeq ($(CONFIG_BLOCK),y)
208c2ecf20Sopenharmony_ciobj-y +=	buffer.o block_dev.o direct-io.o mpage.o
218c2ecf20Sopenharmony_cielse
228c2ecf20Sopenharmony_ciobj-y +=	no-block.o
238c2ecf20Sopenharmony_ciendif
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciobj-$(CONFIG_PROC_FS) += proc_namespace.o
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ciobj-y				+= notify/
288c2ecf20Sopenharmony_ciobj-$(CONFIG_EPOLL)		+= eventpoll.o
298c2ecf20Sopenharmony_ciobj-y				+= anon_inodes.o
308c2ecf20Sopenharmony_ciobj-$(CONFIG_SIGNALFD)		+= signalfd.o
318c2ecf20Sopenharmony_ciobj-$(CONFIG_TIMERFD)		+= timerfd.o
328c2ecf20Sopenharmony_ciobj-$(CONFIG_EVENTFD)		+= eventfd.o
338c2ecf20Sopenharmony_ciobj-$(CONFIG_USERFAULTFD)	+= userfaultfd.o
348c2ecf20Sopenharmony_ciobj-$(CONFIG_AIO)               += aio.o
358c2ecf20Sopenharmony_ciobj-$(CONFIG_FS_DAX)		+= dax.o
368c2ecf20Sopenharmony_ciobj-$(CONFIG_FS_ENCRYPTION)	+= crypto/
378c2ecf20Sopenharmony_ciobj-$(CONFIG_SECURITY_CODE_SIGN)	+= code_sign/
388c2ecf20Sopenharmony_ciobj-$(CONFIG_SECURITY_DEC)	+= dec/
398c2ecf20Sopenharmony_ciobj-$(CONFIG_FS_VERITY)		+= verity/
408c2ecf20Sopenharmony_ciobj-$(CONFIG_FILE_LOCKING)      += locks.o
418c2ecf20Sopenharmony_ciobj-$(CONFIG_BINFMT_AOUT)	+= binfmt_aout.o
428c2ecf20Sopenharmony_ciobj-$(CONFIG_BINFMT_EM86)	+= binfmt_em86.o
438c2ecf20Sopenharmony_ciobj-$(CONFIG_BINFMT_MISC)	+= binfmt_misc.o
448c2ecf20Sopenharmony_ciobj-$(CONFIG_BINFMT_SCRIPT)	+= binfmt_script.o
458c2ecf20Sopenharmony_ciobj-$(CONFIG_BINFMT_ELF)	+= binfmt_elf.o
468c2ecf20Sopenharmony_ciobj-$(CONFIG_COMPAT_BINFMT_ELF)	+= compat_binfmt_elf.o
478c2ecf20Sopenharmony_ciobj-$(CONFIG_BINFMT_ELF_FDPIC)	+= binfmt_elf_fdpic.o
488c2ecf20Sopenharmony_ciobj-$(CONFIG_BINFMT_FLAT)	+= binfmt_flat.o
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ciobj-$(CONFIG_FS_MBCACHE)	+= mbcache.o
518c2ecf20Sopenharmony_ciobj-$(CONFIG_FS_POSIX_ACL)	+= posix_acl.o
528c2ecf20Sopenharmony_ciobj-$(CONFIG_NFS_COMMON)	+= nfs_common/
538c2ecf20Sopenharmony_ciobj-$(CONFIG_COREDUMP)		+= coredump.o
548c2ecf20Sopenharmony_ciobj-$(CONFIG_SYSCTL)		+= drop_caches.o
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_ciobj-$(CONFIG_FHANDLE)		+= fhandle.o
578c2ecf20Sopenharmony_ciobj-y				+= iomap/
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ciobj-y				+= quota/
608c2ecf20Sopenharmony_ci
618c2ecf20Sopenharmony_ciobj-$(CONFIG_PROC_FS)		+= proc/
628c2ecf20Sopenharmony_ciobj-$(CONFIG_KERNFS)		+= kernfs/
638c2ecf20Sopenharmony_ciobj-$(CONFIG_SYSFS)		+= sysfs/
648c2ecf20Sopenharmony_ciobj-$(CONFIG_CONFIGFS_FS)	+= configfs/
658c2ecf20Sopenharmony_ciobj-y				+= devpts/
668c2ecf20Sopenharmony_ci
678c2ecf20Sopenharmony_ciobj-$(CONFIG_PROFILING)		+= dcookies.o
688c2ecf20Sopenharmony_ciobj-$(CONFIG_DLM)		+= dlm/
698c2ecf20Sopenharmony_ci 
708c2ecf20Sopenharmony_ci# Do not add any filesystems before this line
718c2ecf20Sopenharmony_ciobj-$(CONFIG_FSCACHE)		+= fscache/
728c2ecf20Sopenharmony_ciobj-$(CONFIG_REISERFS_FS)	+= reiserfs/
738c2ecf20Sopenharmony_ciobj-$(CONFIG_EXT4_FS)		+= ext4/
748c2ecf20Sopenharmony_ciobj-$(CONFIG_HMDFS_FS)          += hmdfs/
758c2ecf20Sopenharmony_ciobj-$(CONFIG_SHARE_FS)          += sharefs/
768c2ecf20Sopenharmony_ci# We place ext4 before ext2 so that clean ext3 root fs's do NOT mount using the
778c2ecf20Sopenharmony_ci# ext2 driver, which doesn't know about journalling!  Explicitly request ext2
788c2ecf20Sopenharmony_ci# by giving the rootfstype= parameter.
798c2ecf20Sopenharmony_ciobj-$(CONFIG_EXT2_FS)		+= ext2/
808c2ecf20Sopenharmony_ciobj-$(CONFIG_JBD2)		+= jbd2/
818c2ecf20Sopenharmony_ciobj-$(CONFIG_CRAMFS)		+= cramfs/
828c2ecf20Sopenharmony_ciobj-$(CONFIG_SQUASHFS)		+= squashfs/
838c2ecf20Sopenharmony_ciobj-y				+= ramfs/
848c2ecf20Sopenharmony_ciobj-$(CONFIG_HUGETLBFS)		+= hugetlbfs/
858c2ecf20Sopenharmony_ciobj-$(CONFIG_CODA_FS)		+= coda/
868c2ecf20Sopenharmony_ciobj-$(CONFIG_MINIX_FS)		+= minix/
878c2ecf20Sopenharmony_ciobj-$(CONFIG_FAT_FS)		+= fat/
888c2ecf20Sopenharmony_ciobj-$(CONFIG_EXFAT_FS)		+= exfat/
898c2ecf20Sopenharmony_ciobj-$(CONFIG_BFS_FS)		+= bfs/
908c2ecf20Sopenharmony_ciobj-$(CONFIG_ISO9660_FS)	+= isofs/
918c2ecf20Sopenharmony_ciobj-$(CONFIG_HFSPLUS_FS)	+= hfsplus/ # Before hfs to find wrapped HFS+
928c2ecf20Sopenharmony_ciobj-$(CONFIG_HFS_FS)		+= hfs/
938c2ecf20Sopenharmony_ciobj-$(CONFIG_ECRYPT_FS)		+= ecryptfs/
948c2ecf20Sopenharmony_ciobj-$(CONFIG_VXFS_FS)		+= freevxfs/
958c2ecf20Sopenharmony_ciobj-$(CONFIG_NFS_FS)		+= nfs/
968c2ecf20Sopenharmony_ciobj-$(CONFIG_EXPORTFS)		+= exportfs/
978c2ecf20Sopenharmony_ciobj-$(CONFIG_NFSD)		+= nfsd/
988c2ecf20Sopenharmony_ciobj-$(CONFIG_LOCKD)		+= lockd/
998c2ecf20Sopenharmony_ciobj-$(CONFIG_NLS)		+= nls/
1008c2ecf20Sopenharmony_ciobj-$(CONFIG_UNICODE)		+= unicode/
1018c2ecf20Sopenharmony_ciobj-$(CONFIG_SYSV_FS)		+= sysv/
1028c2ecf20Sopenharmony_ciobj-$(CONFIG_CIFS)		+= cifs/
1038c2ecf20Sopenharmony_ciobj-$(CONFIG_HPFS_FS)		+= hpfs/
1048c2ecf20Sopenharmony_ciobj-$(CONFIG_NTFS_FS)		+= ntfs/
1058c2ecf20Sopenharmony_ciobj-$(CONFIG_UFS_FS)		+= ufs/
1068c2ecf20Sopenharmony_ciobj-$(CONFIG_EFS_FS)		+= efs/
1078c2ecf20Sopenharmony_ciobj-$(CONFIG_JFFS2_FS)		+= jffs2/
1088c2ecf20Sopenharmony_ciobj-$(CONFIG_UBIFS_FS)		+= ubifs/
1098c2ecf20Sopenharmony_ciobj-$(CONFIG_AFFS_FS)		+= affs/
1108c2ecf20Sopenharmony_ciobj-$(CONFIG_ROMFS_FS)		+= romfs/
1118c2ecf20Sopenharmony_ciobj-$(CONFIG_QNX4FS_FS)		+= qnx4/
1128c2ecf20Sopenharmony_ciobj-$(CONFIG_QNX6FS_FS)		+= qnx6/
1138c2ecf20Sopenharmony_ciobj-$(CONFIG_AUTOFS_FS)		+= autofs/
1148c2ecf20Sopenharmony_ciobj-$(CONFIG_ADFS_FS)		+= adfs/
1158c2ecf20Sopenharmony_ciobj-$(CONFIG_FUSE_FS)		+= fuse/
1168c2ecf20Sopenharmony_ciobj-$(CONFIG_OVERLAY_FS)	+= overlayfs/
1178c2ecf20Sopenharmony_ciobj-$(CONFIG_ORANGEFS_FS)       += orangefs/
1188c2ecf20Sopenharmony_ciobj-$(CONFIG_UDF_FS)		+= udf/
1198c2ecf20Sopenharmony_ciobj-$(CONFIG_SUN_OPENPROMFS)	+= openpromfs/
1208c2ecf20Sopenharmony_ciobj-$(CONFIG_OMFS_FS)		+= omfs/
1218c2ecf20Sopenharmony_ciobj-$(CONFIG_JFS_FS)		+= jfs/
1228c2ecf20Sopenharmony_ciobj-$(CONFIG_XFS_FS)		+= xfs/
1238c2ecf20Sopenharmony_ciobj-$(CONFIG_9P_FS)		+= 9p/
1248c2ecf20Sopenharmony_ciobj-$(CONFIG_AFS_FS)		+= afs/
1258c2ecf20Sopenharmony_ciobj-$(CONFIG_NILFS2_FS)		+= nilfs2/
1268c2ecf20Sopenharmony_ciobj-$(CONFIG_BEFS_FS)		+= befs/
1278c2ecf20Sopenharmony_ciobj-$(CONFIG_HOSTFS)		+= hostfs/
1288c2ecf20Sopenharmony_ciobj-$(CONFIG_CACHEFILES)	+= cachefiles/
1298c2ecf20Sopenharmony_ciobj-$(CONFIG_DEBUG_FS)		+= debugfs/
1308c2ecf20Sopenharmony_ciobj-$(CONFIG_TRACING)		+= tracefs/
1318c2ecf20Sopenharmony_ciobj-$(CONFIG_OCFS2_FS)		+= ocfs2/
1328c2ecf20Sopenharmony_ciobj-$(CONFIG_BTRFS_FS)		+= btrfs/
1338c2ecf20Sopenharmony_ciobj-$(CONFIG_GFS2_FS)           += gfs2/
1348c2ecf20Sopenharmony_ciobj-$(CONFIG_F2FS_FS)		+= f2fs/
1358c2ecf20Sopenharmony_ciobj-$(CONFIG_CEPH_FS)		+= ceph/
1368c2ecf20Sopenharmony_ciobj-$(CONFIG_PSTORE)		+= pstore/
1378c2ecf20Sopenharmony_ciobj-$(CONFIG_EFIVAR_FS)		+= efivarfs/
1388c2ecf20Sopenharmony_ciobj-$(CONFIG_EROFS_FS)		+= erofs/
1398c2ecf20Sopenharmony_ciobj-$(CONFIG_VBOXSF_FS)		+= vboxsf/
1408c2ecf20Sopenharmony_ciobj-$(CONFIG_ZONEFS_FS)		+= zonefs/
1418c2ecf20Sopenharmony_ciobj-$(CONFIG_EPFS)		+= epfs/
142