Skip to content

Commit

Permalink
lkt: Add hardening.config builds
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Chancellor <[email protected]>
  • Loading branch information
nathanchance committed Nov 20, 2024
1 parent f2adc17 commit eb52943
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lkt/arm64.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ def _add_defconfig_runners(self):
f"Linux < {LinuxVersion(5, 8, 0)} (have '{self.lsm.version}')",
)

if Path(self.folders.source, 'kernel/configs/hardening.config').exists():
runner = Arm64LLVMKernelRunner()
runner.configs = ['defconfig', 'hardening.config']
runners.append(runner)

for runner in runners:
runner.bootable = True
runner.only_test_boot = self.only_test_boot
Expand Down
5 changes: 5 additions & 0 deletions lkt/x86_64.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ def _add_defconfig_runners(self):
f"either LLVM < {MIN_LLVM_VER_CFI} (using '{self._llvm_version}') or Linux < {LinuxVersion(6, 1, 0)} (have '{self.lsm.version}')",
)

if Path(self.folders.source, 'kernel/configs/hardening.config').exists():
runner = X8664LLVMKernelRunner()
runner.configs = ['defconfig', 'hardening.config']
runners.append(runner)

for runner in runners:
runner.bootable = True
runner.only_test_boot = self.only_test_boot
Expand Down

0 comments on commit eb52943

Please sign in to comment.