mirror of
https://github.com/Evolution-X-Devices/kernel_google_b1c1
synced 2026-01-27 17:26:47 +00:00
Add ${CC_LD_ARG} and remove unnecessary cruft.
Change-Id: I44fb7ea9a5c20b93a4fa4c5ed4d1d3ad903aba94
Signed-off-by: Petri Gynther <pgynther@google.com>
18 lines
546 B
Plaintext
18 lines
546 B
Plaintext
DEFCONFIG=bonito_defconfig
|
|
KERNEL_DIR=private/msm-google
|
|
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.common.clang
|
|
POST_DEFCONFIG_CMDS="check_defconfig && update_debug_config"
|
|
|
|
function update_debug_config() {
|
|
${KERNEL_DIR}/scripts/config --file ${OUT_DIR}/.config \
|
|
--set-val DEBUG_KMEMLEAK_EARLY_LOG_SIZE 4500 \
|
|
-e CONFIG_DEBUG_KMEMLEAK \
|
|
-d LTO \
|
|
-d LTO_CLANG \
|
|
-d CFI \
|
|
-d CFI_PERMISSIVE \
|
|
-d CFI_CLANG
|
|
(cd ${OUT_DIR} && \
|
|
make ${CC_LD_ARG} O=${OUT_DIR} olddefconfig)
|
|
}
|