summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-agl-bsp/meta-rcar-gen3/recipes-core/packagegroups/packagegroup-agl-core-multimedia.bbappend5
-rw-r--r--meta-agl-bsp/meta-rcar-gen3/scripts/setup_mm_packages.sh40
-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
5 files changed, 104 insertions, 0 deletions
diff --git a/meta-agl-bsp/meta-rcar-gen3/recipes-core/packagegroups/packagegroup-agl-core-multimedia.bbappend b/meta-agl-bsp/meta-rcar-gen3/recipes-core/packagegroups/packagegroup-agl-core-multimedia.bbappend
new file mode 100644
index 000000000..6d9415d33
--- /dev/null
+++ b/meta-agl-bsp/meta-rcar-gen3/recipes-core/packagegroups/packagegroup-agl-core-multimedia.bbappend
@@ -0,0 +1,5 @@
+RDEPENDS_${PN} += "\
+ ${@bb.utils.contains('MACHINE_FEATURES','multimedia','packagegroup-multimedia-kernel-modules','',d)} \
+ ${@bb.utils.contains('MACHINE_FEATURES','multimedia','packagegroup-multimedia-libs','',d)} \
+ ${@bb.utils.contains('MACHINE_FEATURES','multimedia','packagegroup-gstreamer1.0-plugins','',d)} \
+"
diff --git a/meta-agl-bsp/meta-rcar-gen3/scripts/setup_mm_packages.sh b/meta-agl-bsp/meta-rcar-gen3/scripts/setup_mm_packages.sh
new file mode 100644
index 000000000..83ccd5097
--- /dev/null
+++ b/meta-agl-bsp/meta-rcar-gen3/scripts/setup_mm_packages.sh
@@ -0,0 +1,40 @@
+#!/bin/bash
+
+ZIP_1="R-Car_Gen3_Series_Evaluation_Software_Package_for_Linux-20160906.zip"
+ZIP_2="R-Car_Gen3_Series_Evaluation_Software_Package_of_Linux_Drivers-20160906.zip"
+
+COPY_SCRIPT="$METADIR/meta-rcar/meta-rcar-gen3/docs/sample/copyscript/copy_evaproprietary_softwares.sh"
+
+test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
+DOWNLOAD_DIR=${XDG_DOWNLOAD_DIR:-$HOME/Downloads}
+
+function copy_mm_packages() {
+ if [ ! -d $METADIR/binary-tmp ]; then
+ if [ -f $DOWNLOAD_DIR/$ZIP_1 -a -f $DOWNLOAD_DIR/$ZIP_2 ]; then
+ mkdir $METADIR/binary-tmp
+ cd $METADIR/binary-tmp
+ unzip -o $DOWNLOAD_DIR/$ZIP_1
+ unzip -o $DOWNLOAD_DIR/$ZIP_2
+ cd -
+ else
+ echo -n "The graphics and multimedia acceleration packages for "
+ echo -e "the R-Car Gen3 board can be download from :"
+ echo -e " <http://www.renesas.com/secret/r_car_download/rcar_demoboard.jsp>"
+ echo -e
+ echo -n "These 2 files from there should be store in your"
+ echo -e "'$DOWNLOAD_DIR' directory."
+ echo -e " $ZIP_1"
+ echo -e " $ZIP_2"
+ return 1
+ fi
+ fi
+
+ if [ -f $COPY_SCRIPT ]; then
+ cd $METADIR/meta-rcar/
+ $COPY_SCRIPT -d -f $METADIR/binary-tmp
+ cd ..
+ else
+ echo "scripts to copy drivers for Gen3 not found."
+ return 1
+ fi
+}
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