MCPcopy Create free account
hub / github.com/ClangBuiltLinux/tc-build / X8664KernelBuilder

Class X8664KernelBuilder

tc_build/kernel.py:416–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414
415
416class X8664KernelBuilder(KernelBuilder):
417 def __init__(self) -> None:
418 super().__init__('x86_64')
419
420 def build(self) -> None:
421 if not tc_build.utils.path_is_set(self.lsm.location):
422 msg = 'build() called without configured LinuxSourceManager?'
423 raise RuntimeError(msg)
424
425 if self.get_toolchain_version() < (15, 0, 0) and self.lsm.get_version() >= (6, 15, 0):
426 # https://git.kernel.org/linus/7861640aac52bbbb3dc2cd40fb93dfb3b3d0f43c
427 tc_build.utils.print_warning(
428 'x86_64 does not build with LLVM < 15.0.0 and Linux >= 6.15.0, skipping build...'
429 )
430 return
431
432 super().build()
433
434
435class LLVMKernelBuilder(Builder):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected