Files
kernel_google_b1c1/build.config.bluecross_kasan
Petri Gynther 8e8c75db2e build.config.{bluecross,bonito}_kasan: explicitly use KASAN_OUTLINE
Due to a bug in lib/Kconfig.kasan, we have been using KASAN_OUTLINE
implicitly for KASAN image builds.

In preparation for fixing the bug in lib/Kconfig.kasan, we now need
to explicitly use KASAN_OUTLINE in the KASAN build config.

This change originates from:
commit 59311599b590 ("kasan: fix instrumentation modes choice config")
Author: Andrey Konovalov <andreyknvl@google.com>

but it needed to be split into build.config change and Kconfig change.

Change-Id: Iab25168de4e9586ea3cb90567f719a255fb2aca2
Signed-off-by: Petri Gynther <pgynther@google.com>
2019-11-08 11:51:09 -08:00

26 lines
779 B
Plaintext

DEFCONFIG=b1c1_defconfig
KERNEL_DIR=private/msm-google
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.common.clang
POST_DEFCONFIG_CMDS="check_defconfig && update_kasan_config"
function update_kasan_config() {
${KERNEL_DIR}/scripts/config --file ${OUT_DIR}/.config \
-e CONFIG_KASAN \
-e CONFIG_KASAN_OUTLINE \
-e CONFIG_KASAN_PANIC_ON_WARN \
-e CONFIG_TEST_KASAN \
-e CONFIG_KCOV \
-e CONFIG_SLUB \
-d CONFIG_RANDOMIZE_BASE \
-d CONFIG_CC_WERROR \
--set-val CONFIG_FRAME_WARN 0 \
-d LTO \
-d LTO_CLANG \
-d CFI \
-d CFI_PERMISSIVE \
-d CFI_CLANG \
-d SHADOW_CALL_STACK
(cd ${OUT_DIR} && \
make ${CC_LD_ARG} O=${OUT_DIR} olddefconfig)
}