From 5c19b20245e6bf564c94de641af1881e4f2505d0 Mon Sep 17 00:00:00 2001 From: Pierre Marzin Date: Tue, 28 May 2019 17:41:19 +0200 Subject: ebisu: Update setup fragment to copy binaries Use copy_proprietary_softwares.sh script to manage the zip binaries pasted into "$METADIR/binary-tmp". Bug-AGL: SPEC-2564 Change-Id: I256d1200e03ab9a9482e29d7f42016f99c7ba16c Signed-off-by: Pierre Marzin --- templates/machine/ebisu/50_setup.sh | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'templates') diff --git a/templates/machine/ebisu/50_setup.sh b/templates/machine/ebisu/50_setup.sh index abd2a33af..0267e1279 100644 --- a/templates/machine/ebisu/50_setup.sh +++ b/templates/machine/ebisu/50_setup.sh @@ -1,10 +1,22 @@ # 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 +COPY_SCRIPT="$METADIR/bsp/meta-renesas-rcar-gen3/meta-rcar-gen3/docs/sample/copyscript/copy_proprietary_softwares.sh" +EXTRACT_DIR=$METADIR/binary-tmp + +if [ ! -d $EXTRACT_DIR ]; then + echo "ERROR: $EXTRACT_DIR does not exist." && exit 1 +else + [ -z "$(ls -A $EXTRACT_DIR)" ] && echo "ERROR: $EXTRACT_DIR is empty." && exit 1 +fi + +if [ -f $COPY_SCRIPT ]; then + cd $METADIR/bsp/meta-renesas-rcar-gen3/ + $COPY_SCRIPT $EXTRACT_DIR + cd .. +else + echo "Script to copy Renesas proprietary drivers for $MACHINE not found." + exit 1 fi popd 2>/dev/null -- cgit 1.2.3-korg