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

Method get_kernelversion

tc_build/kernel.py:525–532  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

523 self._version: tuple[int, ...] = ()
524
525 def get_kernelversion(self) -> str:
526 return subprocess.run(
527 ['make', '-s', 'kernelversion'],
528 capture_output=True,
529 check=True,
530 cwd=self.location,
531 text=True,
532 ).stdout.strip()
533
534 # Dynamically get the version of the supplied kernel source as a tuple,
535 # which can be used to check if a provided kernel source is at least a

Callers 2

buildMethod · 0.95
get_versionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected