From d2e493ead6c19c1936113dc3a54f0ba72b8e5fce Mon Sep 17 00:00:00 2001 From: Nathan Chancellor Date: Thu, 27 Jun 2024 08:45:01 -0700 Subject: [PATCH] tc_build: kernel: Disable CONFIG_FORTIFY_KUNIT_TEST for ARCH=hexagon allmodconfig This has a massive compile time impact right now. Signed-off-by: Nathan Chancellor --- tc_build/kernel.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tc_build/kernel.py b/tc_build/kernel.py index f725e7c4..d612df1d 100644 --- a/tc_build/kernel.py +++ b/tc_build/kernel.py @@ -82,6 +82,9 @@ def build(self): kconfig_allconfig = NamedTemporaryFile(dir=self.folders.build) configs_to_disable = ['DRM_WERROR', 'WERROR'] + # https://github.com/llvm/llvm-project/issues/80185#issuecomment-2187294487 + if self.make_variables['ARCH'] == 'hexagon' and self.toolchain_version >= (19, 0, 0): + configs_to_disable.append('FORTIFY_KUNIT_TEST') kconfig_allconfig_text = ''.join(f"CONFIG_{val}=n\n" for val in configs_to_disable).encode('utf-8')