Skip to content

Commit 379d7a1

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 b540879 commit 379d7a1

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

kernelci/kbuild.py

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

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

768769
self.startjob("build_tuxmake")
769770
self.addcmd("cd " + self._srcdir)
@@ -800,10 +801,14 @@ def _build_with_tuxmake(self):
800801
else:
801802
print(f"[_build_with_tuxmake] WARNING: Fragment file not found: {fragfile}")
802803

803-
# Build targets: kernel modules, plus dtbs if arch supports it
804-
targets = ["kernel", "modules"]
805-
if self._arch not in DTBS_DISABLED:
806-
targets.append("dtbs")
804+
# Build targets depend on mode
805+
if self._dtbs_check:
806+
targets = ["dtbs_check"]
807+
else:
808+
# Normal build: kernel, modules, plus dtbs if arch supports it
809+
targets = ["kernel", "modules"]
810+
if self._arch not in DTBS_DISABLED:
811+
targets.append("dtbs")
807812
if self._kfselftest:
808813
targets.append("kselftest")
809814
cmd_parts.append(" ".join(targets))

0 commit comments

Comments
 (0)