summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Mistewicz <a.mistewicz@samsung.com>2018-05-21 10:54:42 +0200
committerAleksander Mistewicz <a.mistewicz@samsung.com>2018-06-11 14:45:40 +0200
commit2cd3676f8b6098e1392d9995efff7bdf2b95876e (patch)
tree6daec4dabdb369f160c1cf82b970811eb9702c74
parent623d339e80a3b486ab5135db096b9c86348ab42f (diff)
downloadmajor-2cd3676f8b6098e1392d9995efff7bdf2b95876e.tar.gz
major-2cd3676f8b6098e1392d9995efff7bdf2b95876e.tar.bz2
major-2cd3676f8b6098e1392d9995efff7bdf2b95876e.zip
Use last working boot image for rpi3
Change-Id: Ia59e35e29c4e2ad02feabd1e1f67d9d2802fc51d
-rwxr-xr-xtsp/jobs/common_prep_flash_conf.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/tsp/jobs/common_prep_flash_conf.sh b/tsp/jobs/common_prep_flash_conf.sh
index dc6e8a4..e8d9614 100755
--- a/tsp/jobs/common_prep_flash_conf.sh
+++ b/tsp/jobs/common_prep_flash_conf.sh
@@ -41,7 +41,14 @@ update_db "${SR}" "Testing" "$BUILD_NR" "$TARGET"
USR_IMG_DIR="$(get_userspace_dir "${TARGET}" "${DWN_WORKDIR}")"
case "$TARGET" in
- *odroid*|*artik*|*rpi3*)
+ *rpi3*)
+ BOOT_IMG="$(ls "$(get_boot_dir "${TARGET}" "${DWN_WORKDIR}")"/*.tar.gz)"
+ test -f "${BOOT_IMG}" || BOOT_IMG="${HOME}/tizen-unified_20180313.2_iot-boot-arm64-rpi3.tar.gz"
+ USERSPACE_IMG="$(ls "${USR_IMG_DIR}"/*.tar.gz)"
+ test -f "${USERSPACE_IMG}" || USERSPACE_IMG="$(ls "$(get_userspace_dir "${TARGET}" "$(sr2reference_dwn "$SR" "$PROFILE")")"/*.tar.gz)"
+ test -f "${USERSPACE_IMG}" || USERSPACE_IMG="$(ls "$(get_userspace_dir "${TARGET}" "${SNAPSHOT_WS_DOWNLOAD}-${PROFILE}")"/*.tar.gz)"
+ ;;
+ *odroid*|*artik*)
BOOT_IMG="$(ls "$(get_boot_dir "${TARGET}" "${DWN_WORKDIR}")"/*.tar.gz)"
test -f "${BOOT_IMG}" || BOOT_IMG="$(ls "$(get_boot_dir "${TARGET}" "$(sr2reference_dwn "$SR" "$PROFILE")")"/*.tar.gz)"
test -f "${BOOT_IMG}" || BOOT_IMG="$(ls "$(get_boot_dir "${TARGET}" "${SNAPSHOT_WS_DOWNLOAD}-${PROFILE}")"/*.tar.gz)"