summaryrefslogtreecommitdiff
path: root/tsp/scripts
diff options
context:
space:
mode:
authorAleksander Mistewicz <a.mistewicz@samsung.com>2016-11-07 10:07:16 (GMT)
committerAleksander Mistewicz <a.mistewicz@samsung.com>2017-01-16 10:07:49 (GMT)
commit359f78aa48584394cb9283c49e11bee62871db60 (patch)
treecff178d87b660cdb5659a4f614883307d49fe7f5 /tsp/scripts
parenta3f9e0af3ca9c7e54a9b2d52e83522c382428434 (diff)
downloadmajor-359f78aa48584394cb9283c49e11bee62871db60.zip
major-359f78aa48584394cb9283c49e11bee62871db60.tar.gz
major-359f78aa48584394cb9283c49e11bee62871db60.tar.bz2
Make TITS profile independentrefs/changes/27/108727/3
Overall TITS adjustments Change-Id: I8a9b1255a122efa50a8275a558c0bc01174ad4fa Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
Diffstat (limited to 'tsp/scripts')
-rwxr-xr-xtsp/scripts/common_prep_flash_conf.sh19
-rwxr-xr-xtsp/scripts/free_diskspace.sh13
2 files changed, 16 insertions, 16 deletions
diff --git a/tsp/scripts/common_prep_flash_conf.sh b/tsp/scripts/common_prep_flash_conf.sh
index 48ddbed..1eca9b4 100755
--- a/tsp/scripts/common_prep_flash_conf.sh
+++ b/tsp/scripts/common_prep_flash_conf.sh
@@ -26,20 +26,23 @@ cd "${WORKDIR_REMOTE}" || exit
ACTUAL_TARGET="${TARGET#headless-}"
case "$TARGET" in
*odroid*)
- BOOT_IMG="$(pwd)/$(ls tizen-common_*-boot-*odroid*.tar.gz)"
- USR_IMG="$(pwd)/$(ls tizen-common_*-wayland-*odroid*.tar.gz)"
+ BOOT_IMG="$(pwd)/$(ls tizen-*-boot-*odroid*.tar.gz)"
+ USR_IMG="$(pwd)/$(ls tizen-*-wayland-*odroid*.tar.gz)"
;;
*artik*)
- BOOT_IMG="$(pwd)/$(ls tizen-common_*-boot-*artik*.tar.gz)"
- USR_IMG="$(pwd)/$(ls tizen-common_*-3parts-*artik*.tar.gz)"
+ BOOT_IMG="$(pwd)/$(ls tizen-*-boot-*artik*.tar.gz)"
+ USR_IMG="$(pwd)/$(ls tizen-*-3parts-*artik*.tar.gz)"
;;
*minnow*)
- USR_IMG="$(pwd)/$(ls tizen-common_*_common-*-sda.raw.bz2)"
- USR_IMG_BMAP="$(pwd)/$(ls tizen-common_*_common-*-sda.bmap)"
+ USR_IMG="$(pwd)/$(ls tizen-*.raw.bz2)"
+ USR_IMG_BMAP="$(pwd)/$(ls tizen-*.bmap)"
;;
*mbr64*)
- USR_IMG="$(pwd)/$(ls tizen-common_*-minimal-mbr-*.tar.gz)"
- KERNEL="$(pwd)/$(ls tizen-common_*-minimal-mbr-*-vmlinuz-*)"
+ USR_IMG="$(pwd)/$(ls tizen-*-minimal-mbr-x86_64.tar.gz)"
+ KERNEL="$(pwd)/$(ls *-vmlinuz-*)"
+ ;;
+ *)
+ die "Unrecognized target"
;;
esac
diff --git a/tsp/scripts/free_diskspace.sh b/tsp/scripts/free_diskspace.sh
index 9adf7d6..d497092 100755
--- a/tsp/scripts/free_diskspace.sh
+++ b/tsp/scripts/free_diskspace.sh
@@ -25,16 +25,13 @@ export TSP_DIR="$(CDPATH='' cd -- "$(dirname -- "$0")" && pwd -P)/.."
for i in $(find "${WS_DOWNLOAD}" -maxdepth 1 -mindepth 1 -type d -mtime +1)
do
- DIFF_FILE="$(ls "$i"/diff-*.report)"
- if [ -z "${DIFF_FILE}" ]
- then
- echo "Missing diff-*.report in: " "$i"
- else
- if grep -q "Snapshot" "${DIFF_FILE}"
+ for diff_file in $(find "$i" -type f -name diff.report)
+ do
+ if grep -q "Snapshot" "${diff_file}"
then
echo "Snapshot, skipping:" "$i"
continue
fi
- fi
- rm -vr "$i"
+ rm -vr "$(dirname "${diff_file}")"
+ done
done