@@ -171,15 +171,24 @@ function install_tizen_sdk_common() {
171
171
PKG_ARR=(
172
172
" 7.0-iot-things-add-ons_*_ubuntu-64.zip" )
173
173
download " $URL " " ${PKG_ARR[@]} "
174
+
175
+ info " Installing Tizen Studio CLI..."
176
+
177
+ unzip -o ' *.zip'
178
+ cp -rf data/* " $TIZEN_SDK_ROOT "
179
+
180
+ # Cleanup
181
+ rm -rf -- *
182
+
174
183
}
175
184
176
185
# Function for installing Tizen SDK (arm).
177
186
function install_tizen_sdk_arm() {
178
187
179
- TIZEN_SDK_SYSROOT =" $TIZEN_SDK_ROOT /platforms/tizen-$TIZEN_VERSION /tizen/rootstraps/tizen-$TIZEN_VERSION -device.core"
188
+ SYSROOT =" $TIZEN_SDK_ROOT /platforms/tizen-$TIZEN_VERSION /tizen/rootstraps/tizen-$TIZEN_VERSION -device.core"
180
189
181
190
# Get toolchain
182
- info " Downloading Tizen toolchain..."
191
+ info " Downloading Tizen ARM toolchain..."
183
192
184
193
# Download
185
194
URL=" http://download.tizen.org/sdk/tizenstudio/official/binary/"
@@ -189,7 +198,7 @@ function install_tizen_sdk_arm() {
189
198
download " $URL " " ${PKG_ARR[@]} "
190
199
191
200
# Get Tizen sysroot
192
- info " Downloading Tizen sysroot..."
201
+ info " Downloading Tizen ARM sysroot..."
193
202
194
203
# Base sysroot
195
204
# Different versions of Tizen have different rootstrap versions
@@ -218,7 +227,7 @@ function install_tizen_sdk_arm() {
218
227
# Unified packages
219
228
URL=" http://download.tizen.org/releases/milestone/TIZEN/Tizen-$TIZEN_VERSION /Tizen-$TIZEN_VERSION -Unified/latest/repos/standard/packages/armv7l/"
220
229
PKG_ARR=(
221
- ' app-core-common-*.rpm'
230
+ ' app-core-common-*.armv7l. rpm'
222
231
' aul-0*.armv7l.rpm'
223
232
' aul-devel-*.armv7l.rpm'
224
233
' bluetooth-frwk-0*.armv7l.rpm'
@@ -263,31 +272,34 @@ function install_tizen_sdk_arm() {
263
272
PKG_ARR=()
264
273
download " $URL " " ${PKG_ARR[@]} "
265
274
266
- # Install all
267
- info " Installing Tizen SDK..."
275
+ info " Installing Tizen ARM SDK..."
268
276
269
277
unzip -o ' *.zip'
270
278
cp -rf data/* " $TIZEN_SDK_ROOT "
271
279
272
280
unrpm * .rpm
273
- cp -rf lib usr " $TIZEN_SDK_SYSROOT "
281
+ cp -rf lib usr " $SYSROOT "
274
282
275
283
# Make symbolic links relative
276
- find " $TIZEN_SDK_SYSROOT /usr/lib" -maxdepth 1 -type l | while IFS= read -r LNK; do
284
+ find " $SYSROOT /usr/lib" -maxdepth 1 -type l | while IFS= read -r LNK; do
277
285
ln -sf " $( basename " $( readlink " $LNK " ) " ) " " $LNK "
278
286
done
279
287
280
- ln -sf ../../lib/libcap.so.2 " $TIZEN_SDK_SYSROOT /usr/lib/libcap.so"
281
- ln -sf openssl3.pc " $TIZEN_SDK_SYSROOT /usr/lib/pkgconfig/openssl.pc"
288
+ ln -sf ../../lib/libcap.so.2 " $SYSROOT /usr/lib/libcap.so"
289
+ ln -sf openssl3.pc " $SYSROOT /usr/lib/pkgconfig/openssl.pc"
290
+
291
+ # Cleanup
292
+ rm -rf -- *
293
+
282
294
}
283
295
284
296
# Function for installing Tizen SDK (arm64).
285
297
function install_tizen_sdk_arm64() {
286
298
287
- TIZEN_SDK_SYSROOT =" $TIZEN_SDK_ROOT /platforms/tizen-$TIZEN_VERSION /tizen/rootstraps/tizen-$TIZEN_VERSION -device64.core"
299
+ SYSROOT =" $TIZEN_SDK_ROOT /platforms/tizen-$TIZEN_VERSION /tizen/rootstraps/tizen-$TIZEN_VERSION -device64.core"
288
300
289
301
# Get toolchain
290
- info " Downloading Tizen toolchain..."
302
+ info " Downloading Tizen ARM64 toolchain..."
291
303
292
304
# Download
293
305
URL=" http://download.tizen.org/sdk/tizenstudio/official/binary/"
@@ -297,7 +309,7 @@ function install_tizen_sdk_arm64() {
297
309
download " $URL " " ${PKG_ARR[@]} "
298
310
299
311
# Get Tizen sysroot
300
- info " Downloading Tizen sysroot..."
312
+ info " Downloading Tizen ARM64 sysroot..."
301
313
302
314
# Base sysroot
303
315
# Different versions of Tizen have different rootstrap versions
@@ -326,7 +338,7 @@ function install_tizen_sdk_arm64() {
326
338
# Unified packages
327
339
URL=" http://download.tizen.org/releases/milestone/TIZEN/Tizen-$TIZEN_VERSION /Tizen-$TIZEN_VERSION -Unified/latest/repos/standard/packages/aarch64/"
328
340
PKG_ARR=(
329
- ' app-core-common-*.rpm'
341
+ ' app-core-common-*.aarch64. rpm'
330
342
' aul-0*.aarch64.rpm'
331
343
' aul-devel-*.aarch64.rpm'
332
344
' bluetooth-frwk-0*.aarch64.rpm'
@@ -372,25 +384,31 @@ function install_tizen_sdk_arm64() {
372
384
PKG_ARR=()
373
385
download " $URL " " ${PKG_ARR[@]} "
374
386
375
- # Install all
376
- info " Installing Tizen SDK..."
387
+ info " Installing Tizen ARM64 SDK..."
377
388
378
389
unzip -o ' *.zip'
379
390
cp -rf data/* " $TIZEN_SDK_ROOT "
380
391
392
+ info " Installing Tizen ARM64 sysroot..."
393
+
381
394
unrpm * .rpm
382
- cp -rf lib64 usr " $TIZEN_SDK_SYSROOT "
395
+ cp -rf lib64 usr " $SYSROOT "
383
396
384
397
# Make symbolic links relative
385
- find " $TIZEN_SDK_SYSROOT /usr/lib64" -maxdepth 1 -type l | while IFS= read -r LNK; do
398
+ find " $SYSROOT /usr/lib64" -maxdepth 1 -type l | while IFS= read -r LNK; do
386
399
ln -sf " $( basename " $( readlink " $LNK " ) " ) " " $LNK "
387
400
done
388
401
389
- ln -sf ../../lib64/libcap.so.2 " $TIZEN_SDK_SYSROOT /usr/lib64/libcap.so"
390
- ln -sf openssl3.pc " $TIZEN_SDK_SYSROOT /usr/lib64/pkgconfig/openssl.pc"
402
+ ln -sf ../../lib64/libcap.so.2 " $SYSROOT /usr/lib64/libcap.so"
403
+ ln -sf openssl3.pc " $SYSROOT /usr/lib64/pkgconfig/openssl.pc"
404
+
405
+ # Cleanup
406
+ rm -rf -- *
407
+
391
408
}
392
409
393
410
function install_tizen_sdk_finalize() {
411
+
394
412
# Install secret tool or not
395
413
if (" $SECRET_TOOL " ); then
396
414
info " Overriding secret tool..."
0 commit comments