Files
kernel_google_msm-4.14/build.config.sunfish_debug_api
Wilson Sung 3fa19c3ae9 Specify DEFCONFIG for floral or sunfish in build.config.*
1. Use BUILD_CONFIG to build for floral or sunfish
2. Also add friendly build_*.sh to indicate build command for floral and sunfish

Bug: 151597889
Bug: 151134315
Bug: 149536833
Change-Id: I04e09560e74a0c0bd6fa28183a52424ca624e056
Signed-off-by: Wilson Sung <wilsonsung@google.com>
2020-03-16 20:25:53 +08:00

25 lines
806 B
Plaintext

KERNEL_DIR=private/msm-google
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.sunfish.common.clang
POST_DEFCONFIG_CMDS="check_defconfig && update_debug_config"
function update_debug_config() {
${KERNEL_DIR}/scripts/config --file ${OUT_DIR}/.config \
-e CONFIG_DMA_API_DEBUG \
-e CONFIG_DEBUG_SHIRQ \
-e CONFIG_DEBUG_KOBJECT \
-e CONFIG_DEBUG_KOBJECT_RELEASE \
-e CONFIG_DEBUG_LIST \
-e CONFIG_DEBUG_PI_LIST \
-e CONFIG_DEBUG_NOTIFIERS \
-e CONFIG_DEBUG_CREDENTIALS \
-e CONFIG_PANIC_ON_WARN_DEFAULT_ENABLE \
-d LTO \
-d LTO_CLANG \
-d CFI \
-d CFI_PERMISSIVE \
-d CFI_CLANG \
-d SHADOW_CALL_STACK
(cd ${OUT_DIR} && \
make ${CC_LD_ARG} O=${OUT_DIR} olddefconfig)
}