aboutsummaryrefslogtreecommitdiffstats
path: root/templates/machine/m3ulcb
diff options
context:
space:
mode:
authorYannick Gicquel <yannick.gicquel@iot.bzh>2016-11-21 14:12:21 +0100
committerYannick Gicquel <yannick.gicquel@iot.bzh>2016-11-21 14:14:42 +0100
commit6d66150b353ae2b14b093d8cec29785916154746 (patch)
tree72a3d768803aae907f38ef01015686d959bbd894 /templates/machine/m3ulcb
parentd68b2906870f459c1ef1dcbcc5be7e0643f3a656 (diff)
meta-rcar-gen3: add template with hw acceleration
this introduce gen3 support with egl & multimedia acceleration. Change-Id: Id816c6ae85e2877a1af9203ef893e1db12db5afc Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh>
Diffstat (limited to 'templates/machine/m3ulcb')
-rw-r--r--templates/machine/m3ulcb/50_bblayers.conf.inc3
-rw-r--r--templates/machine/m3ulcb/50_local.conf.inc46
-rw-r--r--templates/machine/m3ulcb/50_setup.sh10
3 files changed, 59 insertions, 0 deletions
diff --git a/templates/machine/m3ulcb/50_bblayers.conf.inc b/templates/machine/m3ulcb/50_bblayers.conf.inc
new file mode 100644
index 000000000..f797e9753
--- /dev/null
+++ b/templates/machine/m3ulcb/50_bblayers.conf.inc
@@ -0,0 +1,3 @@
+BBLAYERS =+ "\
+ ${METADIR}/meta-rcar/meta-rcar-gen3 \
+ "
diff --git a/templates/machine/m3ulcb/50_local.conf.inc b/templates/machine/m3ulcb/50_local.conf.inc
new file mode 100644
index 000000000..c4f96e7dd
--- /dev/null
+++ b/templates/machine/m3ulcb/50_local.conf.inc
@@ -0,0 +1,46 @@
+MACHINE = "m3ulcb"
+SOC_FAMILY = "r8a7796"
+
+# for Wayland/Weston weston-laucher
+DISTRO_FEATURES_append = " pam"
+
+# Enable Gfx Pkgs
+MACHINE_FEATURES_append = " gsx"
+MULTI_PROVIDER_WHITELIST += "virtual/libgl virtual/egl virtual/libgles1 virtual/libgles2"
+
+# for Wayland/Weston
+PREFERRED_PROVIDER_virtual/libgles1 = ""
+PREFERRED_PROVIDER_virtual/libgles2 = "gles-user-module"
+PREFERRED_PROVIDER_virtual/egl = "gles-user-module"
+PREFERRED_PROVIDER_virtual/libgl = ""
+PREFERRED_PROVIDER_virtual/mesa = ""
+PREFERRED_PROVIDER_libgbm = "libgbm"
+PREFERRED_PROVIDER_libgbm-dev = "libgbm"
+
+# Mask the gstreamer recipe for MMP
+BBMASK = "meta-renesas/meta-rcar-gen3/recipes-multimedia/gstreamer"
+
+# Add for gstreamer plugins ugly
+LICENSE_FLAGS_WHITELIST = "commercial"
+
+PREFERRED_VERSION_gstreamer1.0-libav = "1.4.5"
+PREFERRED_VERSION_gstreamer1.0-plugins-base = "1.4.5"
+PREFERRED_VERSION_gstreamer1.0-plugins-bad = "1.4.5"
+PREFERRED_VERSION_gstreamer1.0-plugins-good = "1.4.5"
+PREFERRED_VERSION_gstreamer1.0-plugins-ugly = "1.4.5"
+PREFERRED_VERSION_gstreamer1.0-plugins-vspfilter = "1.0%"
+
+MACHINE_FEATURES_append = " multimedia"
+
+DISTRO_FEATURES_append = " use_eva_pkg"
+
+#DISTRO_FEATURES_append = " h265dec_lib mpeg2dec_lib"
+DISTRO_FEATURES_append = " h264dec_lib aaclcdec_lib aaclcdec_mdw"
+
+DISTRO_FEATURES_BACKFILL_remove = "gobject-introspection-data"
+
+IMAGE_INSTALL_append_rcar-gen3 = " \
+ kernel-module-pvrsrvkm \
+ omx-user-module \
+ weston-bin \
+"
diff --git a/templates/machine/m3ulcb/50_setup.sh b/templates/machine/m3ulcb/50_setup.sh
new file mode 100644
index 000000000..abd2a33af
--- /dev/null
+++ b/templates/machine/m3ulcb/50_setup.sh
@@ -0,0 +1,10 @@
+# setup proprietary gfx drivers and multimedia packages
+pushd $METADIR 2>/dev/null
+
+SETUP_MM_SCRIPT=$METADIR/meta-agl/meta-agl-bsp/meta-rcar-gen3/scripts/setup_mm_packages.sh
+if [ -f $SETUP_MM_SCRIPT ]; then
+ . $SETUP_MM_SCRIPT
+ copy_mm_packages
+fi
+
+popd 2>/dev/null