Commit Graph

4 Commits

Author SHA1 Message Date
Nick Desaulniers
7304f8a0e0 ANDROID: build.config: re-disable LTO properly for KASAN
build.config.gki_kasan was not setting the correct configs to disable
LTO for KASAN builds, since the configs differ between when LTO support
was first created downstream vs what landed upstream.

These builds are large and take a long time to build with LTO added.

CONFIG_LTO and CONFIG_LTO_CLANG are not user selectable. Instead, set
LTO=none which build.sh will interpret then properly disable
CONFIG_LTO_CLANG_FULL, CONFIG_LTO_CLANG_THIN, and enable
CONFIG_LTO_NONE.

Bug: 225394140
Suggested-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: I79d1ea94b04d0a55afeb8df2874aeb7099bb030c
2022-03-24 12:41:35 -07:00
Matthias Maennich
3e17899f88 ANDROID: build.configs: migrate away from CC_LD_ARG
... use TOOL_ARGS instead.

Bug: 192548924
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: I5a6eff9423c2c30a7c402f3257d1c1049d2fc9d1
2021-07-02 09:49:23 +00:00
Andrey Konovalov
38a7251e77 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:20:55 +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