<?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 Adding a new component in Flexbuild in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/Adding-a-new-component-in-Flexbuild/m-p/1230372#M7519</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to add a new 'hello world' component into my build just to see how it's done. I created a hello world c program and add the build into Makefile under packages/apps. However, even though I followed the instructions, new rootfs image does not include my component.&lt;/P&gt;&lt;P&gt;The steps that I followed from the documentation are:&lt;/P&gt;&lt;P class="p"&gt;Step1: Add a new CONFIG_APP_&amp;lt;component&amp;gt;=y and configure &amp;lt;component&amp;gt;_repo_url and &amp;lt;component&amp;gt;_repo_branch in configs/build_lsdk.cfg, you can directly create the new component git repository in packages/apps/&amp;lt;your-component&amp;gt; as well, ensure there is an appropriate Makefile in your new component git repository. (&lt;STRONG&gt;&lt;EM&gt;I directly create my component under packages/apps instead of git repo, while adding build of this component into Makefile&lt;/EM&gt;&lt;/STRONG&gt;)&lt;/P&gt;&lt;P class="p"&gt;Step2: Add build target support for the new component in packages/apps/Makefile&lt;/P&gt;&lt;P class="p"&gt;Step3: Run 'flex-builder -c &amp;lt;component_name&amp;gt; -a &amp;lt;arch&amp;gt;' to build new component&lt;/P&gt;&lt;P class="p"&gt;Step4: Run 'flex-builder -i merge-component -a &amp;lt;arch&amp;gt;' to merger new component package into distro userland&lt;/P&gt;&lt;P class="p"&gt;Step5: Run 'flex-builder -i packrfs -a &amp;lt;arch&amp;gt;' to pack the target distro userland for deployment&lt;/P&gt;&lt;P class="p"&gt;After running the last command, I unzip rootfs image to check whether my component is inside, but it's not.&lt;/P&gt;&lt;P class="p"&gt;What am I doing wrong? How to check whether my component exists in the new rootfs image?&lt;/P&gt;&lt;P class="p"&gt;Thnx&lt;/P&gt;</description>
    <pubDate>Fri, 12 Feb 2021 13:34:39 GMT</pubDate>
    <dc:creator>LSDK_user</dc:creator>
    <dc:date>2021-02-12T13:34:39Z</dc:date>
    <item>
      <title>Adding a new component in Flexbuild</title>
      <link>https://community.nxp.com/t5/Layerscape/Adding-a-new-component-in-Flexbuild/m-p/1230372#M7519</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to add a new 'hello world' component into my build just to see how it's done. I created a hello world c program and add the build into Makefile under packages/apps. However, even though I followed the instructions, new rootfs image does not include my component.&lt;/P&gt;&lt;P&gt;The steps that I followed from the documentation are:&lt;/P&gt;&lt;P class="p"&gt;Step1: Add a new CONFIG_APP_&amp;lt;component&amp;gt;=y and configure &amp;lt;component&amp;gt;_repo_url and &amp;lt;component&amp;gt;_repo_branch in configs/build_lsdk.cfg, you can directly create the new component git repository in packages/apps/&amp;lt;your-component&amp;gt; as well, ensure there is an appropriate Makefile in your new component git repository. (&lt;STRONG&gt;&lt;EM&gt;I directly create my component under packages/apps instead of git repo, while adding build of this component into Makefile&lt;/EM&gt;&lt;/STRONG&gt;)&lt;/P&gt;&lt;P class="p"&gt;Step2: Add build target support for the new component in packages/apps/Makefile&lt;/P&gt;&lt;P class="p"&gt;Step3: Run 'flex-builder -c &amp;lt;component_name&amp;gt; -a &amp;lt;arch&amp;gt;' to build new component&lt;/P&gt;&lt;P class="p"&gt;Step4: Run 'flex-builder -i merge-component -a &amp;lt;arch&amp;gt;' to merger new component package into distro userland&lt;/P&gt;&lt;P class="p"&gt;Step5: Run 'flex-builder -i packrfs -a &amp;lt;arch&amp;gt;' to pack the target distro userland for deployment&lt;/P&gt;&lt;P class="p"&gt;After running the last command, I unzip rootfs image to check whether my component is inside, but it's not.&lt;/P&gt;&lt;P class="p"&gt;What am I doing wrong? How to check whether my component exists in the new rootfs image?&lt;/P&gt;&lt;P class="p"&gt;Thnx&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 13:34:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Adding-a-new-component-in-Flexbuild/m-p/1230372#M7519</guid>
      <dc:creator>LSDK_user</dc:creator>
      <dc:date>2021-02-12T13:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a new component in Flexbuild</title>
      <link>https://community.nxp.com/t5/Layerscape/Adding-a-new-component-in-Flexbuild/m-p/1232724#M7550</link>
      <description>&lt;P&gt;There is nothing wrong with the steps you mentioned, but you need to keep in &lt;BR /&gt;mind that LSDK supports several types of target userland images. If you &lt;BR /&gt;wish your new program to appear in a specific userland, you need to add your&lt;BR /&gt;package to that userland. Therefore, once flex-builder -c &amp;lt;component&amp;gt; -a &amp;lt;arch&amp;gt; &lt;BR /&gt;succeeds, study the instructions given Section 4.3.13 of &lt;BR /&gt;Layerscape Software Development Kit User Guide. Note that flex-builder usually&lt;BR /&gt;displays an error message when it fails to do something. Checking the console&lt;BR /&gt;output should give you some ideas on what goes wrong. And last, but not the least,&lt;BR /&gt;flex-builder, although we keep it reasonably simple, requires a multistep configuration.&lt;BR /&gt;Using an existing LSDK software component as a template can save you time.&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;BR /&gt;Platon&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 09:23:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Adding-a-new-component-in-Flexbuild/m-p/1232724#M7550</guid>
      <dc:creator>bpe</dc:creator>
      <dc:date>2021-02-18T09:23:40Z</dc:date>
    </item>
  </channel>
</rss>

