[yocto] How to configure multi-lines under kernel_module_<modname> variables?

Khem Raj raj.khem at gmail.com
Fri Aug 11 09:37:06 PDT 2017


On Fri, Aug 11, 2017 at 6:29 AM, Koehler, Yannick
<yannick.koehler at hpe.com> wrote:
> I would like to have the following content under my modname.conf.  It appears that the module_conf_<modname> is a single-line variable, and I am trying using \n to add a newline character but that doesn't appear to be working.
>
>         module_conf_modname :=  "options modname op1=0\n"
>         module_conf_modname_append = "install modname /sbin/modprobe 2ndmodname; /sbin/modprobe -ignore-install modname $CMDLINE_OPTS"
>
> Result in the following file content
>
>         options modname opt1=0\ninstall modname /sbin/modprobe 2ndmodname; /sbin/modprobe -ignore-install modname $CMDLINE_OPTS
>
> Expected
>
>         options modname opt1=0
>         install modname /sbin/modprobe 2ndmodname; /sbin/modprobe -ignore-install modname $CMDLINE_OPTS
>
> Any help appreciated.

May be you can approach the problem differently, and express the
module dependencies such that
you dont need to do custom install of modules from another module conf.

>
> --
> Yannick Koehler
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



More information about the yocto mailing list