Nikhil,

This is the wrong place to do it. If rpmsg_kdrv_switch is in-tree module, then 
simply add this to the kernel recipe:

KERNEL_MODULE_AUTOLOAD_append_j7-evm = " rpmsg_kdrv_switch"

-- 
Denys


On Wed, Nov 20, 2019 at 04:43:43PM +0530, Nikhil Devshatwar wrote:
> rpmsg_kdrv_switch kernel module is needed for the cpsw9g virtual net
> driver. Since there is no symbol dependency, rpmsg_kdrv_switch
> does not get loaded automatically.
> 
> Add branding file override for j7-evm to autoload this module.
> 
> Signed-off-by: Nikhil Devshatwar <[email protected]>
> ---
> Fixes: LCPD-17113
> 
>  meta-arago-distro/conf/distro/include/branding-core.inc | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/meta-arago-distro/conf/distro/include/branding-core.inc 
> b/meta-arago-distro/conf/distro/include/branding-core.inc
> index cab9831..c70f8d1 100644
> --- a/meta-arago-distro/conf/distro/include/branding-core.inc
> +++ b/meta-arago-distro/conf/distro/include/branding-core.inc
> @@ -11,3 +11,8 @@ ALTERNATIVE_PRIORITY_pn-opencl-monitor-ipu = "1"
>  
>  # Raise priority for sample IPC FW images
>  ALTERNATIVE_PRIORITY_pn-ti-ipc-rtos = "15"
> +
> +# Autoload the kernel module
> +KERNEL_MODULE_AUTOLOAD_EXTRAS = ""
> +KERNEL_MODULE_AUTOLOAD_EXTRAS_j7-evm += "rpmsg_kdrv_switch"
> +KERNEL_MODULE_AUTOLOAD += "${KERNEL_MODULE_AUTOLOAD_EXTRAS}"
> -- 
> 1.9.1
> 
> _______________________________________________
> meta-arago mailing list
> [email protected]
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to