<?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>i.MX Processors中的主题 Re: Yocto: $THISDIR problem</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-THISDIR-problem/m-p/430831#M65546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did _require_ work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would expect require to look for a patch-sources.inc inside other layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact I don't understand your point with this change. I have never saw THIS_DIR being used in installation process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you really want to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jun 2015 15:40:18 GMT</pubDate>
    <dc:creator>daiane_angolini</dc:creator>
    <dc:date>2015-06-30T15:40:18Z</dc:date>
    <item>
      <title>Yocto: $THISDIR problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-THISDIR-problem/m-p/430830#M65545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a problem with $THISDIR resolving in Yocto (1.8 / Fido). I just want to ask if it's a bug or expexted behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created *.inc file which simply replaces patching mechanism. Instead of making patches for each change I just want to overwrite old files with new, manually edited. Just to make my layer a bit more "developer-friendly" for quick tests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(198, 198, 198); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: left; background-color: #f2f2f2; color: #505050; padding: 6px;" valign="middle"&gt;patch-sources.inc&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 6px;"&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;do_unpack_append() {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bb.build.exec_func('do_update_sources', d)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;do_update_sources() {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cp &lt;SPAN style="color: #7ed529;"&gt;&lt;STRONG&gt;${THISDIR}&lt;/STRONG&gt;&lt;/SPAN&gt;/${PN}/update/ ${S} -R&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I add this file to *.bbappend, I expect any sources located in &lt;SPAN style="color: #3334ca;"&gt;&lt;STRONG&gt;meta-mylayer&lt;/STRONG&gt;&lt;/SPAN&gt;/.../${PN}/update to be copied on top of extracted sources:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(198, 198, 198); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: left; background-color: #f2f2f2; color: #505050; padding: 6px;" valign="middle"&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;STRONG&gt;meta-mylayer&lt;/STRONG&gt;&lt;/SPAN&gt;/.../u-boot-fslc_2015.04.bbappend&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 6px;"&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;require &lt;SPAN style="color: #7ed529;"&gt;&lt;STRONG&gt;${THISDIR}&lt;/STRONG&gt;&lt;/SPAN&gt;/../../recipes-common/patch-sources.inc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FILESEXTRAPATHS_prepend := "&lt;SPAN style="color: #7ed529;"&gt;&lt;STRONG&gt;${THISDIR}&lt;/STRONG&gt;&lt;/SPAN&gt;/${PN}:"&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So...&lt;/P&gt;&lt;P&gt;in &lt;STRONG&gt;bbappend&lt;/STRONG&gt; file: &lt;SPAN style="color: #7ed529;"&gt;&lt;STRONG&gt;${THISDIR}&lt;/STRONG&gt;&lt;/SPAN&gt; is resolved to &lt;SPAN style="color: #3334ca;"&gt;&lt;STRONG&gt;meta-mylayer&lt;/STRONG&gt;&lt;/SPAN&gt;/... in both cases.&lt;/P&gt;&lt;P&gt;but in included &lt;STRONG&gt;patch-sources.inc&lt;/STRONG&gt;: &lt;STRONG style="color: #7ed529;"&gt;${THISDIR}&lt;/STRONG&gt; is resolved to &lt;SPAN style="color: #e23d39;"&gt;&lt;STRONG&gt;meta-fsl-arm&lt;/STRONG&gt;&lt;/SPAN&gt;/...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it OK or a bug?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Dmitry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 09:28:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-THISDIR-problem/m-p/430830#M65545</guid>
      <dc:creator>dmitryv</dc:creator>
      <dc:date>2015-06-25T09:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto: $THISDIR problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-THISDIR-problem/m-p/430831#M65546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did _require_ work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would expect require to look for a patch-sources.inc inside other layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact I don't understand your point with this change. I have never saw THIS_DIR being used in installation process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you really want to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 15:40:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-THISDIR-problem/m-p/430831#M65546</guid>
      <dc:creator>daiane_angolini</dc:creator>
      <dc:date>2015-06-30T15:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto: $THISDIR problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-THISDIR-problem/m-p/430832#M65547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just adding to Daiane's comment. I would like to know where is the .inc file located since that may also affect how the THISDIR variable is interpreted. In both cases inside meta-mylayer it seems to be giving the correct directory back.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 19:45:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-THISDIR-problem/m-p/430832#M65547</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2015-06-30T19:45:42Z</dc:date>
    </item>
  </channel>
</rss>

