Skip to content

Commit b89def0

Browse files
authored
Use switch-arm for rm1/rm2 (#70)
* Use switch-arm for rm1/rm2 * Bump version from 0.5.3 to 0.5.4
1 parent 1bc3bc8 commit b89def0

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "toltecmk"
3-
version = "0.5.3"
3+
version = "0.5.4"
44
authors = [
55
{ name="Mattéo Delabre", email="git.matteo@delab.re" },
66
{ name="Eeems", email="eeems@eeems.email" },

toltec/builder.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,15 @@ def _run_script( # pylint: disable=R0913, R0917, R0914
348348
)
349349
)
350350

351+
elif arch.startswith("rm1") or arch.startswith("rm2"):
352+
pre_script.extend(
353+
(
354+
"if [ -f /opt/x-tools/switch-arm.sh ]; then",
355+
" source /opt/x-tools/switch-arm.sh",
356+
"fi",
357+
)
358+
)
359+
351360
return bash.run_script_in_container(
352361
self.docker,
353362
image=self.IMAGE_PREFIX + image,

0 commit comments

Comments
 (0)