[yocto] Kernel driver installs broken in poky2.3

Valluri, Amarnath amarnath.valluri at intel.com
Fri Oct 6 01:12:12 PDT 2017


Hi Jeff,

Sorry to hear about the failure,

The change was part of adding merged /usr support for oecore. 'INSTALL_MOD_PATH' was using '/lib/modules/${KERNEL_VERSION}' as kernel modules path, where as in merged /usr environments it would  be '/usr/lib/modules/${KERNEL_VERSION}'., And there is no way to fix this by using INSTALL_MOD_PATH, So I had to use MODLIB by replacing hardcoded '/lib' with appropriate bitbake variable .ie., ${nonarch_base_libdir}.


- Amarnath


On Thu, 2017-10-05 at 20:34 +0000, Jeff.Glanz at dell.com wrote:

Re: poky2.3 kernel driver install’s



Poky release, pyro (2.3), file: meta/classes/module.bbclass

This change, made in January 2017, is breaking  do_install's for our kernel drivers, as INSTALL_MOD_PATH is not defined.  Our Makefiles reference this variable.

What was the purpose of this particular change?



diff:

commit 0decf1cc1c35dd70f3b822e3b4291a810a319ba0

Author: Amarnath Valluri <amarnath.valluri at intel.com>

Date:   Wed Jan 4 13:58:23 2017 +0200



    kernel: use ${nonarch_base_libdir} for kernel modules installation.



    Replace hardcoded '/lib' in kernel modules installation path with

    ${nonarch_base_libdir}, which is meant exactly for this.



    (From OE-Core rev: 22f5ba7154fcbe826d0a3283740903312b2aab46)



    Signed-off-by: Amarnath Valluri <amarnath.valluri at intel.com>

    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

. . .

diff --git a/meta/classes/module.bbclass b/meta/classes/module.bbclass

index 99b7ebc..802476b 100644

--- a/meta/classes/module.bbclass

+++ b/meta/classes/module.bbclass

@@ -31,7 +31,7 @@ module_do_compile() {



module_do_install() {

    unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS

-   oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" \

+ oe_runmake DEPMOD=echo MODLIB="${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}" \

Thanks!

Jeff Glanz
Senior Dev Prin Engineer, SCM & Release Engineering
Dell EMC | Server Solutions
Jeff.Glanz at dell.com<mailto:Jeff.Glanz at dell.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20171006/54b42456/attachment.html>


More information about the yocto mailing list