scripts/mkits.sh: Fix the hash algorithm paramter
The mkits.sh script help message states hash algorithm can be specified using the -H command-line option, but it does not work currently due to a bug in the script. This patch fixes this problem by changing the option from -S to -H and specify getopts parameter after it Signed-off-by: Yonghyu Ban <yonghyu@empo.im>
This commit is contained in:
parent
cda668e046
commit
7270d768da
@ -46,7 +46,7 @@ LOADABLES=
|
|||||||
DTOVERLAY=
|
DTOVERLAY=
|
||||||
DTADDR=
|
DTADDR=
|
||||||
|
|
||||||
while getopts ":A:a:c:C:D:d:e:f:i:k:n:o:O:v:r:S" OPTION
|
while getopts ":A:a:c:C:D:d:e:f:i:k:n:o:O:v:r:H:" OPTION
|
||||||
do
|
do
|
||||||
case $OPTION in
|
case $OPTION in
|
||||||
A ) ARCH=$OPTARG;;
|
A ) ARCH=$OPTARG;;
|
||||||
@ -63,7 +63,7 @@ do
|
|||||||
o ) OUTPUT=$OPTARG;;
|
o ) OUTPUT=$OPTARG;;
|
||||||
O ) DTOVERLAY="$DTOVERLAY ${OPTARG}";;
|
O ) DTOVERLAY="$DTOVERLAY ${OPTARG}";;
|
||||||
r ) ROOTFS=$OPTARG;;
|
r ) ROOTFS=$OPTARG;;
|
||||||
S ) HASH=$OPTARG;;
|
H ) HASH=$OPTARG;;
|
||||||
v ) VERSION=$OPTARG;;
|
v ) VERSION=$OPTARG;;
|
||||||
* ) echo "Invalid option passed to '$0' (options:$*)"
|
* ) echo "Invalid option passed to '$0' (options:$*)"
|
||||||
usage;;
|
usage;;
|
||||||
|
Loading…
Reference in New Issue
Block a user