1 # setup proprietary gfx drivers and multimedia packages
2 pushd $METADIR 2>/dev/null
4 COPY_SCRIPT="$METADIR/bsp/meta-renesas-rcar-gen3/meta-rcar-gen3/docs/sample/copyscript/copy_proprietary_softwares.sh"
5 EXTRACT_DIR=$METADIR/binary-tmp
6 #EBISU_BIN_PATH should contain the path where the .zip archive of E3 binaries is.
7 #CUSTOM_RENESAS_CONFIG_SCRIPT should contain the custom script needed for setup. If not filled, do not failed, just warn.
9 # Check the ebisu binaries path
10 if [[ ! -d $EBISU_BIN_PATH ]] || [[ $EBISU_BIN_PATH == "" ]]; then
11 echo "ERROR: E3 Binary path not valid."
12 echo "HELP: Export the path where the E3 Binaries ZIP file is into 'EBISU_BIN_PATH' then launch the setup again."
13 echo "HELP: Example: '$ export EBISU_BIN_PATH=`pwd`/ebisu_binaries'"
16 [ -z "$(ls -A $EBISU_BIN_PATH)" ] && echo "ERROR: $EBISU_BIN_PATH is empty. Add the E3 Binaries ZIP file inside and try again." && exit 1
19 if [ -f $COPY_SCRIPT ]; then
20 # Extract the ZIP into the tmp directory
22 for PROPRIETARY_BIN in `ls -1 $EBISU_BIN_PATH/*.zip`
24 unzip -q -o $PROPRIETARY_BIN -d $EXTRACT_DIR
27 cd $METADIR/bsp/meta-renesas-rcar-gen3/
28 $COPY_SCRIPT $EXTRACT_DIR
34 echo "ERROR: Script to copy Renesas proprietary drivers for $MACHINE not found. No additionnal setup to do."
38 if [[ ! -z $CUSTOM_RENESAS_CONFIG_SCRIPT ]] && [[ -f $CUSTOM_RENESAS_CONFIG_SCRIPT ]]; then
39 echo "Launching Renesas custom setup script ($CUSTOM_RENESAS_CONFIG_SCRIPT)..."
40 $CUSTOM_RENESAS_CONFIG_SCRIPT
42 echo "WARNING: Renesas custom setup script for $MACHINE not found."