diff --git a/Tools/px_uploader.entrypoint b/Tools/px_uploader.entrypoint index d9dbe012402d..540ff26de3c5 100755 --- a/Tools/px_uploader.entrypoint +++ b/Tools/px_uploader.entrypoint @@ -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} @@ -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