Max Spector | 5d52e24 | 2020-05-05 11:38:06 -0700 | [diff] [blame] | 1 | DEFCONFIG=gki_defconfig |
| 2 | POST_DEFCONFIG_CMDS="check_defconfig && update_kasan_config" |
| 3 | KERNEL_DIR=common |
| 4 | function update_kasan_config() { |
| 5 | ${KERNEL_DIR}/scripts/config --file ${OUT_DIR}/.config \ |
| 6 | -e CONFIG_KASAN \ |
| 7 | -e CONFIG_KASAN_INLINE \ |
Max Spector | 5d52e24 | 2020-05-05 11:38:06 -0700 | [diff] [blame] | 8 | -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 Tolvanen | 3500abc | 2021-03-06 07:53:39 -0800 | [diff] [blame] | 13 | -d LTO_CLANG_THIN \ |
| 14 | -d LTO_CLANG_FULL \ |
Max Spector | 5d52e24 | 2020-05-05 11:38:06 -0700 | [diff] [blame] | 15 | -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 | |