<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Typo in flex-builder causes error: getopt: option requires an argument  in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/Typo-in-flex-builder-causes-error-getopt-option-requires-an/m-p/1062197#M6082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please execute the following command.&lt;/P&gt;&lt;P&gt;$ flex-builder -i mkboot -a arm64&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 May 2020 05:49:20 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2020-05-25T05:49:20Z</dc:date>
    <item>
      <title>Typo in flex-builder causes error: getopt: option requires an argument</title>
      <link>https://community.nxp.com/t5/Layerscape/Typo-in-flex-builder-causes-error-getopt-option-requires-an/m-p/1062196#M6081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;When I run this command from latest &lt;SPAN style="text-align: left; color: #3d3d3d; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: courier new,courier,monospace; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: pre; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;flexbuild_lsdk2004.tgz&lt;/SPAN&gt;:&lt;/P&gt;&lt;PRE&gt;flex-builder -i mkboot -m ls1012afrwy -a arm64&lt;/PRE&gt;&lt;P&gt;After a while I get following error:&lt;/P&gt;&lt;PRE&gt;getopt: option requires an argument -- 'f'&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This error is caused by trivial typo in &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;flex-builder&lt;/SPAN&gt; script - passing "&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;$CONFIGLIS&lt;/SPAN&gt;" instead of "&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;$CONFIGLIST&lt;/SPAN&gt;".&lt;/P&gt;&lt;PRE&gt;Applying one-line patch (also attached), fixes this bug.

--- flexbuild_lsdk2004/tools/flex-builder.orig&amp;nbsp; 2020-05-22 06:32:33.288300556 +0000
+++ flexbuild_lsdk2004/tools/flex-builder&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2020-05-22 06:32:46.052274393 +0000
@@ -557,7 +557,7 @@

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # install distro boot script
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fbprint_n "Installing distro boot script ..."
-&amp;nbsp;&amp;nbsp;&amp;nbsp; [ -f $distro_bootscript ] || flex-builder -i mkdistroscr -p $SOCFAMILY -f $CONFIGLIS
+&amp;nbsp;&amp;nbsp;&amp;nbsp; [ -f $distro_bootscript ] || flex-builder -i mkdistroscr -p $SOCFAMILY -f $CONFIGLIST
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if [ $DESTARCH = arm64 -a $SOCFAMILY = LS ]; then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; socseries=l; scrmask="-v -E ls1021atwr"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elif [ $DESTARCH = arm32 -a $SOCFAMILY = LS ]; then&lt;/PRE&gt;&lt;DIV&gt;The MD5 hash of downloaded &lt;SPAN style="-webkit-text-stroke-width: 0px; color: #3d3d3d; white-space: pre; font-weight: 400; display: inline !important; letter-spacing: normal; text-decoration: none; font-size: 15px; font-style: normal; float: none; background-color: #ffffff; text-transform: none; word-spacing: 0px; font-variant: normal; text-indent: 0px; font-family: courier new,courier,monospace; orphans: 2; text-align: left; "&gt;flexbuild_lsdk2004.tgz&lt;/SPAN&gt; is:&lt;/DIV&gt;&lt;PRE&gt;1631b235bfa8e929f8b58129475bd86e *flexbuild_lsdk2004.tgz&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp; --Henryk Paluch&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2020 06:44:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Typo-in-flex-builder-causes-error-getopt-option-requires-an/m-p/1062196#M6081</guid>
      <dc:creator>henryk_paluch</dc:creator>
      <dc:date>2020-05-22T06:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Typo in flex-builder causes error: getopt: option requires an argument</title>
      <link>https://community.nxp.com/t5/Layerscape/Typo-in-flex-builder-causes-error-getopt-option-requires-an/m-p/1062197#M6082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please execute the following command.&lt;/P&gt;&lt;P&gt;$ flex-builder -i mkboot -a arm64&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2020 05:49:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Typo-in-flex-builder-causes-error-getopt-option-requires-an/m-p/1062197#M6082</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2020-05-25T05:49:20Z</dc:date>
    </item>
  </channel>
</rss>

