Skip to content

Commit

Permalink
update px4 entrypoint to include long px4 sha
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoSairiala authored and jnippula committed Aug 22, 2024
1 parent ea43db7 commit 64d0ddb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tools/px_uploader.entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function generate_metadata() {
saluki_file_info=$(cat ${SALUKI_FILE_INFO_JSON} |
jq -c '.files[] | select (.filename | contains("'${px4_filename}'")) |
.filename = "'${px4_bin_filename}'" |
.px4_firmware_sha = "'${px4_sha}'" |
.type = "px4-bin"')
echo ${saluki_file_info} > ${validation_file}

Expand Down Expand Up @@ -75,6 +76,9 @@ if [ -n "$PX4_EXPORT_DIR" ]; then
rm ${TEMP_JSON}
fi

# px4 sha from the original json file
px4_sha=$(cat ${SALUKI_FILE_INFO_JSON} | jq -r '.px4_firmware_sha')

# find all px4 files in the firmware directory
for px4_file in /firmware/*.px4; do
extract_bin_from_px4 $px4_file $PX4_EXPORT_DIR
Expand Down

0 comments on commit 64d0ddb

Please sign in to comment.