<?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 do_patch: function failed: patch_do_patch in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/do-patch-function-failed-patch-do-patch/m-p/1192698#M165889</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;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;&lt;BR /&gt;- sync the repo via &lt;STRONG&gt;repo sync&lt;/STRONG&gt;&lt;BR /&gt;- created a &lt;STRONG&gt;temp&lt;/STRONG&gt;&amp;nbsp;folder outside of the current working dir, and download the specific code for wlan via&lt;BR /&gt;&lt;BR /&gt;&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;&lt;BR /&gt;- repo the sync&lt;BR /&gt;- copy the &lt;STRONG&gt;meta-qti-connectivity&amp;nbsp;&lt;/STRONG&gt;and &lt;STRONG&gt;wlan-opensource&lt;/STRONG&gt;&amp;nbsp;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;&amp;nbsp;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 &lt;STRONG&gt;bitbake core-image-minimal&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and I see the following error:&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;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?&lt;BR /&gt;&lt;BR /&gt;The `&lt;STRONG&gt;SRC_URI&lt;/STRONG&gt;` variable is used to locate the applicable patch files and `do_patch` isn't needed in the respective `.bb` file of wpa-supplicant, right?&lt;/P&gt;&lt;P&gt;Also, the respective bb file `wpa-supplicant` has the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SRC_URI = "file://wlan-opensource/wpa_supplicant_8/"
SRC_URI += "file://hostapdconf \
file://supplicantconf \&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;shouldn't patch files be defined with `.patch` at the end?&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2020 00:00:10 GMT</pubDate>
    <dc:creator>jaux_al</dc:creator>
    <dc:date>2020-12-03T00:00:10Z</dc:date>
    <item>
      <title>do_patch: function failed: patch_do_patch</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/do-patch-function-failed-patch-do-patch/m-p/1192698#M165889</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;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;&lt;BR /&gt;- sync the repo via &lt;STRONG&gt;repo sync&lt;/STRONG&gt;&lt;BR /&gt;- created a &lt;STRONG&gt;temp&lt;/STRONG&gt;&amp;nbsp;folder outside of the current working dir, and download the specific code for wlan via&lt;BR /&gt;&lt;BR /&gt;&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;&lt;BR /&gt;- repo the sync&lt;BR /&gt;- copy the &lt;STRONG&gt;meta-qti-connectivity&amp;nbsp;&lt;/STRONG&gt;and &lt;STRONG&gt;wlan-opensource&lt;/STRONG&gt;&amp;nbsp;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;&amp;nbsp;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 &lt;STRONG&gt;bitbake core-image-minimal&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and I see the following error:&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;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?&lt;BR /&gt;&lt;BR /&gt;The `&lt;STRONG&gt;SRC_URI&lt;/STRONG&gt;` variable is used to locate the applicable patch files and `do_patch` isn't needed in the respective `.bb` file of wpa-supplicant, right?&lt;/P&gt;&lt;P&gt;Also, the respective bb file `wpa-supplicant` has the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SRC_URI = "file://wlan-opensource/wpa_supplicant_8/"
SRC_URI += "file://hostapdconf \
file://supplicantconf \&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;shouldn't patch files be defined with `.patch` at the end?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 00:00:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/do-patch-function-failed-patch-do-patch/m-p/1192698#M165889</guid>
      <dc:creator>jaux_al</dc:creator>
      <dc:date>2020-12-03T00:00:10Z</dc:date>
    </item>
  </channel>
</rss>

