Skip to content
Snippets Groups Projects
Commit 2bd6ffae authored by Nico Dechesne (Stage)'s avatar Nico Dechesne (Stage)
Browse files

signlk.sh: do not check input file extension


Input file extension is meaningless.. the input file will very soon be openned
with ELFIO, and if it's not a valid ELF valid, the program will stop anyways, so
these checks are meaningless.

Signed-off-by: default avatarNicolas Dechesne <nicolas.dechesne@linaro.org>
parent 1f61c033
No related branches found
No related tags found
No related merge requests found
......@@ -82,17 +82,6 @@ if [ "$INFILE" = "" ]; then
fi
INFILE_filename=$(echo $INFILE | rev | cut -f 2- -d '.' | rev)
INFILE_extension=$(echo $INFILE | rev | cut -f 1 -d '.' | rev)
if [ "$INFILE_extension" = "" ]; then
echo "input file must be an elf or mbn file"
exit 3
fi
if [ "$INFILE_extension" != "elf" ] && [ "$INFILE_extension" != "mbn" ] && [ "$INFILE_extension" != "ELF" ] && [ "$INFILE_extension" != "MBN" ]; then
echo "input file must be an elf or mbn file"
exit 4
fi
if [ "$OUTFILE" = "" ]; then
OUTFILE=$INFILE_filename"_signed.mbn"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment