tegra-helper-scripts: don't require --serial-number with --external-device

to allow for programming a locally-attached drive that will then be plugged
into the target.

Signed-off-by: Matt Madison <matt@madison.systems>
This commit is contained in:
Matt Madison
2024-06-16 13:47:27 -07:00
parent 8df401bd44
commit 6e8eab779e

View File

@@ -725,11 +725,7 @@ if [ $no_flash -ne 0 ]; then
else
eval $flashcmd < /dev/null || exit 1
if [ -n "$sdcard" -o $external_device -eq 1 ]; then
if [ $external_device -eq 1 ]; then
if [ -z "$serial_number" ]; then
echo "ERR: missing serial number for initrd-flashing external device" >&2
exit 1
fi
if [ $external_device -eq 1 -a -n "$serial_number" ]; then
make_sdcard_args="$make_sdcard_args --serial-number $serial_number"
fi
if [ -n "$pre_sdcard_sed" ]; then