kernel/config: adjust factory defconfig

1.factory support only userdebug build,so it will include
       many debug configs which lead to boot slowly.
    2.remove qcom debug files as perf when factory build.

Change-Id: I7be5d0ba2379d61051b2e3c9d9b2cab4b5c36445
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1932024
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yiwen Liu <liuyw2@motorola.com>
Reviewed-by: Shicheng Gong <gongsc1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
weimh1 2021-04-25 17:08:16 +08:00 • committed by Xiaojun Ji
commit 7bbd9267e3

View file

@ -57,13 +57,18 @@ FINAL_DEFCONFIG_BLEND=""
source ${SCRIPTS_ROOT}/fragment_motoconfig.sh ${PLATFORM_NAME} ${REQUIRED_DEFCONFIG}
FINAL_DEFCONFIG_BLEND+=${MOTO_REQUIRED_CONFIG}
TARGET_PRODUCT_TYPE=${TARGET_PRODUCT#*_}
case "$REQUIRED_DEFCONFIG" in
${PLATFORM_NAME}-qgki-debug_defconfig )
FINAL_DEFCONFIG_BLEND+=" $QCOM_DEBUG_FRAG"
if [ $TARGET_PRODUCT_TYPE != "factory" ]; then
FINAL_DEFCONFIG_BLEND+=" $QCOM_DEBUG_FRAG"
fi
;& # Intentional fallthrough
${PLATFORM_NAME}-qgki-consolidate_defconfig )
FINAL_DEFCONFIG_BLEND+=" $QCOM_CONSOLIDATE_FRAG"
if [ $TARGET_PRODUCT_TYPE != "factory" ]; then
FINAL_DEFCONFIG_BLEND+=" $QCOM_CONSOLIDATE_FRAG"
fi
;& # Intentional fallthrough
${PLATFORM_NAME}-qgki_defconfig )
# DEBUG_FS fragment.
@ -77,7 +82,9 @@ case "$REQUIRED_DEFCONFIG" in
FINAL_DEFCONFIG_BLEND+=" $QCOM_GKI_FRAG "
;;
${PLATFORM_NAME}-debug_defconfig )
FINAL_DEFCONFIG_BLEND+=" $QCOM_GENERIC_DEBUG_FRAG "
if [ $TARGET_PRODUCT_TYPE != "factory" ]; then
FINAL_DEFCONFIG_BLEND+=" $QCOM_GENERIC_DEBUG_FRAG "
fi
;&
${PLATFORM_NAME}_defconfig )
FINAL_DEFCONFIG_BLEND+=" $QCOM_GENERIC_PERF_FRAG "