Skip to content

Commit 37ddf7f

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 0307faf commit 37ddf7f

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
@@ -763,8 +763,9 @@ def _build_with_tuxmake(self):
763763
defconfig = 'defconfig'
764764
print("[_build_with_tuxmake] WARNING: No defconfig specified, using 'defconfig'")
765765

766-
# Fetch firmware for builds that need it
767-
self._fetch_firmware()
766+
# Fetch firmware only for normal builds, not dtbs_check
767+
if not self._dtbs_check:
768+
self._fetch_firmware()
768769

769770
self.startjob("build_tuxmake")
770771
self.addcmd("cd " + self._srcdir)
@@ -798,10 +799,15 @@ def _build_with_tuxmake(self):
798799
else:
799800
print(f"[_build_with_tuxmake] WARNING: Fragment file not found: {fragfile}")
800801

801-
# Build targets: kernel modules, plus dtbs if arch supports it
802-
targets = ["kernel", "modules"]
803-
if self._arch not in DTBS_DISABLED:
804-
targets.append("dtbs")
802+
# Build targets depend on mode
803+
if self._dtbs_check:
804+
# dtbs_check mode: run ONLY dtbs_check, like make backend
805+
targets = ["dtbs_check"]
806+
else:
807+
# Normal build: kernel, modules, plus dtbs if arch supports it
808+
targets = ["kernel", "modules"]
809+
if self._arch not in DTBS_DISABLED:
810+
targets.append("dtbs")
805811
if self._kfselftest:
806812
targets.append("kselftest")
807813
cmd_parts.append(" ".join(targets))

0 commit comments

Comments
 (0)