Filter results by

SDK Generation from Tizen RT Source Code

The SDKs used by the ARTIK IDE are created from Tizen RT source code and made available to the IDE through the Package Manager. You can create your own custom SDK that can be brought in through Package Manager in the same way, using the tizenrt-system-config.py program.

You might use this program with a new release or alternative branch of the Tizen RT you cloned from GitHub as shown here, for example. Alternatively, you can just use it with an SDK already loaded to the ARTIK IDE to make a custom configuration (the modules included for build).

Prerequisites

You'll first need to install a few dependencies. Use this command.

sudo apt-get install libncurses5-dev

General Usage

Before using this SDK tool, you will typically set up a Linux Development Environment as described in the Advanced Concepts and get comfortable using the kconfig customization tool.

Once you are ready, you use the command line to generate the SDK. There are two forms:

tizenrt-system-config.py -s SOURCE -e IDE [options] to generate a new SDK

tizenrt-system-config.py -p SDK_PATH [options] to add a custom configuration to an existing SDK

where:
SOURCE is the path of the Tizen RT source code
IDE is the path of the ARTIK IDE
SDK_PATH is the path of the existing SDK

and options are:
-b or --nconfig is the new configuration name (default: 'custom')
-t is the toolchain path (needed if not already in PATH)
-d or --description is a descriptive phrase for the configuration
-v or --nsdk is the new SDK name, not used if -p is specified (default: 'custom')
-a or --arch is the architecture of the board (default: A053)
-c or --sconfig is the start configuration (default: 'typical').

Creating New SDK

You create a new SDK from Tizen RT source code by configuring and building it, then choosing it for a project. Pull up the MQTT Example article for a good companion procedure to try out.

Configure and build the SDK

Follow these steps.

  1. Go to the directory containing the tool.
    cd ~/ARTIK/tools/external-system-config

  2. Run
    tizenrt-system-config.py -s SOURCE -e IDE [options]
    to start the program, which will launch the kconfig tool. For example, if you installed your IDE under ARTIK:

    1
     ./tizenrt-system-config.py -s ~/ARTIK/SDK/A053/v1.2/source/tinyara -e ~/ARTIK

    If you wanted to additionally specify a description for the user:

    1
     ./tizenrt-system-config.py -s ~/ARTIK/SDK/A053/v1.2/source/tinyara -e ~/ARTIK -d "this is a new SDK created by the command line tool"
  3. Make changes to the configuration as described in the Kconfig tools article.

  4. Save your changes to the default .config file as always, then exit.

  5. Wait for the program to build the new SDK.

Select Created SDK

Once you have created or updated an SDK, it will be available when starting a new project.

The image below shows an added SDK in the selector. The name defaults to 'custom' unless you changed it using the -b option when running tizenrt-system-config.py.

Be sure you restart the ARTIK IDE to see any added SDKs.

Creating New Configuration in Existing SDK

To simply bring a new configuration into the existing SDK, the procedure is similar to that above, except that you'll use a different form of the command line:

tizenrt-system-config.py -p SDK_PATH [options]

For example:

./tizenrt-system-config.py -p ~/ARTIK/SDK/A053/v1.2 


Last updated on: