X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=recipes-kernel%2Fmocca-usb%2Fmocca-usb.bb;h=034585f14f54151a1c13e741a44e66d550336bdb;hb=af4a22aeda5e5dfede3dd3f1a65165ccb5632ce0;hp=6f4e5861ca9d91f9250b61892c5fda207f734f48;hpb=6511c88c7e2a515441d22bd583b1386b104b93b5;p=AGL%2Fmeta-agl-demo.git diff --git a/recipes-kernel/mocca-usb/mocca-usb.bb b/recipes-kernel/mocca-usb/mocca-usb.bb index 6f4e5861c..034585f14 100644 --- a/recipes-kernel/mocca-usb/mocca-usb.bb +++ b/recipes-kernel/mocca-usb/mocca-usb.bb @@ -12,3 +12,11 @@ SRCREV = "02ba272c0eb51b06160307b6cb71f91684772c8c" # The inherit of module.bbclass will automatically name module packages with # "kernel-module-" prefix as required by the oe-core build environment. + +do_install_append () { + # modprobe automatically at boot + if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then + install -d ${D}${sysconfdir}/modules-load.d + echo "mocca_usb" > ${D}${sysconfdir}/modules-load.d/mocca_usb.conf + fi +}