How the system configure the default the kernel defconfig
来源:互联网 发布:社交软件 英文翻译 编辑:程序博客网 时间:2024/05/16 12:03
a) the basic opertion as following:
1 source build/envsetup.sh
2 lunch 21 --// this would refer to on combo
b) then we would try to find the system how to configure the defalut kernel defconfig , which used by running make menuconfig.
c)
1 after run the source build/envsetup.sh
it would try to find all the vendorsetup.sh in the device||vendor 's subdir
2 then user can try to lunch to set the correct vendorsetup.sh by lunch command.
such as it would run to below vendorsetup.sh
@./cherrytrail/cht_rvp/vendorsetup.sh:
add_lunch_combo cht_rvp_64_gen8-eng -- for example, lunch 21 would refer to cht_rvp_64_gen8-eng.
3 in below file would define all the related tag and files.
@./cht_rvp/AndroidProducts.mk:
$(LOCAL_DIR)/cht_rvp_64_gen8.mk
BOARD_USE_64BIT_KERNEL :=true //it would to tell the compile system, we would use the 64BIT kernel.
#./cht_rvp/cht_rvp_64_gen8.mk:
include $(LOCAL_PATH)/cht_rvp.mk
@./cht_rvp/cht_rvp.mk:
include $(LOCAL_PATH)/device.mk
@./cht_rvp/device.mk:
include $(PLATFORM_PATH)/cherrytrail.mk
4 in the cherrytrail.mk , it would define the TARGET_BOARD_PLARTFORM TAG.
@./cherrytrail.mk:
TARGET_BOARD_PLATFORM := cherrytrail
@./intel/baytrail/baytrail.mk:
TARGET_BOARD_PLATFORM := baytrail
4 In the AnrodiKernel.mk, it finally defined the KERNEL_DEFCONFIG to correct defconfig by make menuconfig.
@./intel/common/AndroidKernel.mk
Ifeq ($(BOARD_USE_64BIT_KERNEL),true)
KERNEL_ARCH := x86_64 // it define the kernel arch to x86_64.
Else
KERNEL_ARCH := i386 // it define the kernel arch to i386
KERNEL_SOC_cherrytrail := cht --- it is the cherrytrail soc abbrev
KERNEL_SOC_baytrail := byt -- it is the barytrail soc abbrev
KERNEL_SOC :=$(KERNEL_SOC_$(TARGET_BOARD_PLATFORM))
//so KERKEL_SOC =cht
./intel/common/AndroidKernel.mk:KERNEL_DEFCONFIG:= $(KERNEL_SRC_DIR)/arch/x86/configs/$(KERNEL_ARCH)_$(KERNEL_SOC)_defconfig
//so KERNEL_DEFCONFIG = x86_64_cht_defconfig
- How the system configure the default the kernel defconfig
- How to configure the kernel parameter "console"
- How to Change the Default System Fonts
- How to configure the log4net
- Configure the LACP System Priority
- How Linux kernel handles the send system call
- How the Kernel Sorts the Arguments
- Configure the kernel according the size of Ramdisk
- How to configure the network for Linux
- Configure more swap space on the system
- The GNU configure and build system
- How to configure the network under the Ubuntu
- How to change the default run level of a RedHat 9.0 or Fedora Core Linux system
- The GNU configure and build system-configure的详细介绍
- The GNU configure and build system-configure的详细介绍
- How to Compile the Linux Kernel
- How the Linux Kernel initcall Mechanism Works
- How to download the android kernel
- NavigationController覆盖视图
- 什么是位置无关码
- Remove Duplicates from Sorted Array && Remove Duplicates from Sorted Array II
- 使用seajs进行模块化前端开发
- #ifdef __cplusplus extern "C" { #endif 的解释
- How the system configure the default the kernel defconfig
- iOS UITableViewCell重用机制理解之初级剑侠篇(欢迎提建议和分享遇到的问题)
- Android任意时刻从子线程切换到主线程的实现
- 读取sqlserver用户自定义表、视图和存储过程
- BZOJ 3437 小P的牧场 斜率优化DP
- 体会棋盘游戏
- web.xml 中的listener、 filter、servlet 加载顺序及其详解
- 页式管理 多级页表
- android之theme为dialog的activity全屏问题解决办法