aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>2021-10-01 00:38:30 +0900
committerNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>2021-11-10 00:00:25 +0900
commit4385a749c986deb27e804d9f2e128327eb3befcb (patch)
treecd403671045975121acad4ec8509fff641169850
parentbf237f5675e8f0c7604074cff800f722a1f07ffc (diff)
Divide firmware from gles-user-module
The powervr firmware is including in gles-user-module in R-Car Gen3. Typical container integration, gles-user-module only to installing in guest, powervr kernel module only to installing in host. In this case, powerver firemware is only to installing in guest, but it is required by powervr kernel module. This patch divide powervr firmware from gles-user-module, creating new package gles-user-module-firmware. In addition, this patch add runtime dependency of that firmware package to powervr kernel module. Bug-AGL: SPEC-4130 Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp> Change-Id: Ie8751bd618d076c9617870c367dacb3a9fdf1e7b
-rw-r--r--meta-agl-lxc/dynamic-layers/meta-rcar-gen3/recipes-graphics/gles-module/gles-user-module.bbappend21
-rw-r--r--meta-agl-lxc/dynamic-layers/meta-rcar-gen3/recipes-kernel/kernel-module-gles/kernel-module-gles.bbappend1
2 files changed, 22 insertions, 0 deletions
diff --git a/meta-agl-lxc/dynamic-layers/meta-rcar-gen3/recipes-graphics/gles-module/gles-user-module.bbappend b/meta-agl-lxc/dynamic-layers/meta-rcar-gen3/recipes-graphics/gles-module/gles-user-module.bbappend
index c942f687..f853a22b 100644
--- a/meta-agl-lxc/dynamic-layers/meta-rcar-gen3/recipes-graphics/gles-module/gles-user-module.bbappend
+++ b/meta-agl-lxc/dynamic-layers/meta-rcar-gen3/recipes-graphics/gles-module/gles-user-module.bbappend
@@ -1 +1,22 @@
RDEPENDS:${PN}:remove:aglcontainerguest = "kernel-module-gles"
+
+PACKAGES:prepend = "\
+ ${PN}-firmware \
+"
+
+FILES:${PN} = " \
+ ${libdir}/* \
+ ${sysconfdir}/* \
+ ${RENESAS_DATADIR}/bin/dlcsrv_REL \
+"
+SYSTEMD_SERVICE:${PN} = ""
+
+FILES:${PN}-firmware = " \
+ ${systemd_system_unitdir}/* \
+ ${sysconfdir}/udev/* \
+ /lib/firmware/* \
+ ${exec_prefix}/bin/pvrinit \
+"
+SYSTEMD_SERVICE:${PN}-firmware = "rc.pvr.service"
+SYSTEMD_PACKAGES = "${PN}-firmware"
+SYSTEMD_AUTO_ENABLE = "enable"
diff --git a/meta-agl-lxc/dynamic-layers/meta-rcar-gen3/recipes-kernel/kernel-module-gles/kernel-module-gles.bbappend b/meta-agl-lxc/dynamic-layers/meta-rcar-gen3/recipes-kernel/kernel-module-gles/kernel-module-gles.bbappend
new file mode 100644
index 00000000..d0a6a502
--- /dev/null
+++ b/meta-agl-lxc/dynamic-layers/meta-rcar-gen3/recipes-kernel/kernel-module-gles/kernel-module-gles.bbappend
@@ -0,0 +1 @@
+RDEPENDS:${PN}:append = " gles-user-module-firmware"