Skip to content

Commit ddb3ee9

Browse files
committed
build.sh: use same image filename for r2 and r2pro
1 parent d5183f8 commit ddb3ee9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,9 @@ case $1 in
293293

294294
"createimg")
295295
IMGDIR=.
296-
IMGNAME=${board}
296+
if [[ "$device" != "emmc" ]];then device="sdmmc";
297+
else echo "emmc not supported";exit 1;fi
298+
IMGNAME=${board}_${device}
297299
REALSIZE=7000
298300
dd if=/dev/zero of=$IMGDIR/$IMGNAME.img bs=1M count=$REALSIZE 1> /dev/null #2>&1
299301
LDEV=`losetup -f`

0 commit comments

Comments
 (0)