meta-rcar-gen3/setup_mm_packages.sh: always clean workdir 84/21684/2
authorStephane Desneux <stephane.desneux@iot.bzh>
Thu, 20 Jun 2019 07:41:04 +0000 (07:41 +0000)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 20 Jun 2019 10:54:39 +0000 (10:54 +0000)
commita80c2f8e53139940c1e412364f058fea679ee7d2
tree4c97b9a861d62fa430457533f7dda7a074a00c79
parent7e6f5bb94352ac0b6cd5c5cdd3035eec6c6bc559
meta-rcar-gen3/setup_mm_packages.sh: always clean workdir

The script setup_mm_packages.sh setups a temp dir to extract proprietary
drivers for Renesas BSP, but it's not re-entrant: the temp dir is not cleaned
after execution.

With the introduction of the change 9bc6c25 (hotfix for GFX issues), more cleanup
is needed to avoid duplicate zips detection in the copy script located in
meta-rcar-gen3/docs/sample/copyscript/copy_evaproprietary_softwares.sh

This change makes some initial cleanup in the workdir (in case of transition
from a previous script without this patch) and also removes the workdir at the end

Bug-AGL: SPEC-2253, SPEC-2480

Change-Id: Ia95f9045d8a695d550a061710a17676088a92c0a
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
meta-agl-bsp/meta-rcar-gen3/scripts/setup_mm_packages.sh