xref: /kernel/linux/linux-6.6/fs/Makefile (revision 62306a36)
162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# Makefile for the Linux filesystems.
462306a36Sopenharmony_ci#
562306a36Sopenharmony_ci# 14 Sep 2000, Christoph Hellwig <hch@infradead.org>
662306a36Sopenharmony_ci# Rewritten to use lists instead of if-statements.
762306a36Sopenharmony_ci#
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ciobj-y :=	open.o read_write.o file_table.o super.o \
1162306a36Sopenharmony_ci		char_dev.o stat.o exec.o pipe.o namei.o fcntl.o \
1262306a36Sopenharmony_ci		ioctl.o readdir.o select.o dcache.o inode.o \
1362306a36Sopenharmony_ci		attr.o bad_inode.o file.o filesystems.o namespace.o \
1462306a36Sopenharmony_ci		seq_file.o xattr.o libfs.o fs-writeback.o \
1562306a36Sopenharmony_ci		pnode.o splice.o sync.o utimes.o d_path.o \
1662306a36Sopenharmony_ci		stack.o fs_struct.o statfs.o fs_pin.o nsfs.o \
1762306a36Sopenharmony_ci		fs_types.o fs_context.o fs_parser.o fsopen.o init.o \
1862306a36Sopenharmony_ci		kernel_read_file.o mnt_idmapping.o remap_range.o
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ciobj-$(CONFIG_BUFFER_HEAD)	+= buffer.o mpage.o
2162306a36Sopenharmony_ciobj-$(CONFIG_PROC_FS)		+= proc_namespace.o
2262306a36Sopenharmony_ciobj-$(CONFIG_LEGACY_DIRECT_IO)	+= direct-io.o
2362306a36Sopenharmony_ciobj-y				+= notify/
2462306a36Sopenharmony_ciobj-$(CONFIG_EPOLL)		+= eventpoll.o
2562306a36Sopenharmony_ciobj-y				+= anon_inodes.o
2662306a36Sopenharmony_ciobj-$(CONFIG_SIGNALFD)		+= signalfd.o
2762306a36Sopenharmony_ciobj-$(CONFIG_TIMERFD)		+= timerfd.o
2862306a36Sopenharmony_ciobj-$(CONFIG_EVENTFD)		+= eventfd.o
2962306a36Sopenharmony_ciobj-$(CONFIG_USERFAULTFD)	+= userfaultfd.o
3062306a36Sopenharmony_ciobj-$(CONFIG_AIO)               += aio.o
3162306a36Sopenharmony_ciobj-$(CONFIG_FS_DAX)		+= dax.o
3262306a36Sopenharmony_ciobj-$(CONFIG_FS_ENCRYPTION)	+= crypto/
3362306a36Sopenharmony_ciobj-$(CONFIG_SECURITY_CODE_SIGN)	+= code_sign/
3462306a36Sopenharmony_ciobj-$(CONFIG_FS_VERITY)		+= verity/
3562306a36Sopenharmony_ciobj-$(CONFIG_FILE_LOCKING)      += locks.o
3662306a36Sopenharmony_ciobj-$(CONFIG_BINFMT_MISC)	+= binfmt_misc.o
3762306a36Sopenharmony_ciobj-$(CONFIG_BINFMT_SCRIPT)	+= binfmt_script.o
3862306a36Sopenharmony_ciobj-$(CONFIG_BINFMT_ELF)	+= binfmt_elf.o
3962306a36Sopenharmony_ciobj-$(CONFIG_COMPAT_BINFMT_ELF)	+= compat_binfmt_elf.o
4062306a36Sopenharmony_ciobj-$(CONFIG_BINFMT_ELF_FDPIC)	+= binfmt_elf_fdpic.o
4162306a36Sopenharmony_ciobj-$(CONFIG_BINFMT_FLAT)	+= binfmt_flat.o
4262306a36Sopenharmony_ci
4362306a36Sopenharmony_ciobj-$(CONFIG_FS_MBCACHE)	+= mbcache.o
4462306a36Sopenharmony_ciobj-$(CONFIG_FS_POSIX_ACL)	+= posix_acl.o
4562306a36Sopenharmony_ciobj-$(CONFIG_NFS_COMMON)	+= nfs_common/
4662306a36Sopenharmony_ciobj-$(CONFIG_COREDUMP)		+= coredump.o
4762306a36Sopenharmony_ciobj-$(CONFIG_SYSCTL)		+= drop_caches.o sysctls.o
4862306a36Sopenharmony_ci
4962306a36Sopenharmony_ciobj-$(CONFIG_FHANDLE)		+= fhandle.o
5062306a36Sopenharmony_ciobj-y				+= iomap/
5162306a36Sopenharmony_ci
5262306a36Sopenharmony_ciobj-y				+= quota/
5362306a36Sopenharmony_ci
5462306a36Sopenharmony_ciobj-$(CONFIG_PROC_FS)		+= proc/
5562306a36Sopenharmony_ciobj-$(CONFIG_KERNFS)		+= kernfs/
5662306a36Sopenharmony_ciobj-$(CONFIG_SYSFS)		+= sysfs/
5762306a36Sopenharmony_ciobj-$(CONFIG_CONFIGFS_FS)	+= configfs/
5862306a36Sopenharmony_ciobj-y				+= devpts/
5962306a36Sopenharmony_ci
6062306a36Sopenharmony_ciobj-$(CONFIG_DLM)		+= dlm/
6162306a36Sopenharmony_ci 
6262306a36Sopenharmony_ci# Do not add any filesystems before this line
6362306a36Sopenharmony_ciobj-$(CONFIG_NETFS_SUPPORT)	+= netfs/
6462306a36Sopenharmony_ciobj-$(CONFIG_FSCACHE)		+= fscache/
6562306a36Sopenharmony_ciobj-$(CONFIG_REISERFS_FS)	+= reiserfs/
6662306a36Sopenharmony_ciobj-$(CONFIG_EXT4_FS)		+= ext4/
6762306a36Sopenharmony_ciobj-$(CONFIG_HMDFS_FS)          += hmdfs/
6862306a36Sopenharmony_ciobj-$(CONFIG_SHARE_FS)          += sharefs/
6962306a36Sopenharmony_ci# We place ext4 before ext2 so that clean ext3 root fs's do NOT mount using the
7062306a36Sopenharmony_ci# ext2 driver, which doesn't know about journalling!  Explicitly request ext2
7162306a36Sopenharmony_ci# by giving the rootfstype= parameter.
7262306a36Sopenharmony_ciobj-$(CONFIG_EXT2_FS)		+= ext2/
7362306a36Sopenharmony_ciobj-$(CONFIG_JBD2)		+= jbd2/
7462306a36Sopenharmony_ciobj-$(CONFIG_CRAMFS)		+= cramfs/
7562306a36Sopenharmony_ciobj-$(CONFIG_SQUASHFS)		+= squashfs/
7662306a36Sopenharmony_ciobj-y				+= ramfs/
7762306a36Sopenharmony_ciobj-$(CONFIG_HUGETLBFS)		+= hugetlbfs/
7862306a36Sopenharmony_ciobj-$(CONFIG_CODA_FS)		+= coda/
7962306a36Sopenharmony_ciobj-$(CONFIG_MINIX_FS)		+= minix/
8062306a36Sopenharmony_ciobj-$(CONFIG_FAT_FS)		+= fat/
8162306a36Sopenharmony_ciobj-$(CONFIG_EXFAT_FS)		+= exfat/
8262306a36Sopenharmony_ciobj-$(CONFIG_BFS_FS)		+= bfs/
8362306a36Sopenharmony_ciobj-$(CONFIG_ISO9660_FS)	+= isofs/
8462306a36Sopenharmony_ciobj-$(CONFIG_HFSPLUS_FS)	+= hfsplus/ # Before hfs to find wrapped HFS+
8562306a36Sopenharmony_ciobj-$(CONFIG_HFS_FS)		+= hfs/
8662306a36Sopenharmony_ciobj-$(CONFIG_ECRYPT_FS)		+= ecryptfs/
8762306a36Sopenharmony_ciobj-$(CONFIG_VXFS_FS)		+= freevxfs/
8862306a36Sopenharmony_ciobj-$(CONFIG_NFS_FS)		+= nfs/
8962306a36Sopenharmony_ciobj-$(CONFIG_EXPORTFS)		+= exportfs/
9062306a36Sopenharmony_ciobj-$(CONFIG_NFSD)		+= nfsd/
9162306a36Sopenharmony_ciobj-$(CONFIG_LOCKD)		+= lockd/
9262306a36Sopenharmony_ciobj-$(CONFIG_NLS)		+= nls/
9362306a36Sopenharmony_ciobj-y				+= unicode/
9462306a36Sopenharmony_ciobj-$(CONFIG_SYSV_FS)		+= sysv/
9562306a36Sopenharmony_ciobj-$(CONFIG_SMBFS)		+= smb/
9662306a36Sopenharmony_ciobj-$(CONFIG_HPFS_FS)		+= hpfs/
9762306a36Sopenharmony_ciobj-$(CONFIG_NTFS_FS)		+= ntfs/
9862306a36Sopenharmony_ciobj-$(CONFIG_NTFS3_FS)		+= ntfs3/
9962306a36Sopenharmony_ciobj-$(CONFIG_UFS_FS)		+= ufs/
10062306a36Sopenharmony_ciobj-$(CONFIG_EFS_FS)		+= efs/
10162306a36Sopenharmony_ciobj-$(CONFIG_JFFS2_FS)		+= jffs2/
10262306a36Sopenharmony_ciobj-$(CONFIG_UBIFS_FS)		+= ubifs/
10362306a36Sopenharmony_ciobj-$(CONFIG_AFFS_FS)		+= affs/
10462306a36Sopenharmony_ciobj-$(CONFIG_ROMFS_FS)		+= romfs/
10562306a36Sopenharmony_ciobj-$(CONFIG_QNX4FS_FS)		+= qnx4/
10662306a36Sopenharmony_ciobj-$(CONFIG_QNX6FS_FS)		+= qnx6/
10762306a36Sopenharmony_ciobj-$(CONFIG_AUTOFS_FS)		+= autofs/
10862306a36Sopenharmony_ciobj-$(CONFIG_ADFS_FS)		+= adfs/
10962306a36Sopenharmony_ciobj-$(CONFIG_FUSE_FS)		+= fuse/
11062306a36Sopenharmony_ciobj-$(CONFIG_OVERLAY_FS)	+= overlayfs/
11162306a36Sopenharmony_ciobj-$(CONFIG_ORANGEFS_FS)       += orangefs/
11262306a36Sopenharmony_ciobj-$(CONFIG_UDF_FS)		+= udf/
11362306a36Sopenharmony_ciobj-$(CONFIG_SUN_OPENPROMFS)	+= openpromfs/
11462306a36Sopenharmony_ciobj-$(CONFIG_OMFS_FS)		+= omfs/
11562306a36Sopenharmony_ciobj-$(CONFIG_JFS_FS)		+= jfs/
11662306a36Sopenharmony_ciobj-$(CONFIG_XFS_FS)		+= xfs/
11762306a36Sopenharmony_ciobj-$(CONFIG_9P_FS)		+= 9p/
11862306a36Sopenharmony_ciobj-$(CONFIG_AFS_FS)		+= afs/
11962306a36Sopenharmony_ciobj-$(CONFIG_NILFS2_FS)		+= nilfs2/
12062306a36Sopenharmony_ciobj-$(CONFIG_BEFS_FS)		+= befs/
12162306a36Sopenharmony_ciobj-y				+= hostfs/
12262306a36Sopenharmony_ciobj-$(CONFIG_CACHEFILES)	+= cachefiles/
12362306a36Sopenharmony_ciobj-$(CONFIG_DEBUG_FS)		+= debugfs/
12462306a36Sopenharmony_ciobj-$(CONFIG_TRACING)		+= tracefs/
12562306a36Sopenharmony_ciobj-$(CONFIG_OCFS2_FS)		+= ocfs2/
12662306a36Sopenharmony_ciobj-$(CONFIG_BTRFS_FS)		+= btrfs/
12762306a36Sopenharmony_ciobj-$(CONFIG_GFS2_FS)           += gfs2/
12862306a36Sopenharmony_ciobj-$(CONFIG_F2FS_FS)		+= f2fs/
12962306a36Sopenharmony_ciobj-$(CONFIG_CEPH_FS)		+= ceph/
13062306a36Sopenharmony_ciobj-$(CONFIG_PSTORE)		+= pstore/
13162306a36Sopenharmony_ciobj-$(CONFIG_EFIVAR_FS)		+= efivarfs/
13262306a36Sopenharmony_ciobj-$(CONFIG_EROFS_FS)		+= erofs/
13362306a36Sopenharmony_ciobj-$(CONFIG_VBOXSF_FS)		+= vboxsf/
13462306a36Sopenharmony_ciobj-$(CONFIG_ZONEFS_FS)		+= zonefs/
13562306a36Sopenharmony_ciobj-$(CONFIG_EPFS)		+= epfs/
136