Files
msm-5.15/build.config.gki_kasan
Liz Prucka 6d2ec81c11 ANDROID: GKI: KASAN: disable INLINE
Replacing with PANIC_ON_WARN to align with the standard KASAN
template.

Disabling INLINE as a workaround for a boot issue on cuttlefish.

This is the same as the change made on branch android13-5.10
(aosp/2399656).

Bug: 218315905
Change-Id: I2137932a95444b94c7e9768a7f7e2879a08dfdd0
Signed-off-by: Liz Prucka <lizprucka@google.com>
2023-01-26 20:32:09 +00:00

23 lines
641 B
Plaintext

DEFCONFIG=gki_defconfig
POST_DEFCONFIG_CMDS="check_defconfig && update_kasan_config"
KERNEL_DIR=common
LTO=none
function update_kasan_config() {
${KERNEL_DIR}/scripts/config --file ${OUT_DIR}/.config \
-e CONFIG_KASAN \
-e CONFIG_KASAN_PANIC_ON_WARN \
-e CONFIG_KCOV \
-e CONFIG_PANIC_ON_WARN_DEFAULT_ENABLE \
-d CONFIG_RANDOMIZE_BASE \
-d CONFIG_KASAN_OUTLINE \
--set-val CONFIG_FRAME_WARN 0 \
-d CFI \
-d CFI_PERMISSIVE \
-d CFI_CLANG \
-d SHADOW_CALL_STACK
(cd ${OUT_DIR} && \
make ${TOOL_ARGS} O=${OUT_DIR} olddefconfig)
}