Skip to content

Commit

Permalink
tc_build: kernel: Add support for ARCH=powerpc allmodconfig
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Chancellor <[email protected]>
  • Loading branch information
nathanchance committed Aug 14, 2023
1 parent 78c99d3 commit ce94d74
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tc_build/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,9 @@ def __init__(self):
def build(self):
builders = []

lsm = LinuxSourceManager()
lsm.location = self.folders.source

allconfig_capable_builders = {
'AArch64': Arm64KernelBuilder,
'ARM': ArmKernelBuilder,
Expand All @@ -291,6 +294,8 @@ def build(self):
'SystemZ': S390KernelBuilder,
'X86': X8664KernelBuilder,
}
if lsm.get_version() >= (6, 5, 0):
allconfig_capable_builders['PowerPC'] = PowerPC64KernelBuilder

# This is a little convoluted :/
# The overall idea here is to avoid duplicating builds, so the
Expand Down Expand Up @@ -321,8 +326,6 @@ def build(self):
builder.config_targets = [config_target]
builders.append(builder)

lsm = LinuxSourceManager()
lsm.location = self.folders.source
tc_build.utils.print_info(f"Building Linux {lsm.get_kernelversion()} for profiling...")

for builder in builders:
Expand Down

0 comments on commit ce94d74

Please sign in to comment.