Skip to content

Commit 350db6b

Browse files
committed
kbuild: backend tuxmake: Add dtbs_check support
Add dtbs_check support to the TuxMake backend. When dtbs_check parameter is True, the backend now runs ONLY the dtbs_check target, matching the behavior of the make backend. Reviewed-by: Ben Copeland <ben.copeland@linaro.org Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
1 parent e4d43e0 commit 350db6b

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

kernelci/kbuild.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -768,8 +768,9 @@ def _build_with_tuxmake(self):
768768
print("[_build_with_tuxmake] WARNING: kselftest is not supported with "
769769
"tuxmake backend, skipping. Use backend=make for kselftest builds.")
770770

771-
# Fetch firmware for builds that need it
772-
self._fetch_firmware()
771+
# Fetch firmware only for normal builds, not dtbs_check
772+
if not self._dtbs_check:
773+
self._fetch_firmware()
773774

774775
self.startjob("build_tuxmake")
775776
self.addcmd("cd " + self._srcdir)
@@ -803,10 +804,15 @@ def _build_with_tuxmake(self):
803804
else:
804805
print(f"[_build_with_tuxmake] WARNING: Fragment file not found: {fragfile}")
805806

806-
# Build targets: kernel modules, plus dtbs if arch supports it
807-
targets = ["kernel", "modules"]
808-
if self._arch not in DTBS_DISABLED:
809-
targets.append("dtbs")
807+
# Build targets depend on mode
808+
if self._dtbs_check:
809+
# dtbs_check mode: run ONLY dtbs_check, like make backend
810+
targets = ["dtbs_check"]
811+
else:
812+
# Normal build: kernel, modules, plus dtbs if arch supports it
813+
targets = ["kernel", "modules"]
814+
if self._arch not in DTBS_DISABLED:
815+
targets.append("dtbs")
810816
cmd_parts.append(" ".join(targets))
811817
print(f"[_build_with_tuxmake] Building targets: {' '.join(targets)}")
812818

0 commit comments

Comments
 (0)