Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Test: OS: Ubuntu 24.04
Currently, this instruction
utils/aml-flash-tool/flash-tool
Line 443 in 1022f00
is not valid.
Debug
#!/bin/bash
set -x
trap read debug
...
++ uname -o
++ read
++ uname -m
++ grep -i x86
host_machine=x86_64
++ read
'[' '!' -z GNU/Linux ']'
++ read
'[' GNU/Linux = Darwin ']'
++ read
'[' '!' -z x86_64 ']'
++ read
SYSTEM=linux-x86
++ read
EXE=
++ read
print_debug 'host_os = GNU/Linux'
[[ 1 == 1 ]]
echo -e '\033[0;33mhost_os = GNU/Linux\033[m'
host_os = GNU/Linux
++ read
...
++ read
++ awk '/sub_type="platform"/{gsub("file=","",$1); gsub(/"/,"",$1); print $1}' /tmp/aml-flash-tool-8b4y/image.cfg
awk: cmd. line:1: warning: regexp escape sequence `"' is not a known regexp operator
...
Debug
[ $host_os != Darwin ] solves it.
otherwise
uname -s
should be used for Linux.