Skip to content

Commit d7e1d8c

Browse files
committed
Dedup downloads
1 parent dfac795 commit d7e1d8c

File tree

2 files changed

+16
-19
lines changed
  • integrations/docker/images

2 files changed

+16
-19
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
118 : [Tizen] Add arm64 target - Docker part
1+
120 : [Tizen] Add arm64 target - Docker part

integrations/docker/images/stage-2/chip-build-tizen/tizen-sdk-installer/install.sh

+15-18
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,21 @@ function install_tizen_sdk_common() {
162162
'new-native-cli_2.5.64_ubuntu-64.zip'
163163
'sdb_4.2.23_ubuntu-64.zip')
164164
download "$URL" "${PKG_ARR[@]}"
165+
166+
# Base sysroot
167+
# Different versions of Tizen have different rootstrap versions
168+
URL="http://download.tizen.org/sdk/tizenstudio/official/binary/"
169+
PKG_ARR=(
170+
"tizen-$TIZEN_VERSION-core-add-ons_*_ubuntu-64.zip")
171+
download "$URL" "${PKG_ARR[@]}"
172+
173+
# Tizen Developer Platform Certificate
174+
URL="http://download.tizen.org/sdk/extensions/Tizen_IoT_Headless/binary/"
175+
# Tizen site does not have this package available in version 8.0.
176+
# Certificates are the same for 7.0 and 8.0, though.
177+
PKG_ARR=(
178+
"7.0-iot-things-add-ons_*_ubuntu-64.zip")
179+
download "$URL" "${PKG_ARR[@]}"
165180
}
166181

167182
# Function for installing Tizen SDK (arm).
@@ -186,7 +201,6 @@ function install_tizen_sdk_arm() {
186201
# Different versions of Tizen have different rootstrap versions
187202
URL="http://download.tizen.org/sdk/tizenstudio/official/binary/"
188203
PKG_ARR=(
189-
"tizen-$TIZEN_VERSION-core-add-ons_*_ubuntu-64.zip"
190204
"tizen-$TIZEN_VERSION-rs-device.core_*_ubuntu-64.zip")
191205
download "$URL" "${PKG_ARR[@]}"
192206

@@ -255,14 +269,6 @@ function install_tizen_sdk_arm() {
255269
PKG_ARR=()
256270
download "$URL" "${PKG_ARR[@]}"
257271

258-
# Tizen Developer Platform Certificate
259-
URL="http://download.tizen.org/sdk/extensions/Tizen_IoT_Headless/binary/"
260-
# Tizen site does not have this package available in version 8.0.
261-
# Certificates are the same for 7.0 and 8.0, though.
262-
PKG_ARR=(
263-
"7.0-iot-things-add-ons_*_ubuntu-64.zip")
264-
download "$URL" "${PKG_ARR[@]}"
265-
266272
# Install all
267273
info "Installing Tizen SDK..."
268274

@@ -303,7 +309,6 @@ function install_tizen_sdk_arm64() {
303309
# Different versions of Tizen have different rootstrap versions
304310
URL="http://download.tizen.org/sdk/tizenstudio/official/binary/"
305311
PKG_ARR=(
306-
"tizen-$TIZEN_VERSION-core-add-ons_*_ubuntu-64.zip"
307312
"tizen-$TIZEN_VERSION-rs-device64.core_*_ubuntu-64.zip")
308313
download "$URL" "${PKG_ARR[@]}"
309314

@@ -373,14 +378,6 @@ function install_tizen_sdk_arm64() {
373378
PKG_ARR=()
374379
download "$URL" "${PKG_ARR[@]}"
375380

376-
# Tizen Developer Platform Certificate
377-
URL="http://download.tizen.org/sdk/extensions/Tizen_IoT_Headless/binary/"
378-
# Tizen site does not have this package available in version 8.0.
379-
# Certificates are the same for 7.0 and 8.0, though.
380-
PKG_ARR=(
381-
"7.0-iot-things-add-ons_*_ubuntu-64.zip")
382-
download "$URL" "${PKG_ARR[@]}"
383-
384381
# Install all
385382
info "Installing Tizen SDK..."
386383

0 commit comments

Comments
 (0)