Skip to content

Commit b690f6a

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 2382234 commit b690f6a

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
@@ -757,8 +757,9 @@ def _build_with_tuxmake(self):
757757
defconfig = 'defconfig'
758758
print("[_build_with_tuxmake] WARNING: No defconfig specified, using 'defconfig'")
759759

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

763764
self.startjob("build_tuxmake")
764765
self.addcmd("cd " + self._srcdir)
@@ -793,10 +794,14 @@ def _build_with_tuxmake(self):
793794
else:
794795
print(f"[_build_with_tuxmake] WARNING: Fragment file not found: {fragfile}")
795796

796-
# Build targets: kernel modules, plus dtbs if arch supports it
797-
targets = ["kernel", "modules"]
798-
if self._arch not in DTBS_DISABLED:
799-
targets.append("dtbs")
797+
# Build targets depend on mode
798+
if self._dtbs_check:
799+
targets = ["dtbs_check"]
800+
else:
801+
# Normal build: kernel, modules, plus dtbs if arch supports it
802+
targets = ["kernel", "modules"]
803+
if self._arch not in DTBS_DISABLED:
804+
targets.append("dtbs")
800805
if self._kfselftest:
801806
targets.append("kselftest")
802807
cmd_parts.append(" ".join(targets))

0 commit comments

Comments
 (0)