build: add directory-oriented make workflows
Host SITL smoke / Deterministic Gazebo command path (push) Has been cancelled
Host SITL smoke / Deterministic Gazebo command path (push) Has been cancelled
This commit is contained in:
1 parent
4bc98adbc6
commit
7dc3ccb619
40 files changed
+1367
-278
No files matched your search
@@ -2,8 +2,8 @@
|
||||
set -euo pipefail
|
||||
|
||||
if [[ $# -lt 1 || $# -gt 2 ]]; then
|
||||
printf 'Usage: %s <firmware.elf> [memory.x]\n' "$0" >&2
|
||||
exit 2
|
||||
printf 'Usage: %s <firmware.elf> [memory.x]\n' "$0" >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
readonly input_elf="$1"
|
||||
@@ -15,18 +15,18 @@ readonly host="$(rustc -vV | sed -n 's/^host: //p')"
|
||||
readonly llvm_objcopy="$(rustc --print sysroot)/lib/rustlib/$host/bin/llvm-objcopy"
|
||||
|
||||
if [[ ! -f "$input_elf" ]]; then
|
||||
printf 'firmware ELF does not exist: %s\n' "$input_elf" >&2
|
||||
exit 1
|
||||
printf 'firmware ELF does not exist: %s\n' "$input_elf" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ ! -f "$memory_x" ]]; then
|
||||
printf 'cannot find linker layout: %s\n' "$memory_x" >&2
|
||||
exit 1
|
||||
printf 'cannot find linker layout: %s\n' "$memory_x" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ ! -x "$llvm_objcopy" ]]; then
|
||||
printf 'llvm-objcopy is unavailable; install it with: rustup component add llvm-tools-preview\n' >&2
|
||||
exit 1
|
||||
printf 'llvm-objcopy is unavailable; install it with: rustup component add llvm-tools-preview\n' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
"$script_directory/analyze-fw.py" "$input_elf" "$memory_x"
|
||||
|
||||
Reference in new issue
Block a user