ANDROID: fix kernelci build-break due to GCC plugin issue

For the 32-bit ARM build of imx_v6_v7_defconfig+allmodconfig, GCC
plugins don't work properly for the gcc-12 (12.2.0) toolchain
used by kernelci.

Work around this issue by inhibiting the use of plugins for
32-bit ARM builds.

With GCC plugins enabled, 32-bit ARM builds of imx_v6_v7_defconfig+allmodconfig
fail with:

arm-linux-gnueabihf-ld: arch/arm/boot/compressed/atags_to_fdt.o: in function `atags_to_fdt':
atags_to_fdt.c:(.text.atags_to_fdt+0x18): undefined reference to `stackleak_track_stack'

Bug: 393580166
Signed-off-by: Todd Kjos <tkjos@google.com>
Change-Id: Ic67fb5c89614f4dcc656df1da8b70fe1c016c559
This commit is contained in:
Todd Kjos
2025-01-31 17:05:38 +00:00
committed by Treehugger Robot
parent f65d86b482
commit 508b0d26a2
+2
View File
@@ -9,6 +9,8 @@ menuconfig GCC_PLUGINS
bool "GCC plugins"
depends on HAVE_GCC_PLUGINS
depends on CC_IS_GCC
# ANDROID: GCC_PLUGINS are broken for 32-bit ARM builds (gcc 12.2.0)
depends on !ARM
depends on $(success,test -e $(shell,$(CC) -print-file-name=plugin)/include/plugin-version.h)
default y
help