-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tizen] vscode and development container fix (#18939)
* Fix environment variables order * Add missing dependencies for tizen-sdk. * Configure tizen-sdk in vscode container * Generate author certificate and security profile manually. * Remove automatic certificate generation and security profiles with hardcoded passwords from docker images. * Describe building the Tizen lighting-app app with the author certificate and security profile generation process. * Update the Tizen lighting app description * describe regeneration of author certificates
- Loading branch information
Showing
5 changed files
with
95 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,80 @@ | ||
# CHIP Tizen Lighting Example | ||
|
||
## Building binary | ||
|
||
Activating environment | ||
|
||
```sh | ||
source ./scripts/activate.sh | ||
``` | ||
|
||
Generating tizen-arm-light | ||
|
||
```sh | ||
gn gen --check \ | ||
--fail-on-unused-args \ | ||
--export-compile-commands \ | ||
--root=$PW_PROJECT_ROOT/examples/lighting-app/tizen \ | ||
"--args=target_os=\"tizen\" target_cpu=\"arm\" tizen_sdk_root=\"$TIZEN_SDK_ROOT\" sysroot=\"$TIZEN_SDK_SYSROOT\"" \ | ||
$PW_PROJECT_ROOT/out/tizen-arm-light | ||
``` | ||
|
||
Building tizen-arm-light | ||
|
||
```sh | ||
ninja -C $PW_PROJECT_ROOT/out/tizen-arm-light | ||
``` | ||
|
||
## Preparing Tizen SDK certificate | ||
|
||
For packaging the Tizen APP, there is a need to generate an author certificate | ||
and security profile using the commands described below. Change password and | ||
author data as needed. | ||
|
||
```sh | ||
$TIZEN_SDK_ROOT/tools/ide/bin/tizen certificate \ | ||
--alias=CHIP \ | ||
--name=CHIP \ | ||
[email protected] \ | ||
--password=chiptizen | ||
|
||
$TIZEN_SDK_ROOT/tools/ide/bin/tizen security-profiles add \ | ||
--active \ | ||
--name=CHIP \ | ||
--author=$HOME/tizen-sdk-data/keystore/author/author.p12 \ | ||
--password=chiptizen | ||
``` | ||
|
||
This is only _one-time action_. To regenerate the author certificate and | ||
security profile, you have to remove files from the `$HOME` directory using | ||
specified commands: | ||
|
||
```sh | ||
rm -r \ | ||
$HOME/tizen-sdk-data \ | ||
$HOME/.tizen-cli-config \ | ||
$HOME/.secretsdb | ||
``` | ||
|
||
After that, normally call scripts to generate the author certificate and | ||
security profile mentioned previously. | ||
|
||
### Important | ||
|
||
Regenerating the author certificate and security profile makes it necessary to | ||
remove the previously installed Tizen app. You can't reinstall an application on | ||
the Tizen device with a different certificate. | ||
|
||
```sh | ||
pkgcmd -u -n org.tizen.matter.example.lighting | ||
``` | ||
|
||
## Packaging APP | ||
|
||
```sh | ||
ninja -C $PW_PROJECT_ROOT/out/tizen-arm-light chip-lighting-app:tpk | ||
``` | ||
|
||
## Installing TPK | ||
|
||
Upload TPK package to device under test (DUT). Install it with `pkgcmd` as | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,13 +147,3 @@ RUN set -x \ | |
# Switch to the non-root user | ||
USER $USER_NAME | ||
WORKDIR $USER_HOME | ||
|
||
# ------------------------------------------------------------------------------ | ||
# Setup tizen studio CLI | ||
RUN set -x \ | ||
# Generate author certificate | ||
&& tizen certificate --alias=CHIP --name=CHIP [email protected] --password=chiptizen \ | ||
# Add new security profile | ||
&& tizen security-profiles add --active --name=CHIP --author=$HOME/tizen-sdk-data/keystore/author/author.p12 --password=chiptizen \ | ||
# Cleanup | ||
&& : # last line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.5.77 Version bump reason: Update nRF Connect SDK version. | ||
0.5.78 Version bump reason: [Tizen] Fix environment variable order, add missing tizen dependencies |