summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorPierre Marzin <pierre.marzin@iot.bzh>2019-07-12 11:27:52 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2019-07-23 21:21:56 +0000
commitda5cd08767ef694dfd4251743f16dd59b85e495b (patch)
treec84bcff0ff675f6fdad1715ab19125e44651c9be /templates
parent99e140275e93c642e167833ea4c6b60ba219a76c (diff)
ebisu: Add the support of a custom setup script
Used to customise a setup to add specific stuff. Bug-AGL: SPEC-2564 Change-Id: I8d18d026aaeb7c35a53164ea2f1a62f510ad4217 Signed-off-by: Pierre Marzin <pierre.marzin@iot.bzh>
Diffstat (limited to 'templates')
-rw-r--r--templates/machine/ebisu/50_setup.sh15
1 files changed, 10 insertions, 5 deletions
diff --git a/templates/machine/ebisu/50_setup.sh b/templates/machine/ebisu/50_setup.sh
index 9002f96bb..c8471ae07 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
@@ -24,14 +25,18 @@ if [ -f $COPY_SCRIPT ]; then
$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