summaryrefslogtreecommitdiffstats
path: root/meta-agl-bsp
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2019-11-14 14:29:21 +0100
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2019-11-19 16:18:58 +0000
commit5f35f1a98cdd755969c64cd865b1248fdce4570b (patch)
tree9d15ea68563b78c1615dc952110d3111e57d73c6 /meta-agl-bsp
parent17f39c1c47187d579bc00288ef062f5951fa396d (diff)
bsp/rcar-gen3: Avoid reinstall of drivers
When the ZIP files are already copied, it avoids to reinstall the proprietary drivers. This change is intended to facilitate workflows were aglsetup is sparsely/rarely used. Change-Id: I25275473d52ee7c811fdcaa50871bc1d385e868d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'meta-agl-bsp')
-rw-r--r--meta-agl-bsp/meta-rcar-gen3/scripts/setup_mm_packages.sh13
1 files changed, 11 insertions, 2 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 29d88257c..2fc3d9f1b 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
@@ -39,8 +39,17 @@ function log() {
}
function copy_mm_packages() {
- # first clean up workdir
- [[ -d $EXTRACT_DIR ]] && rm -r $EXTRACT_DIR
+ # first clean up workdir on need
+ if [ -d $EXTRACT_DIR ]; then
+ if [ -f $EXTRACT_DIR/$ZIP_1 -a -f $EXTRACT_DIR/$ZIP_2 ]; then
+ log "The graphics and multimedia acceleration packages for R-Car Gen3 look already installed."
+ log "To force their reinstallation, please, remove manually the directory:"
+ log " $EXTRACT_DIR"
+ log
+ return 0
+ fi
+ rm -r $EXTRACT_DIR
+ fi
if [ -f $DOWNLOAD_DIR/$ZIP_1 -a -f $DOWNLOAD_DIR/$ZIP_2 ]; then
mkdir -p $EXTRACT_DIR