summaryrefslogtreecommitdiffstats
path: root/templates/machine/porter/50_setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'templates/machine/porter/50_setup.sh')
-rw-r--r--templates/machine/porter/50_setup.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/machine/porter/50_setup.sh b/templates/machine/porter/50_setup.sh
new file mode 100644
index 000000000..f51d4f4f5
--- /dev/null
+++ b/templates/machine/porter/50_setup.sh
@@ -0,0 +1,14 @@
+# setup proprietary gfx drivers and multimedia packages
+pushd $METADIR 2>/dev/null
+
+SETUP_MM_SCRIPT=$METADIR/meta-renesas/meta-rcar-gen2/scripts/setup_mm_packages.sh
+if [ -f $SETUP_MM_SCRIPT ]; then
+ . $SETUP_MM_SCRIPT $MACHINE
+ copy_mm_packages $MACHINE
+ if [ $? -ne 0 ]; then
+ echo "Copying gfx drivers and multimedia packages for '$MACHINE' failed."
+ exit 1
+ fi
+fi
+
+popd 2>/dev/null