blob: 3e24544b7a7b4ce1865d9c6b44632547b4115dc8 [file] [log] [blame]
Max Spector5d52e242020-05-05 11:38:06 -07001DEFCONFIG=gki_defconfig
2POST_DEFCONFIG_CMDS="check_defconfig && update_kasan_config"
3KERNEL_DIR=common
4function update_kasan_config() {
5 ${KERNEL_DIR}/scripts/config --file ${OUT_DIR}/.config \
6 -e CONFIG_KASAN \
7 -e CONFIG_KASAN_INLINE \
Max Spector5d52e242020-05-05 11:38:06 -07008 -e CONFIG_KCOV \
9 -e CONFIG_PANIC_ON_WARN_DEFAULT_ENABLE \
10 -d CONFIG_RANDOMIZE_BASE \
11 -d CONFIG_KASAN_OUTLINE \
12 --set-val CONFIG_FRAME_WARN 0 \
Sami Tolvanen3500abc2021-03-06 07:53:39 -080013 -d LTO_CLANG_THIN \
14 -d LTO_CLANG_FULL \
Max Spector5d52e242020-05-05 11:38:06 -070015 -d CFI_PERMISSIVE \
16 -d CFI_CLANG \
17 -d SHADOW_CALL_STACK
18 (cd ${OUT_DIR} && \
19 make ${CC_LD_ARG} O=${OUT_DIR} olddefconfig)
20}
21