Divide firmware from gles-user-module 38/26838/2
authorNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Thu, 30 Sep 2021 15:38:30 +0000 (00:38 +0900)
committerNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Tue, 9 Nov 2021 15:00:25 +0000 (00:00 +0900)
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

meta-agl-lxc/dynamic-layers/meta-rcar-gen3/recipes-graphics/gles-module/gles-user-module.bbappend
meta-agl-lxc/dynamic-layers/meta-rcar-gen3/recipes-kernel/kernel-module-gles/kernel-module-gles.bbappend [new file with mode: 0644]

index c942f68..f853a22 100644 (file)
@@ -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 (file)
index 0000000..d0a6a50
--- /dev/null
@@ -0,0 +1 @@
+RDEPENDS:${PN}:append = " gles-user-module-firmware"