blob: c8e0c5e246378033bbde44066c0b1e732717412d [file] [log] [blame]
Peter Collingbourne70cf1982021-04-01 17:46:48 -07001append_cmd POST_DEFCONFIG_CMDS update_khwasan_config
2
3function update_khwasan_config() {
4 ${KERNEL_DIR}/scripts/config --file ${OUT_DIR}/.config \
5 -e CONFIG_KASAN \
6 -d CONFIG_KASAN_HW_TAGS \
7 -e CONFIG_KASAN_SW_TAGS \
8 -e CONFIG_KASAN_OUTLINE \
9 -e CONFIG_KASAN_PANIC_ON_WARN \
10 -e CONFIG_KCOV \
11 -e CONFIG_PANIC_ON_WARN_DEFAULT_ENABLE \
12 -d CONFIG_RANDOMIZE_BASE \
13 --set-val CONFIG_FRAME_WARN 0 \
14 -d SHADOW_CALL_STACK
15 (cd ${OUT_DIR} && \
16 make O=${OUT_DIR} "${TOOL_ARGS[@]}" ${MAKE_ARGS} olddefconfig)
17}