Typo in flex-builder causes error: getopt: option requires an argument

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Typo in flex-builder causes error: getopt: option requires an argument

577 Views
henryk_paluch
Contributor I

Hi!

When I run this command from latest flexbuild_lsdk2004.tgz:

flex-builder -i mkboot -m ls1012afrwy -a arm64

After a while I get following error:

getopt: option requires an argument -- 'f'

This error is caused by trivial typo in flex-builder script - passing "$CONFIGLIS" instead of "$CONFIGLIST".

Applying one-line patch (also attached), fixes this bug.

--- flexbuild_lsdk2004/tools/flex-builder.orig  2020-05-22 06:32:33.288300556 +0000
+++ flexbuild_lsdk2004/tools/flex-builder       2020-05-22 06:32:46.052274393 +0000
@@ -557,7 +557,7 @@

     # install distro boot script
     fbprint_n "Installing distro boot script ..."
-    [ -f $distro_bootscript ] || flex-builder -i mkdistroscr -p $SOCFAMILY -f $CONFIGLIS
+    [ -f $distro_bootscript ] || flex-builder -i mkdistroscr -p $SOCFAMILY -f $CONFIGLIST
     if [ $DESTARCH = arm64 -a $SOCFAMILY = LS ]; then
        socseries=l; scrmask="-v -E ls1021atwr"
     elif [ $DESTARCH = arm32 -a $SOCFAMILY = LS ]; then
The MD5 hash of downloaded flexbuild_lsdk2004.tgz is:
1631b235bfa8e929f8b58129475bd86e *flexbuild_lsdk2004.tgz

Best regards

  --Henryk Paluch

Tags (2)
0 Kudos
1 Reply

535 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please execute the following command.

$ flex-builder -i mkboot -a arm64

0 Kudos