diff options
author | Ronan Le Martret <ronan.lemartret@iot.bzh> | 2022-08-05 16:32:48 +0200 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2022-08-05 21:17:16 +0000 |
commit | 3ff972228b08c37adf41b760c2bbc5313b90715f (patch) | |
tree | eedc8e6de9c5f0e125db239ceb36c88000590322 /meta-agl-bsp/meta-rcar-gen3/recipes-kernel/kernel-module-vspmif/kernel-module-vspm-if.bbappend | |
parent | 7079b76052ce902c6b55c8cc169554c49aefb4e4 (diff) |
[RCAR] Update kernel-module-vspm-if recipice name
* The last update of RCAR BSP has change the recipes name of the recipes kernel-module-vspm-if.
meta-agl must be updated too.
Bug-AGL: SPEC-4517
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
Change-Id: I02f978c2ddca7e5a2d12e25145ea1cfad1be0a25
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/27868
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'meta-agl-bsp/meta-rcar-gen3/recipes-kernel/kernel-module-vspmif/kernel-module-vspm-if.bbappend')
-rw-r--r-- | meta-agl-bsp/meta-rcar-gen3/recipes-kernel/kernel-module-vspmif/kernel-module-vspm-if.bbappend | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta-agl-bsp/meta-rcar-gen3/recipes-kernel/kernel-module-vspmif/kernel-module-vspm-if.bbappend b/meta-agl-bsp/meta-rcar-gen3/recipes-kernel/kernel-module-vspmif/kernel-module-vspm-if.bbappend new file mode 100644 index 000000000..a0c4d94c2 --- /dev/null +++ b/meta-agl-bsp/meta-rcar-gen3/recipes-kernel/kernel-module-vspmif/kernel-module-vspm-if.bbappend @@ -0,0 +1,27 @@ +KERNEL_MODULE_AUTOLOAD:append = " vspm_if" +KERNEL_MODULE_PACKAGE_SUFFIX = "" + +do_install:append() { + # Work around upstream not using ${nonarch_base_libdir}/modules + if ${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', 'true', 'false', d)}; then + install -d ${D}${nonarch_base_libdir}/ + mv ${D}/lib/modules ${D}${nonarch_base_libdir}/ + rm -rf ${D}/lib + fi + + # Add a rule to ensure the 'display' user has permission to access + install -d ${D}${sysconfdir}/udev/rules.d + cat >${D}${sysconfdir}/udev/rules.d/56-vspm_if.rules <<'EOF' +KERNEL=="vspm_if", MODE="0660", GROUP="display" +EOF +} + +# Required to guarantee the module goes into the expected +# kernel-module-vspmif package and doesn't end up packaged in +# kernel-module-vspm-if by the default behavior. Can be removed if +# upstream correctly use ${nonarch_base_libdir} themselves. +FILES:${PN} += "${nonarch_base_libdir}/modules/${KERNEL_VERSION}/extra/vspm_if.ko" + +FILES:${PN}:append = " \ + ${sysconfdir}/udev/rules.d/*.rules \ +" |