注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

deisp的博客

 
 
 

日志

 
 

linux 2.6.14 Kconfig /fs/kconfig示例详解  

2008-05-24 22:11:12|  分类: Makefile 与 Kcon |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

 

//////*****      ***////// 中的部分表示上句在2.4内核中的表示方法

介绍几种询问语句:

bool 参数:‘显示字符串’  接收的变量  输入答案:Y N

        有时bool 后面没有字符串,则表示不能选择,后由一定还有default 系统定义值

sristate 参数: ‘显示字符串’接收变量 输入答案: Y N M(模块化)

Hex 参数:‘显示字符串’ 接收变量 存储变量 输入答案:16进制数

Bin  参数:‘显示字符串’ 接收变量 存储变量 输入答案:2进制数

Sting 参数:‘显示字符串’ 接收变量 存储变量 输入答案:字符串

其它语句:

define_bool 表示缺省定义,系统定义 其它几种类似

依赖语句:

 depends on 后面的变量全部定义为真时才产生依赖

////****dep_bool***/

设置语句:

select XX 初步理解为 XX置为真(如果选择当前配置为真)

prompt ‘显示字符’ 提示字符

选择语句:

choice

****  中间的语句只能选择一个进行配置

endchoice

2.4内核中只能选择一个以后,再进行配置

 

#

# File system configuration

#

menu "File systems"                 //在主界面中增加一个菜单 “File systems”

/////////////***mainmenu_option next_comment

comment 'File systems'

********//////////////////////

config EXT2_FS

 tristate "Second extended fs support"  //tristate 询问语句 回答为Y N M 给 EXT2_FS 

                                                                         //该语句对应的提示前面是 尖括号

/////*** tristate "Second extended fs support"  EXT2_FS

****///////

 help

      ****

config EXT2_FS_XATTR

 bool "Ext2 extended attributes" //bool 询问语句 对字符串的回答为Y N 值附给 EXT2_FS _XATTR  ////*********bool 'Quota support' CONFIG_QUOTA

*********/////

 depends on EXT2_FS          //depends on 是依赖语句 如果EXT2_FS 定义为N 则这句不会出现

 help

  ****

config EXT2_FS_POSIX_ACL

 bool "Ext2 POSIX Access Control Lists"

 depends on EXT2_FS_XATTR

 select FS_POSIX_ACL

 help

    ****

config EXT2_FS_SECURITY

 bool "Ext2 Security Labels"

 depends on EXT2_FS_XATTR

 help

    *******

config EXT2_FS_XIP

 bool "Ext2 execute in place support"

 depends on EXT2_FS

 help

 ********

config FS_XIP

# execute in place

 bool

 depends on EXT2_FS_XIP

 default y

config EXT3_FS

 tristate "Ext3 journalling file system support"

 help

   *****

config EXT3_FS_XATTR

 bool "Ext3 extended attributes"

 depends on EXT3_FS

 default y

 help

    *****

config EXT3_FS_POSIX_ACL

 bool "Ext3 POSIX Access Control Lists"

 depends on EXT3_FS_XATTR

 select FS_POSIX_ACL

 help

  ******

config EXT3_FS_SECURITY

 bool "Ext3 Security Labels"

 depends on EXT3_FS_XATTR

 help

 *****

config JBD

# CONFIG_JBD could be its own option (even modular), but until there are

# other users than ext3, we will simply make it be the same as CONFIG_EXT3_FS

# dep_tristate '  Journal Block Device support (JBD for ext3)' CONFIG_JBD $CONFIG_EXT3_FS

 tristate

 default EXT3_FS

 help

 ********

config JBD_DEBUG

 bool "JBD (ext3) debugging support"

 depends on JBD

 help

 **********

config FS_MBCACHE

# Meta block cache for Extended Attributes (ext2/ext3)

 tristate

 depends on EXT2_FS_XATTR || EXT3_FS_XATTR

 default y if EXT2_FS=y || EXT3_FS=y

 default m if EXT2_FS=m || EXT3_FS=m

config REISERFS_FS

 tristate "Reiserfs support"

 help

 *******

config REISERFS_CHECK

 bool "Enable reiserfs debug mode"

 depends on REISERFS_FS

 help

 ********

config REISERFS_PROC_INFO

 bool "Stats in /proc/fs/reiserfs"

 depends on REISERFS_FS

 help

 *********

config REISERFS_FS_XATTR

 bool "ReiserFS extended attributes"

 depends on REISERFS_FS

 help

 ********

config REISERFS_FS_POSIX_ACL

 bool "ReiserFS POSIX Access Control Lists"

 depends on REISERFS_FS_XATTR

 select FS_POSIX_ACL

 help

 *******

config REISERFS_FS_SECURITY

 bool "ReiserFS Security Labels"

 depends on REISERFS_FS_XATTR

 help

 ********

config JFS_FS

 tristate "JFS filesystem support"

 select NLS

 help

 *****

config JFS_POSIX_ACL

 bool "JFS POSIX Access Control Lists"

 depends on JFS_FS

 select FS_POSIX_ACL

 help

 *********

config JFS_SECURITY

 bool "JFS Security Labels"

 depends on JFS_FS

 help

 *****

config JFS_DEBUG

 bool "JFS debugging"

 depends on JFS_FS

 help

  *****

config JFS_STATISTICS

 bool "JFS statistics"

 depends on JFS_FS

 help

 ****

config FS_POSIX_ACL

# Posix ACL utility routines (for now, only ext2/ext3/jfs/reiserfs)

#

# NOTE: you can implement Posix ACLs without these helpers (XFS does).

#  Never use this symbol for ifdefs.

#

 bool

 default n

source "fs/xfs/Kconfig"

config MINIX_FS

 tristate "Minix fs support"

 help

  ******

config ROMFS_FS

 tristate "ROM file system support"

 ---help-

***

config INOTIFY

 bool "Inotify file change notification support"

 default y

 ---help---

 ******

config QUOTA

 bool "Quota support"

 help

 ***

config QFMT_V1

 tristate "Old quota format support"

 depends on QUOTA

 help

 ****

config QFMT_V2

 tristate "Quota format v2 support"

 depends on QUOTA

 help

   ***

config QUOTACTL

 bool

 depends on XFS_QUOTA || QUOTA

 default y

config DNOTIFY

 bool "Dnotify support" if EMBEDDED

 default y

 help

****

config AUTOFS_FS

 tristate "Kernel automounter support"

 help

 ******

config AUTOFS4_FS

 tristate "Kernel automounter version 4 support (also supports v3)"

 help

 *******

config FUSE_FS

 tristate "Filesystem in Userspace support"

 help

   ******

menu "CD-ROM/DVD Filesystems"

config ISO9660_FS

 tristate "ISO 9660 CDROM file system support"

 help

  *****

config JOLIET

 bool "Microsoft Joliet CDROM extensions"

 depends on ISO9660_FS

 select NLS

 help

    *****

config ZISOFS

 bool "Transparent decompression extension"

 depends on ISO9660_FS

 select ZLIB_INFLATE

 help

 *******

config ZISOFS_FS

# for fs/nls/Config.in

 tristate

 depends on ZISOFS

 default ISO9660_FS

config UDF_FS

 tristate "UDF file system support"

 help

***

config UDF_NLS

 bool

 default y

 depends on (UDF_FS=m && NLS) || (UDF_FS=y && NLS=y)

endmenu

menu "DOS/FAT/NT Filesystems"

config FAT_FS

 tristate

 select NLS

 help

****

config MSDOS_FS

 tristate "MSDOS fs support"

 select FAT_FS

 help

 **********

config VFAT_FS

 tristate "VFAT (Windows-95) fs support"

 select FAT_FS

 help

  *****

config FAT_DEFAULT_CODEPAGE

 int "Default codepage for FAT"

 depends on MSDOS_FS || VFAT_FS

 default 437

 help

  *****

config FAT_DEFAULT_IOCHARSET

 string "Default iocharset for FAT"

 depends on VFAT_FS

 default "iso8859-1"

 help

  *****

config NTFS_FS

 tristate "NTFS file system support"

 select NLS

 help

  *****

config NTFS_DEBUG

 bool "NTFS debugging support"

 depends on NTFS_FS

 help

  *****

config NTFS_RW

 bool "NTFS write support"

 depends on NTFS_FS

 help

  *****

endmenu

menu "Pseudo filesystems"

config DEVFS_FS

 bool "/dev file system support(OBSOLETE)"

 default y

config DEVFS_MOUNT

 bool "Automatically mount at boot"

 default y

 depends on DEVFS_FS

config PROC_FS

 bool "/proc file system support"

 help

    *****

config PROC_KCORE

 bool "/proc/kcore support" if !ARM

 depends on PROC_FS && MMU

config PROC_VMCORE

        bool "/proc/vmcore support (EXPERIMENTAL)"

        depends on PROC_FS && EMBEDDED && EXPERIMENTAL && CRASH_DUMP

        help

        Exports the dump image of crashed kernel in ELF format.

config SYSFS

 bool "sysfs file system support" if EMBEDDED

 default y

 help

   *****o conserve space.

config TMPFS

 bool "Virtual memory file system support (former shm fs)"

 help

  *****

config HUGETLBFS

 bool "HugeTLB file system support"

 depends X86 || IA64 || PPC64 || SPARC64 || SUPERH || X86_64 || BROKEN

config HUGETLB_PAGE

 def_bool HUGETLBFS

config RAMFS

 bool

 default y

 ---help---

    *****

config RELAYFS_FS

 tristate "Relayfs file system support"

 ---help---

    *****

endmenu

menu "Miscellaneous filesystems"

config ADFS_FS

 tristate "ADFS file system support (EXPERIMENTAL)"

 depends on EXPERIMENTAL

 help

    *****

config ADFS_FS_RW

 bool "ADFS write support (DANGEROUS)"

 depends on ADFS_FS

 help

    *****

config AFFS_FS

 tristate "Amiga FFS file system support (EXPERIMENTAL)"

 depends on EXPERIMENTAL

 help

   *****

config HFS_FS

 tristate "Apple Macintosh file system support (EXPERIMENTAL)"

 depends on EXPERIMENTAL

 help

   *****

config HFSPLUS_FS

 tristate "Apple Extended HFS file system support"

 select NLS

 select NLS_UTF8

 help

   *****

config BEFS_FS

 tristate "BeOS file system (BeFS) support (read only) (EXPERIMENTAL)"

 depends on EXPERIMENTAL

 select NLS

 help

     *****

config BEFS_DEBUG

 bool "Debug BeFS"

 depends on BEFS_FS

 help

   If you say Y here, you can use the 'debug' mount option to enable

   debugging output from the driver.

config BFS_FS

 tristate "BFS file system support (EXPERIMENTAL)"

 depends on EXPERIMENTAL

 help

  *****

config EFS_FS

 tristate "EFS file system support (read only) (EXPERIMENTAL)"

 depends on EXPERIMENTAL

 help

   *****

config JFFS_FS

 tristate "Journalling Flash File System (JFFS) support"

 depends on MTD

 help

   *****

config JFFS_FS_VERBOSE

 int "JFFS debugging verbosity (0 = quiet, 3 = noisy)"

 depends on JFFS_FS

 default "0"

 help

   *****

config JFFS_PROC_FS

 bool "JFFS stats available in /proc filesystem"

 depends on JFFS_FS && PROC_FS

 help

   *****

config JFFS2_FS

 tristate "Journalling Flash File System v2 (JFFS2) support"

 select CRC32

 depends on MTD

 help

   *****

config JFFS2_FS_DEBUG

 int "JFFS2 debugging verbosity (0 = quiet, 2 = noisy)"

 depends on JFFS2_FS

 default "0"

 help

  *****

config JFFS2_FS_WRITEBUFFER

 bool "JFFS2 write-buffering support"

 depends on JFFS2_FS

 default y

 help

  *****

config JFFS2_COMPRESSION_OPTIONS

 bool "Advanced compression options for JFFS2"

 depends on JFFS2_FS

 default n

 help

  *****

config JFFS2_ZLIB

 bool "JFFS2 ZLIB compression support" if JFFS2_COMPRESSION_OPTIONS

 select ZLIB_INFLATE

 select ZLIB_DEFLATE

 depends on JFFS2_FS

 default y

        help

  *****

config JFFS2_RTIME

 bool "JFFS2 RTIME compression support" if JFFS2_COMPRESSION_OPTIONS

 depends on JFFS2_FS

 default y

        help

  *****

config JFFS2_RUBIN

 bool "JFFS2 RUBIN compression support" if JFFS2_COMPRESSION_OPTIONS

 depends on JFFS2_FS

 default n

        help

  *****

choice

        prompt "JFFS2 default compression mode" if JFFS2_COMPRESSION_OPTIONS

        default JFFS2_CMODE_PRIORITY

        depends on JFFS2_FS

        help

  *****

config JFFS2_CMODE_NONE

        bool "no compression"

        help

  *****

config JFFS2_CMODE_PRIORITY

        bool "priority"

        help

  *****

config JFFS2_CMODE_SIZE

        bool "size (EXPERIMENTAL)"

        help

  *****

endchoice

config CRAMFS

 tristate "Compressed ROM file system support (cramfs)"

 select ZLIB_INFLATE

 help

  *****

config VXFS_FS

 tristate "FreeVxFS file system support (VERITAS VxFS(TM) compatible)"

 help

  *****

config HPFS_FS

 tristate "OS/2 HPFS file system support"

 help

  *****

 

config QNX4FS_FS

 tristate "QNX4 file system support (read only)"

 help

  *****

config QNX4FS_RW

 bool "QNX4FS write support (DANGEROUS)"

 depends on QNX4FS_FS && EXPERIMENTAL && BROKEN

 help

  *****

 

config SYSV_FS

 tristate "System V/Xenix/V7/Coherent file system support"

 help

  *****

 

config UFS_FS

 tristate "UFS file system support (read only)"

 help

  *****

config UFS_FS_WRITE

 bool "UFS file system write support (DANGEROUS)"

 depends on UFS_FS && EXPERIMENTAL

 help

  *****

endmenu

menu "Network File Systems"

 depends on NET

config NFS_FS

 tristate "NFS file system support"

 depends on INET

 select LOCKD

 select SUNRPC

 select NFS_ACL_SUPPORT if NFS_V3_ACL

 help

  *****

config NFS_V3

 bool "Provide NFSv3 client support"

 depends on NFS_FS

 help

  *****

config NFS_V3_ACL

 bool "Provide client support for the NFSv3 ACL protocol extension"

 depends on NFS_V3

 help

  *****

config NFS_V4

 bool "Provide NFSv4 client support (EXPERIMENTAL)"

 depends on NFS_FS && EXPERIMENTAL

 select RPCSEC_GSS_KRB5

 help

  *****

config NFS_DIRECTIO

 bool "Allow direct I/O on NFS files (EXPERIMENTAL)"

 depends on NFS_FS && EXPERIMENTAL

 help

  *****

config NFSD

 tristate "NFS server support"

 depends on INET

 select LOCKD

 select SUNRPC

 select EXPORTFS

 select NFS_ACL_SUPPORT if NFSD_V3_ACL || NFSD_V2_ACL

 help

  *****

config NFSD_V2_ACL

 bool

 depends on NFSD

config NFSD_V3

 bool "Provide NFSv3 server support"

 depends on NFSD

 help

  *****.

config NFSD_V3_ACL

 bool "Provide server support for the NFSv3 ACL protocol extension"

 depends on NFSD_V3

 select NFSD_V2_ACL

 help

  *****

config NFSD_V4

 bool "Provide NFSv4 server support (EXPERIMENTAL)"

 depends on NFSD_V3 && EXPERIMENTAL

 select NFSD_TCP

 select CRYPTO_MD5

 select CRYPTO

 select FS_POSIX_ACL

 help

  *****

config NFSD_TCP

 bool "Provide NFS server over TCP support"

 depends on NFSD

 default y

 help

  *****

config ROOT_NFS

 bool "Root file system on NFS"

 depends on NFS_FS=y && IP_PNP

 help

  *****

config LOCKD

 tristate

config LOCKD_V4

 bool

 depends on NFSD_V3 || NFS_V3

 default y

config EXPORTFS

 tristate

config NFS_ACL_SUPPORT

 tristate

 select FS_POSIX_ACL

config NFS_COMMON

 bool

 depends on NFSD || NFS_FS

 default y

config SUNRPC

 tristate

config SUNRPC_GSS

 tristate

config RPCSEC_GSS_KRB5

 tristate "Secure RPC: Kerberos V mechanism (EXPERIMENTAL)"

 depends on SUNRPC && EXPERIMENTAL

 select SUNRPC_GSS

 select CRYPTO

 select CRYPTO_MD5

 select CRYPTO_DES

 help

  *****

config RPCSEC_GSS_SPKM3

 tristate "Secure RPC: SPKM3 mechanism (EXPERIMENTAL)"

 depends on SUNRPC && EXPERIMENTAL

 select SUNRPC_GSS

 select CRYPTO

 select CRYPTO_MD5

 select CRYPTO_DES

 help

  ***** 

config SMB_FS

 tristate "SMB file system support (to mount Windows shares etc.)"

 depends on INET

 select NLS

 help

  *****

config SMB_NLS_DEFAULT

 bool "Use a default NLS"

 depends on SMB_FS

 help

  *****

config SMB_NLS_REMOTE

 string "Default Remote NLS Option"

 depends on SMB_NLS_DEFAULT

 default "cp437"

 help

   *****

config CIFS

 tristate "CIFS support (advanced network filesystem for Samba, Window and other CIFS compliant servers)"

 depends on INET

 select NLS

 help

  *****

config CIFS_STATS

        bool "CIFS statistics"

        depends on CIFS

        help

          Enabling this option will cause statistics for each server share

   mounted by the cifs client to be displayed in /proc/fs/cifs/Stats

config CIFS_XATTR

        bool "CIFS extended attributes (EXPERIMENTAL)"

        depends on CIFS

        help

   *****

config CIFS_POSIX

        bool "CIFS POSIX Extensions (EXPERIMENTAL)"

        depends on CIFS_XATTR

        help

  *****

config CIFS_EXPERIMENTAL

   bool "CIFS Experimental Features (EXPERIMENTAL)"

   depends on CIFS

   help

  *****

config NCP_FS

 tristate "NCP file system support (to mount NetWare volumes)"

 depends on IPX!=n || INET

 help

  *****

source "fs/ncpfs/Kconfig"

config CODA_FS

 tristate "Coda file system support (advanced network fs)"

 depends on INET

 help

  *****

config CODA_FS_OLD_API

 bool "Use 96-bit Coda file identifiers"

 depends on CODA_FS

 help

  *****

config AFS_FS

# for fs/nls/Config.in

 tristate "Andrew File System support (AFS) (Experimental)"

 depends on INET && EXPERIMENTAL

 select RXRPC

 help

  *****

config RXRPC

 tristate

config 9P_FS

 tristate "Plan 9 Resource Sharing Support (9P2000) (Experimental)"

 depends on INET && EXPERIMENTAL

 help

  *****

endmenu

menu "Partition Types"

source "fs/partitions/Kconfig"

endmenu

source "fs/nls/Kconfig"

endmenu

 

 

  评论这张
 
阅读(575)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018