How the system configure the default the kernel defconfig

114 篇文章 1 订阅

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值