1. 程式人生 > >Android-userdebug/user版本使用不同的核心配置

Android-userdebug/user版本使用不同的核心配置

1. 先配置好兩個核心配置檔案,放在kernel/msm-4.9/arch/arm64/configs/:

    sdm710_defconfig   sdm710_-perf_defconfig

   (分別用於userdebug和user版本,具體方法看這裡

  

2. 在device/qcom/sdm710/AndroidBoard.mk中加入:

#----------------------------------------------------------------------
# Compile Linux Kernel
#----------------------------------------------------------------------
ifeq ($(KERNEL_DEFCONFIG),)
   ifeq ($(TARGET_BUILD_VARIANT),user)
     KERNEL_DEFCONFIG := sdm710_-perf_defconfig
   else
     KERNEL_DEFCONFIG := sdm710_defconfig
   endif
endif