Skip to content

Commit 5538593

Browse files
committed
tc_build: kernel: Disable KALLSYMS for PowerPC allmodconfig
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
1 parent b997cf4 commit 5538593

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

tc_build/kernel.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class KernelBuilder(Builder):
2222
def __init__(self, arch):
2323
super().__init__()
2424

25+
self.allconfigs_disable = ['DRM_WERROR', 'WERROR']
2526
self.bolt_instrumentation = False
2627
self.bolt_sampling_output = None
2728
self.config_targets = []
@@ -79,9 +80,8 @@ def build(self):
7980
# pylint: disable-next=consider-using-with
8081
kconfig_allconfig = NamedTemporaryFile(dir=self.folders.build) # noqa: SIM115
8182

82-
configs_to_disable = ['DRM_WERROR', 'WERROR']
8383
kconfig_allconfig_text = ''.join(f"CONFIG_{val}=n\n"
84-
for val in configs_to_disable).encode('utf-8')
84+
for val in self.allconfigs_disable).encode('utf-8')
8585

8686
kconfig_allconfig.write(kconfig_allconfig_text)
8787
kconfig_allconfig.seek(0)
@@ -256,6 +256,22 @@ class PowerPC64KernelBuilder(PowerPCKernelBuilder):
256256
def __init__(self):
257257
super().__init__()
258258

259+
# Disable KALLSYMS, as "Inconsistent kallsyms data" can happen. This
260+
# should not impact PGO coverage much.
261+
self.allconfigs_disable += [
262+
'DEBUG_LOCK_ALLOC',
263+
'DEBUG_KMEMLEAK',
264+
'DEBUG_NET_SMALL_RTNL',
265+
'DEBUG_WW_MUTEX_SLOWPATH',
266+
'FTRACE_SYSCALLS',
267+
'KALLSYMS',
268+
'KGDB_HONOUR_BLOCKLIST',
269+
'KPROBES',
270+
'LATENCYTOP',
271+
'LOCKDEP',
272+
'LOCK_STAT',
273+
'PROVE_LOCKING',
274+
]
259275
self.config_targets = ['ppc64_guest_defconfig', 'disable-werror.config']
260276
self.cross_compile = 'powerpc64-linux-gnu-'
261277

0 commit comments

Comments
 (0)