<?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中的主题 Compile kernel module with static library (.a) problem</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Compile-kernel-module-with-static-library-a-problem/m-p/957632#M143071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Welcome.&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;I have such a problem, maybe sheet metal but unfortunately I can't deal with it.&lt;/P&gt;&lt;P class=""&gt;I have probably searched the whole Internet but unfortunately I have not found a solution to my problem.&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;Well, I'm preparing a kernel for an embedded device. Until now, the kernel compiled without any problem until the patch.&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;Well, patch updates one of the drivers and adds a static library with the extension .a to Makefile&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;Unfortunately, I get an error during compilation.&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;And now with more.&lt;/P&gt;&lt;P class=""&gt;Well, the patch applied to the file "/drivers/video/fbdev/mxc/mxc_hdmi.c" completes the code with references&lt;/P&gt;&lt;P class=""&gt;to two functions called kill_firmiware and get_firmware.&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;Patch also edits the Makefile file by adding a static library there.&lt;/P&gt;&lt;P class=""&gt;-obj-$(CONFIG_FB_MXC_HDMI)&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;+= mxc_hdmi.o&lt;/P&gt;&lt;P class=""&gt;+obj-$(CONFIG_FB_MXC_HDMI)&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;+= mxc_hdmi.o libfw.a&lt;/P&gt;&lt;P class=""&gt;(i.e. it adds at the end of line libfw.a)&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;I see this message during compilation&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;scripts/Makefile.build:298: target 'drivers/video/fbdev/mxc/libfw.a' doesn't match the target pattern&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;Building modules, stage 2.&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;MODPOST 274 modules&lt;/P&gt;&lt;P class=""&gt;ERROR: "kill_firmware" [drivers/video/fbdev/mxc/mxc_hdmi.ko] undefined!&lt;/P&gt;&lt;P class=""&gt;ERROR: "get_firmware" [drivers/video/fbdev/mxc/mxc_hdmi.ko] undefined!&lt;/P&gt;&lt;P class=""&gt;scripts/Makefile.modpost:91: recipe for target '__modpost' failed&lt;/P&gt;&lt;P class=""&gt;make[1]: *** [__modpost] Error 1&lt;/P&gt;&lt;P class=""&gt;Makefile:1205: recipe for target 'modules' failed&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;I uploaded the file with the library to a common directory in which both modified files are located, i.e. Makefile and driver mxc_hdmi.c.&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;Unfortunately, I don't know if I have placed the libfw.a file correctly :(. I know that if I delete this file, I get a message that it can't find the library file at all (so it's probably ok here)&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;Can the libfw.a library not work because it is compiled for another linux version ??&lt;/P&gt;&lt;P class=""&gt;But for the same architecture. Even on the same processor.&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;Please help. :) Because I got stuck working on this problem and unfortunately&lt;/P&gt;&lt;P class=""&gt;I don't know what to do next.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Oct 2019 10:02:53 GMT</pubDate>
    <dc:creator>forum1</dc:creator>
    <dc:date>2019-10-23T10:02:53Z</dc:date>
    <item>
      <title>Compile kernel module with static library (.a) problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Compile-kernel-module-with-static-library-a-problem/m-p/957632#M143071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Welcome.&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;I have such a problem, maybe sheet metal but unfortunately I can't deal with it.&lt;/P&gt;&lt;P class=""&gt;I have probably searched the whole Internet but unfortunately I have not found a solution to my problem.&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;Well, I'm preparing a kernel for an embedded device. Until now, the kernel compiled without any problem until the patch.&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;Well, patch updates one of the drivers and adds a static library with the extension .a to Makefile&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;Unfortunately, I get an error during compilation.&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;And now with more.&lt;/P&gt;&lt;P class=""&gt;Well, the patch applied to the file "/drivers/video/fbdev/mxc/mxc_hdmi.c" completes the code with references&lt;/P&gt;&lt;P class=""&gt;to two functions called kill_firmiware and get_firmware.&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;Patch also edits the Makefile file by adding a static library there.&lt;/P&gt;&lt;P class=""&gt;-obj-$(CONFIG_FB_MXC_HDMI)&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;+= mxc_hdmi.o&lt;/P&gt;&lt;P class=""&gt;+obj-$(CONFIG_FB_MXC_HDMI)&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;+= mxc_hdmi.o libfw.a&lt;/P&gt;&lt;P class=""&gt;(i.e. it adds at the end of line libfw.a)&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;I see this message during compilation&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;scripts/Makefile.build:298: target 'drivers/video/fbdev/mxc/libfw.a' doesn't match the target pattern&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;Building modules, stage 2.&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;MODPOST 274 modules&lt;/P&gt;&lt;P class=""&gt;ERROR: "kill_firmware" [drivers/video/fbdev/mxc/mxc_hdmi.ko] undefined!&lt;/P&gt;&lt;P class=""&gt;ERROR: "get_firmware" [drivers/video/fbdev/mxc/mxc_hdmi.ko] undefined!&lt;/P&gt;&lt;P class=""&gt;scripts/Makefile.modpost:91: recipe for target '__modpost' failed&lt;/P&gt;&lt;P class=""&gt;make[1]: *** [__modpost] Error 1&lt;/P&gt;&lt;P class=""&gt;Makefile:1205: recipe for target 'modules' failed&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;I uploaded the file with the library to a common directory in which both modified files are located, i.e. Makefile and driver mxc_hdmi.c.&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;Unfortunately, I don't know if I have placed the libfw.a file correctly :(. I know that if I delete this file, I get a message that it can't find the library file at all (so it's probably ok here)&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;Can the libfw.a library not work because it is compiled for another linux version ??&lt;/P&gt;&lt;P class=""&gt;But for the same architecture. Even on the same processor.&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;Please help. :) Because I got stuck working on this problem and unfortunately&lt;/P&gt;&lt;P class=""&gt;I don't know what to do next.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2019 10:02:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Compile-kernel-module-with-static-library-a-problem/m-p/957632#M143071</guid>
      <dc:creator>forum1</dc:creator>
      <dc:date>2019-10-23T10:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Compile kernel module with static library (.a) problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Compile-kernel-module-with-static-library-a-problem/m-p/957633#M143072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Karol,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparently the library per the fail ERROR: "kill_firmware" [drivers/video/fbdev/mxc/mxc_hdmi.ko] undefined!&lt;/P&gt;&lt;P&gt;the library was installed in another Linux version, or even another board, and can not be compatible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2019 16:22:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Compile-kernel-module-with-static-library-a-problem/m-p/957633#M143072</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2019-10-29T16:22:11Z</dc:date>
    </item>
  </channel>
</rss>

