<?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: What is the proper way to add miscellaneous files to Yocto rootfs ? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/What-is-the-proper-way-to-add-miscellaneous-files-to-Yocto/m-p/359631#M50502</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There, We found that adding - IMAGE_PREPROCESS_COMMAND += " rsync -a --exclude=.svn ${FILE_SRC}/rootfs/* ${WORKDIR}/rootfs ; " to the image recipe is the most straight-forward and least headache prone method so far. Thanks for your help /Otto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Oct 2014 21:31:33 GMT</pubDate>
    <dc:creator>ottob</dc:creator>
    <dc:date>2014-10-07T21:31:33Z</dc:date>
    <item>
      <title>What is the proper way to add miscellaneous files to Yocto rootfs ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/What-is-the-proper-way-to-add-miscellaneous-files-to-Yocto/m-p/359629#M50500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have miscellaneous files in various directories that we would like to have added to the Yocto image. The directory structure is as follows &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/files/etc/&lt;/P&gt;&lt;P&gt;/files/home/root&lt;/P&gt;&lt;P&gt;/files/bin/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so forth. What I would like to have done every time the image is built is to simply run a "cp -a files/* [yocto rootfs dir]" after all the other packages are installed / populated. I tried creating a recipe as shown below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;PROVIDES = "jtq-rootfs"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;RPROVIDES_${PN} += "${PN}"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;do_install() {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rsync -a --exclude=.svn ${JTQ_SRC}/files/* ${D}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;LICENSE = "GPLv2+"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;LIC_FILES_CHKSUM = "file://${THISDIR}/license;md5=8cf8463b34caa8ac871a52d5dd7ad1ef"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That added in the files initially, but after modifying the files it did not get updated properly on the file system image (even after running bitbake jtq-rootfs -c compile -fv). Clearly this is not the right way to do it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any hints on what would be the correct way ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Otto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 01:35:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/What-is-the-proper-way-to-add-miscellaneous-files-to-Yocto/m-p/359629#M50500</guid>
      <dc:creator>ottob</dc:creator>
      <dc:date>2014-10-01T01:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: What is the proper way to add miscellaneous files to Yocto rootfs ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/What-is-the-proper-way-to-add-miscellaneous-files-to-Yocto/m-p/359630#M50501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The method mentioned should work correctly. However, since Yocto is not designed for development but rather for distribution it won’t strictly follow up on files being changed. You would need to clean and then bake again so make sure that the changes are reflected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;$ bitbake –c clean &amp;lt;IMAGE&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;$ bitbake &amp;lt;IMAGE&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try it and let us know if it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 20:13:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/What-is-the-proper-way-to-add-miscellaneous-files-to-Yocto/m-p/359630#M50501</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2014-10-07T20:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: What is the proper way to add miscellaneous files to Yocto rootfs ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/What-is-the-proper-way-to-add-miscellaneous-files-to-Yocto/m-p/359631#M50502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There, We found that adding - IMAGE_PREPROCESS_COMMAND += " rsync -a --exclude=.svn ${FILE_SRC}/rootfs/* ${WORKDIR}/rootfs ; " to the image recipe is the most straight-forward and least headache prone method so far. Thanks for your help /Otto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 21:31:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/What-is-the-proper-way-to-add-miscellaneous-files-to-Yocto/m-p/359631#M50502</guid>
      <dc:creator>ottob</dc:creator>
      <dc:date>2014-10-07T21:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: What is the proper way to add miscellaneous files to Yocto rootfs ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/What-is-the-proper-way-to-add-miscellaneous-files-to-Yocto/m-p/359632#M50503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;:smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 05:55:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/What-is-the-proper-way-to-add-miscellaneous-files-to-Yocto/m-p/359632#M50503</guid>
      <dc:creator>fresxc</dc:creator>
      <dc:date>2014-12-24T05:55:25Z</dc:date>
    </item>
  </channel>
</rss>

