Commit Graph

3 Commits

Author SHA1 Message Date
Sami Tolvanen
3500abc89b ANDROID: build.config: Disable LTO for KASAN and Kprobes builds
Disable both LTO_CLANG_THIN and LTO_CLANG_FULL for KASAN and Kprobes
builds.

Bug: 167259389
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Change-Id: I0c55b1cf9c8f7d23094230553c266cb5df7801e8
2021-03-08 00:31:49 +00:00
Andrey Konovalov
9f993b74c8 ANDROID: build_config: drop CONFIG_KASAN_PANIC_ON_WARN
CONFIG_KASAN_PANIC_ON_WARN was added in a custom patch for Pixel kernels,
which would make KASAN panic the kernel after the first report regardless
of whether the panic_on_warn parameter is set. (Coincidentally, that patch
also would break instrumentation mode selection for KASAN.)

As that patch was never applied to the common kernel,
CONFIG_KASAN_PANIC_ON_WARN doesn't exist here. This change drops the
non-existent CONFIG_KASAN_PANIC_ON_WARN from build.config.gki_kasan.

Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Change-Id: I9f42bb5f3515f18e2a5774241ea73a59d8883955
2021-02-15 19:08:31 +01:00
Max Spector
5d52e246c9 ANDROID: Rename build.config.gki.arch_kasan
Rename build.config.gki.arch_kasan -> build.config.gki_kasan.arch
and build.config_kasan.gki -> build.config.gki_kasan

Bug: 152792812
Change-Id: I88beb1ec7342d480b717e42e50cd204c4ae43a24
Signed-off-by: Max Spector <mspector@google.com>
2020-05-05 20:50:47 +00:00