Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3115349
  • 博文数量: 685
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 5303
  • 用 户 组: 普通用户
  • 注册时间: 2014-04-19 14:17
个人简介

文章分类

全部博文(685)

文章存档

2015年(116)

2014年(569)

分类: LINUX

2014-08-07 19:55:59

内核menuconfig主菜单:各子目录的调用顺序要理清
1.顶层kconfig调且只调用arch/arm目录下Kconfig:"Linux/$ARCH $KERNELVERSION Kernel Configuration"
2.arch/arm目录下Kconfig
source "init/Kconfig"
source "kernel/Kconfig.freezer"

menu "System Type"-------一级菜单
config ARCH_INTEGRATOR-----二级菜单
config ARCH_INTEGRATOR-----二级菜单
choice---------------------二级菜单
prompt "ARM system type"
default ARCH_VERSATILE
config ARCH_INTEGRATOR----choice内的为三级菜单
config ARCH_INTEGRATOR----choice内的为三级菜单
。。。。。end choice
source "arch/arm/mach-at91/Kconfig"
。。。。。
source "arch/arm/plat-samsung/Kconfig"
source "arch/arm/plat-s3c24xx/Kconfig"
source "arch/arm/plat-s5p/Kconfig"
if ARCH_S3C2410
source "arch/arm/mach-s3c2410/Kconfig"---menu里面的都属于二级菜单
source "arch/arm/mach-s3c2412/Kconfig"
source "arch/arm/mach-s3c2416/Kconfig"
source "arch/arm/mach-s3c2440/Kconfig"
source "arch/arm/mach-s3c2443/Kconfig"
endif
endmenu----------------------menu一级菜单结束

source "arch/arm/common/Kconfig"-----一级菜单,内容很少只有ARM_GIC等几个config配置项。

menu "Bus support"-----------一级菜单
config ARM_AMBA
config ISA
source "drivers/pci/Kconfig"
source "drivers/pcmcia/Kconfig"
endmenu-----------menu一级菜单结束

menu "Kernel Features"
source "kernel/time/Kconfig"
config HOTPLUG_CPU
source kernel/Kconfig.preempt
source "mm/Kconfig"
endmenu

menu "Boot options"
config USE_OF
bool "Flattened Device Tree support"
choice
prompt "Kernel low-level debugging port"
end choice
end menu

menu "CPU Power Management"
source "drivers/cpufreq/Kconfig"
source "drivers/cpuidle/Kconfig"
endmenu

menu "Floating point emulation"
config FPE_NWFPE_XP
endmenu


menu "Userspace binary formats"
source "fs/Kconfig.binfmt"
endmenu

menu "Power management options"
source "kernel/power/Kconfig"
endmenu

source "net/Kconfig"
source "drivers/Kconfig"
source "fs/Kconfig"
source "arch/arm/Kconfig.debug"-----即kernel hacking主菜单
source "security/Kconfig"
source "crypto/Kconfig"
source "lib/Kconfig"
=======================================================================================
source "init/Kconfig"包含内容如下:
menu "General setup"
config HAVE_KERNEL_LZMA
config SYSVIPC
config TASKSTATS
source "kernel/irq/Kconfig"------二级菜单
menu "RCU Subsystem"---------在上个menu中,故属二级菜单
config RCU_BOOST_DELAY
endmenu # "RCU Subsystem"
source "usr/Kconfig"---------二级菜单
source "arch/Kconfig"-------二级菜单
endmenu # General setup

source "block/Kconfig"
source "kernel/Kconfig.locks"
========================================================================================
source "arch/arm/plat-s3c24xx/Kconfig"----GPIO口个数及时钟等的底层配置。
source "arch/arm/mach-s3c2416/Kconfig"----针对2416这一单板是否开启DMA等具体的配置。
此两项全在system type这一级菜单下,均属于system type的二级菜单。

阅读(2425) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~