Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Finally, I got it. Thanks to shodanex for putting me on the right track.</p> <p><strong><em>Update:</em></strong> Be very careful when applying this fix to builds for older versions of kernel, as there is a bug in <strong>Makefile.modpost</strong> file in older versions of the kernel which makes your build misbehave and build wrong targets when you specify <strong>KBUILD_EXTMOD</strong> option. </p> <p>You have to specify the paths to the source of the modules you depend on in <strong>KBUILD_EXTMOD</strong> make parameter.</p> <p>Say, you have a module <strong>foo</strong> that depends on symbols from module <strong>bar</strong>.</p> <p>Source files for <strong>foo</strong> are in <strong>foo/module/</strong> and source files for bar are in <strong>bar/module/</strong></p> <p>The make command in <strong>Makefile</strong> for <strong>foo</strong> probably looks like </p> <pre><code>make ARCH=$$ARCH CROSS_COMPILE=$$CROSS_COMPILE -C $$LINUX_DIR \ M=`pwd`/module \ modules </code></pre> <p>(the exact line may differ in your project).</p> <p>Change it to </p> <pre><code>make ARCH=$$ARCH CROSS_COMPILE=$$CROSS_COMPILE -C $$LINUX_DIR \ M=`pwd`/module \ KBUILD_EXTMOD=`pwd`/../bar/module \ modules </code></pre> <p>(we added the KBUILD_EXTMOD=<code>pwd</code>/../bar/module \ line, where <code>pwd</code>/../bar/module is a path to sources of kernel module we depend on.</p> <p>One would expect <strong>KBUILD_EXTRA_SYMBOLS</strong> parameter to work this way, however it's <strong>KBUILD_EXTMOD</strong>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload