Skip to content

Comments

Draft: convert the script to a pure POSIX compliant implementation#3

Open
leonheldattoradex wants to merge 4 commits intotoradex:masterfrom
leonheldattoradex:pure-posix
Open

Draft: convert the script to a pure POSIX compliant implementation#3
leonheldattoradex wants to merge 4 commits intotoradex:masterfrom
leonheldattoradex:pure-posix

Conversation

@leonheldattoradex
Copy link

I've also taken the chance to run shfmt and shellcheck on the script.

This is not well tested and contains changes made in #2 so I'm leaving as draft for us to perhaps pick it up in the future, if there's need.

Previously, the script assumed the existance of GNU sed, which is not
present on FreeBSD and Darwin systems, silently failing when executed.

For more information on sed's POSIX compliance, check the STANDARDS
section on SED(1) shipped with FreeBSD as of 14-2.

Signed-off-by: Leonardo Held <leonardo.held@toradex.com>
Related-to: TCB-297

Signed-off-by: Leonardo Held <leonardo.held@toradex.com>
tcb is currently available only for amd64. This change enables users running
other architectures to at least utilize emulation to run tcb.

Signed-off-by: Leonardo Held <leonardo.held@toradex.com>
Signed-off-by: Leonardo Held <leonardo.held@toradex.com>
@zoenglinghou
Copy link

I think making torizoncore-builder a function instead of an alias could help with scripting too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants