X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=templates%2Fmachine%2Febisu%2F50_setup.sh;h=502c22755e0ca9eb881f8a7e794bd7163cbfc8f4;hb=2fe60ed6b40ae96e43d1edd9c3da978dc6e8db0c;hp=9002f96bba8a5fcce9b38f50921df15c0e536111;hpb=99e140275e93c642e167833ea4c6b60ba219a76c;p=AGL%2Fmeta-agl.git diff --git a/templates/machine/ebisu/50_setup.sh b/templates/machine/ebisu/50_setup.sh index 9002f96bb..502c22755 100644 --- a/templates/machine/ebisu/50_setup.sh +++ b/templates/machine/ebisu/50_setup.sh @@ -4,6 +4,7 @@ pushd $METADIR 2>/dev/null COPY_SCRIPT="$METADIR/bsp/meta-renesas-rcar-gen3/meta-rcar-gen3/docs/sample/copyscript/copy_proprietary_softwares.sh" EXTRACT_DIR=$METADIR/binary-tmp #EBISU_BIN_PATH should contain the path where the .zip archive of E3 binaries is. +#CUSTOM_RENESAS_CONFIG_SCRIPT should contain the custom script needed for setup. If not filled, do not failed, just warn. # Check the ebisu binaries path if [[ ! -d $EBISU_BIN_PATH ]] || [[ $EBISU_BIN_PATH == "" ]]; then @@ -18,20 +19,27 @@ fi if [ -f $COPY_SCRIPT ]; then # Extract the ZIP into the tmp directory mkdir -p $EXTRACT_DIR - unzip -q -o $EBISU_BIN_PATH/*.zip -d $EXTRACT_DIR + for PROPRIETARY_BIN in `ls -1 $EBISU_BIN_PATH/*.zip` + do + unzip -q -o $PROPRIETARY_BIN -d $EXTRACT_DIR + done cd $METADIR/bsp/meta-renesas-rcar-gen3/ $COPY_SCRIPT $EXTRACT_DIR cd .. - #Fix libpvrWAYLAND_WSEGL.so - #TODO - - #Clean temp dir + # Clean temp dir rm -r $EXTRACT_DIR else - echo "ERROR: Script to copy Renesas proprietary drivers for $MACHINE not found." + echo "ERROR: Script to copy Renesas proprietary drivers for $MACHINE not found. No additionnal setup to do." exit 1 fi +if [[ ! -z $CUSTOM_RENESAS_CONFIG_SCRIPT ]] && [[ -f $CUSTOM_RENESAS_CONFIG_SCRIPT ]]; then + echo "Launching Renesas custom setup script ($CUSTOM_RENESAS_CONFIG_SCRIPT)..." + $CUSTOM_RENESAS_CONFIG_SCRIPT +else + echo "WARNING: Renesas custom setup script for $MACHINE not found." +fi + popd 2>/dev/null