summaryrefslogtreecommitdiffstats
path: root/meta-agl-bsp/meta-rcar-gen3
diff options
context:
space:
mode:
authorMartin Kelly <mkelly@xevo.com>2017-03-21 10:45:12 -0700
committerMartin Kelly <mkelly@xevo.com>2017-03-21 10:45:12 -0700
commit4cbd74eaa4a242a7e967a696ca2dcd10e60f03fd (patch)
treee48bc1b998522511fff70c46c395faab096bf7ea /meta-agl-bsp/meta-rcar-gen3
parent7843a158d60831d338eb738eba98ced7b02caef9 (diff)
meta-rcar-3 setup: slight refactoring
Change-Id: I9c4ba041ede07252c69452dfa747b90b36346fba Signed-off-by: Martin Kelly <mkelly@xevo.com>
Diffstat (limited to 'meta-agl-bsp/meta-rcar-gen3')
-rw-r--r--meta-agl-bsp/meta-rcar-gen3/scripts/setup_mm_packages.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/meta-agl-bsp/meta-rcar-gen3/scripts/setup_mm_packages.sh b/meta-agl-bsp/meta-rcar-gen3/scripts/setup_mm_packages.sh
index 50d48cd6a..99b012f7f 100644
--- a/meta-agl-bsp/meta-rcar-gen3/scripts/setup_mm_packages.sh
+++ b/meta-agl-bsp/meta-rcar-gen3/scripts/setup_mm_packages.sh
@@ -7,13 +7,14 @@ COPY_SCRIPT="$METADIR/meta-renesas-rcar-gen3/meta-rcar-gen3/docs/sample/copyscri
test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
DOWNLOAD_DIR=${XDG_DOWNLOAD_DIR:-$HOME/Downloads}
+EXTRACT_DIR=$METADIR/binary-tmp
function copy_mm_packages() {
- if [ ! -d $METADIR/binary-tmp ]; then
+ if [ ! -d $EXTRACT_DIR ]; then
if [ -f $DOWNLOAD_DIR/$ZIP_1 -a -f $DOWNLOAD_DIR/$ZIP_2 ]; then
- mkdir $METADIR/binary-tmp
- unzip -o $DOWNLOAD_DIR/$ZIP_1 -d $METADIR/binary-tmp
- unzip -o $DOWNLOAD_DIR/$ZIP_2 -d $METADIR/binary-tmp
+ mkdir $EXTRACT_DIR
+ unzip -o $DOWNLOAD_DIR/$ZIP_1 -d $EXTRACT_DIR
+ unzip -o $DOWNLOAD_DIR/$ZIP_2 -d $EXTRACT_DIR
else
echo -n "The graphics and multimedia acceleration packages for "
echo -e "the R-Car Gen3 board can be downloaded from:"
@@ -30,7 +31,7 @@ function copy_mm_packages() {
if [ -f $COPY_SCRIPT ]; then
cd $METADIR/meta-renesas-rcar-gen3/
- $COPY_SCRIPT -d -f $METADIR/binary-tmp
+ $COPY_SCRIPT -d -f $EXTRACT_DIR
cd ..
else
echo "scripts to copy drivers for Gen3 not found."