Skip to content

Commit 4d15555

Browse files
committed
kbuild: backend tuxmake: Add dtbs_check support
Add dtbs_check target support for the tuxmake backend. When dtbs_check is requested, run only the dtbs_check target instead of the normal kernel, modules and dtbs targets. Also skip firmware fetch for dtbs_check builds since it is not needed. Reviewed-by: Ben Copeland <ben.copeland@linaro.org> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
1 parent 9cdec83 commit 4d15555

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

kernelci/kbuild.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -758,8 +758,9 @@ def _build_with_tuxmake(self):
758758
defconfig = 'defconfig'
759759
print("[_build_with_tuxmake] WARNING: No defconfig specified, using 'defconfig'")
760760

761-
# Fetch firmware for builds that need it
762-
self._fetch_firmware()
761+
# Fetch firmware only for normal builds, not dtbs_check
762+
if not self._dtbs_check:
763+
self._fetch_firmware()
763764

764765
self.startjob("build_tuxmake")
765766
self.addcmd("cd " + self._srcdir)
@@ -796,10 +797,14 @@ def _build_with_tuxmake(self):
796797
else:
797798
print(f"[_build_with_tuxmake] WARNING: Fragment file not found: {fragfile}")
798799

799-
# Build targets: kernel modules, plus dtbs if arch supports it
800-
targets = ["kernel", "modules"]
801-
if self._arch not in DTBS_DISABLED:
802-
targets.append("dtbs")
800+
# Build targets depend on mode
801+
if self._dtbs_check:
802+
targets = ["dtbs_check"]
803+
else:
804+
# Normal build: kernel, modules, plus dtbs if arch supports it
805+
targets = ["kernel", "modules"]
806+
if self._arch not in DTBS_DISABLED:
807+
targets.append("dtbs")
803808
if self._kfselftest:
804809
targets.append("kselftest")
805810
cmd_parts.append(" ".join(targets))

0 commit comments

Comments
 (0)