<?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 Copying external layers to a project - ERROR -- do_patch: Function failed: patch_do_patch [bitbake] in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Copying-external-layers-to-a-project-ERROR-do-patch-Function/m-p/1193746#M165986</link>
    <description>&lt;P&gt;I am using yocto build a linux image that integrates some layers of wlan and a specific wifi chip, but seems like patching of one of the files is failing (details below)&lt;/P&gt;&lt;P&gt;Steps that I did:&lt;/P&gt;&lt;P&gt;- Created a working directory&lt;BR /&gt;- initialized a repo for kernel 4.14.98 via:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-sumo -m imx-4.14.98-2.3.3.xml&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;- sync the repo via &lt;STRONG&gt;repo sync&lt;/STRONG&gt;&lt;BR /&gt;- creat a &lt;STRONG&gt;tmp&lt;/STRONG&gt;&amp;nbsp;folder outside of the current working dir, and download the specific code for wifi via&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;repo init -u git://codeaurora.org/quic/le/le/manifest.git -b release -m CHSS.LNX_FSLS.1.0-01200-QCAAUTOHOSTHZ.xml –repo-url=git://codeaurora.org/tools/repo.git –repo-branch=caf-stable&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;- repo the sync&lt;BR /&gt;- copy the `&lt;STRONG&gt;meta-qti-connectivity&lt;/STRONG&gt;` and `&lt;STRONG&gt;wlan-opensource&lt;/STRONG&gt;` folders into the source folder of the working directory&lt;BR /&gt;- Download the files for a specific wifi chip and copy over `&lt;STRONG&gt;meta-qticonnectivity-prop`&lt;/STRONG&gt; and `&lt;STRONG&gt;wlanproprietary&lt;/STRONG&gt;` into the source folder of the working directory&lt;/P&gt;&lt;P&gt;So now we have added additional 4 directories into the source folder of the working directory&lt;/P&gt;&lt;P&gt;- Set up the build environment&lt;BR /&gt;- Run `bitbake core-image-minimal`&lt;/P&gt;&lt;P&gt;and I see the following errors:&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ERROR: wpa-supplicant-git-r0 do_patch: Command Error: 'quilt --quiltrc &amp;lt;working_directory&amp;gt;/linux_image/build/tmp/work/imx8qxpmek-poky-linux/wpa-supplicant/git-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0 Output:
Applying patch 0009-Sync-with-mac80211-next.git-include-uapi-linux-nl802.patch
patching file src/drivers/nl80211_copy.h

15 out of 20 hunks FAILED -- rejects in file src/drivers/nl80211_copy.h
Patch 0009-Sync-with-mac80211-next.git-include-uapi-linux-nl802.patch does not apply (enforce with -f)
ERROR: wpa-supplicant-git-r0 do_patch: Function failed: patch_do_patch&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;can't find the //config/defconfig_4.14.98 file&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the file that I see that exists is &lt;STRONG&gt;defconfig_4.14.78&lt;/STRONG&gt;, and that too in of the layers that I added.&lt;/P&gt;&lt;P&gt;I'm new to yocto, and from the looks of it, it seems the patch &lt;STRONG&gt;`0009-Sync-with-mac80211-next.git-include-uapi-linux-nl802.patch`&lt;/STRONG&gt; didn't apply, but does that mean the issue is with the patch file or the way it's referenced? It resides in the meta-bsp layer and not in the external layers I added&lt;/P&gt;&lt;P&gt;Do I have to create a separate &lt;STRONG&gt;bbappend&lt;/STRONG&gt; file to include the recipes of the layers I added?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Dec 2020 07:05:00 GMT</pubDate>
    <dc:creator>jaux_al</dc:creator>
    <dc:date>2020-12-04T07:05:00Z</dc:date>
    <item>
      <title>Copying external layers to a project - ERROR -- do_patch: Function failed: patch_do_patch [bitbake]</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Copying-external-layers-to-a-project-ERROR-do-patch-Function/m-p/1193746#M165986</link>
      <description>&lt;P&gt;I am using yocto build a linux image that integrates some layers of wlan and a specific wifi chip, but seems like patching of one of the files is failing (details below)&lt;/P&gt;&lt;P&gt;Steps that I did:&lt;/P&gt;&lt;P&gt;- Created a working directory&lt;BR /&gt;- initialized a repo for kernel 4.14.98 via:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-sumo -m imx-4.14.98-2.3.3.xml&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;- sync the repo via &lt;STRONG&gt;repo sync&lt;/STRONG&gt;&lt;BR /&gt;- creat a &lt;STRONG&gt;tmp&lt;/STRONG&gt;&amp;nbsp;folder outside of the current working dir, and download the specific code for wifi via&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;repo init -u git://codeaurora.org/quic/le/le/manifest.git -b release -m CHSS.LNX_FSLS.1.0-01200-QCAAUTOHOSTHZ.xml –repo-url=git://codeaurora.org/tools/repo.git –repo-branch=caf-stable&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;- repo the sync&lt;BR /&gt;- copy the `&lt;STRONG&gt;meta-qti-connectivity&lt;/STRONG&gt;` and `&lt;STRONG&gt;wlan-opensource&lt;/STRONG&gt;` folders into the source folder of the working directory&lt;BR /&gt;- Download the files for a specific wifi chip and copy over `&lt;STRONG&gt;meta-qticonnectivity-prop`&lt;/STRONG&gt; and `&lt;STRONG&gt;wlanproprietary&lt;/STRONG&gt;` into the source folder of the working directory&lt;/P&gt;&lt;P&gt;So now we have added additional 4 directories into the source folder of the working directory&lt;/P&gt;&lt;P&gt;- Set up the build environment&lt;BR /&gt;- Run `bitbake core-image-minimal`&lt;/P&gt;&lt;P&gt;and I see the following errors:&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ERROR: wpa-supplicant-git-r0 do_patch: Command Error: 'quilt --quiltrc &amp;lt;working_directory&amp;gt;/linux_image/build/tmp/work/imx8qxpmek-poky-linux/wpa-supplicant/git-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0 Output:
Applying patch 0009-Sync-with-mac80211-next.git-include-uapi-linux-nl802.patch
patching file src/drivers/nl80211_copy.h

15 out of 20 hunks FAILED -- rejects in file src/drivers/nl80211_copy.h
Patch 0009-Sync-with-mac80211-next.git-include-uapi-linux-nl802.patch does not apply (enforce with -f)
ERROR: wpa-supplicant-git-r0 do_patch: Function failed: patch_do_patch&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;can't find the //config/defconfig_4.14.98 file&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the file that I see that exists is &lt;STRONG&gt;defconfig_4.14.78&lt;/STRONG&gt;, and that too in of the layers that I added.&lt;/P&gt;&lt;P&gt;I'm new to yocto, and from the looks of it, it seems the patch &lt;STRONG&gt;`0009-Sync-with-mac80211-next.git-include-uapi-linux-nl802.patch`&lt;/STRONG&gt; didn't apply, but does that mean the issue is with the patch file or the way it's referenced? It resides in the meta-bsp layer and not in the external layers I added&lt;/P&gt;&lt;P&gt;Do I have to create a separate &lt;STRONG&gt;bbappend&lt;/STRONG&gt; file to include the recipes of the layers I added?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 07:05:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Copying-external-layers-to-a-project-ERROR-do-patch-Function/m-p/1193746#M165986</guid>
      <dc:creator>jaux_al</dc:creator>
      <dc:date>2020-12-04T07:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Copying external layers to a project - ERROR -- do_patch: Function failed: patch_do_patch [bitba</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Copying-external-layers-to-a-project-ERROR-do-patch-Function/m-p/1195555#M166136</link>
      <description>&lt;P&gt;Hello jaux_al,&lt;/P&gt;
&lt;P&gt;I thinks this patch is not included for this BSP.&lt;SPAN class="comment-copy"&gt; The bbappend applies to one recipe only. It will apply to the recipe with the coresponding base name. A bbappend can be specified with (or without version or with wildcards in the version). A bbappend without version will apply to ALL versions of the corresponding recipes while a versioned bbappend will only apply to the recipe with the correct version.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="comment-copy"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 14:29:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Copying-external-layers-to-a-project-ERROR-do-patch-Function/m-p/1195555#M166136</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2020-12-08T14:29:59Z</dc:date>
    </item>
  </channel>
</rss>

