IIP Attributes
Each IIP has a number of attributes:
- Name - The name of the IIP.
- Content version - The version of
the IIP's content (such as binaries, application,
boot loader).
-
Architecture - The hardware
architecture the IIP is intended for.
- Version - The build version of the
IIP.
- Branch - The branch which the IIP was
built on.
-
Date - The date when the IIP was built.
-
Time - The time when the IIP was built.
- Dependencies - Specifies what other IIPs
are required for this IIP to work.
- Description - An XML file describing
the IIP and its parameters.
- Installation scripts - One or more
scripts used to install the IIP in a boot image at buildtime.
- Data - Files used by the installation
script(s).
Name
All IIP names shall follow the following structure:
<product or vendor>-<type>[-<what>]
Additionally, you will find the version and architecture
as a part of the IIP file name. For information on that
see the IIP Naming chapter.
Product or vendor
If an IIP is created by ARRIS, you will see the word kreatv here,
i.e. the name of the software stack. Put vendor, middleware or company name
here if the IIP is not created by ARRIS. This part may consist of lower-case
letters and numbers only.
Type
The <type> part may only consist of lower-case letters
and numbers.
kreatv-app-xyz - Holds a C++ application running on top of
TOI/C++.
kreatv-common-xyz - Typically contains files (typically a
library) used by several binaries packaged in different IIPs. These
IIPs would be of DependencyOnly type and is not part of
boot image configuration file.
kreatv-finalize-xyz -
See Finalizers chapter of IIP building page.
kreatv-font-xyz - Includes one or several fonts.
kreatv-hal - Holds KreaTV Hardware Abstraction Layer related
stuff.
kreatv-localportal-xyz - Holds an HTML or SVG application running
in a browser on top of TOI/JS.
kreatv-option-xyz - Adding/enabling/disabling configuring
functionality is done using option IIPs. Examples are AAC audio,
adaptive video mode and DLNA.
kreatv-platform - The default core KreaTV platform services are
packaged in this IIP.
kreatv-tool-xyz - Low-level system tools used in deployment and
tools used during development. Examples are logging, process logging,
command line SQLite program.
What
The <what> part may consist of lower-case
letters, numbers and "-".
Examples
kreatv-app-webkit: Webkit browser application.
kreatv-option-usb: USB support as an option.
Content version
The version of the IIP's content (such as application, binaries, boot loader).
Content version attribute is specified with
iip_build option
--content_version.
Version
The build version can have the following formats:
General KreaTV release version
format:
<major>.<minor>[.<flavor>][.<candidate>]
You will see this version if release is built upon a general KreaTV
release. <major> and <minor> are rather
self explanatory. The <flavor> is a string describing
the flavor of this major.minor release. It may be the name of a
release. <candidate> lists a release candidate number.
Development drop version format:
<branch>.<revision>
A development drop
IIP may have this version format. Specified is software branch name
and KreaTV repository revision.
Custom format:Version format can be the result of an
agreement with a customer or partner.
Examples
- 4.3: Release 4.3.
- 4.3.turtle.5: Release candidate 5 of 4.3 with flavor turtle.
- trunk.205123: Revision 205123 of branch trunk.
- Meatball.1.2: Customer release Meatball with version 1.2.
Version attribute is specified with
iip_build option
--version.
Branch
The build branch is a string containing the name of the branch from
which the IIP is built. It is used for debug purposes only.
Branch attribute is specified with
iip_build option
--branch.
Date
The build date is a string. It is used for debug purposes only. The
format of the string is:
YYYYMMDD (%Y%m%d in Linux date command
format)
Date attribute is specified with
iip_build option
--date.
Time
The build time is a string. It is used for debug purposes only. The
format of the string is:
hhmmss (%H%M%S in Linux date command
format)
Time attribute is specified with
iip_build option
--time.
Architecture
The architecture specifies which KreaTV STBs the IIP is intended
for.
Architecture consists of:
Each architecture field specifies the target of the IIP even more. For
instance, if the architecture string is empty, then the IIP can be used on any
KreaTV STB hardware or software. Example of such an IIP would be one containing
only configuration files.
Toolchain and device are further explained in the
architecture section.
Architecture is specified with
iip_build options
--toolchain and --device.
Dependencies
Sometimes the content of one IIP requires that a different IIP is also
installed. In this case, we say that the IIP depends upon another IIP. This
dependency information is used when building boot images. At build time,
when installing an IIP to a boot image,
the build_boot_image
script will make sure that all the IIPs this current IIP depends upon are
also installed.
Since the IIPs which are depended upon are added automatically, they do
not have to be explicitly mentioned in the configuration. The order of
installing the IIPs is set by the assigned dependency type. Depended-upon
IIPs using the default dependency type (rootdisk) are installed before the
IIP that depends on them.
Dependency types
| Type |
Description |
| rootdisk |
A rootdisk dependency sets up the correct environment for the IIP.
That means the depended-upon IIP is installed before the IIP at buildtime. |
| finalize |
A finalize dependency can be specified in order to install a
finalizer IIP after all other
IIPs at build time.
No guarantees are given that the finalizers
are installed in a specific order, only that they are installed after
all normal IIPs at buildtime.
|
The build_boot_image
command makes sure that the IIPs are installed in the correct order if the
dependencies are correct. All dependency types are by default fulfilled when
building a boot image. Note that circular dependencies are strictly forbidden:
they will cause the KreaTV IP-STB to fail.
Dependencies are specified with
iip_build option
--depends.
Description
The description of an IIP is XML file with a textual description of the
purpose of the IIP and also a definition of all available parameters to the
IIP. All possible IIP parameters must be documented (unless AllowAnyParameters
is specified).
XML elements in an IIP description file
| Element |
Valid values |
Required |
Description |
| Description |
Any string (possibly containing escaped HTML text) |
Yes |
Description of the IIP. |
| Deprecated |
Any string (possibly containing escaped HTML text) |
No |
Specifies whether this IIP is deprecated. This will
trigger a warning when building a boot image.
|
| Parameter |
See the table below |
No |
An optional parameter to the IIP. |
| DependencyOnly |
|
No |
Prevents the IIP from appearing in the boot image
configuration file. The presence of this element is meaningful
for IIPs that do not make sense to use on their own, but only in
some larger context.
Examples:
- An IIP which installs a (non-plugin) shared object. In
this case, any IIP which installs a binary which links
against the shared object will depend on said IIP.
- An IIP which provides documentation for some feature. In
this case, the IIP providing the feature will depend on the
IIP documenting the feature.
Notes:
- If DependencyOnly is present, the IIP can only be
configured if it inherits parameters from some other IIP
(using the Inherit element).
- DependencyOnly and Explicit are mutually exclusive.
|
| Explicit |
|
No |
Add this element to indicate that this IIP must be included
in the boot image configuration file if needed in a boot
image. Other IIPs may still depend on an Explicit IIP. Including
such an IIP in the build without including the Explicit IIP in
the boot image config leads to a boot image build error. This
element encourages the boot image builder to read the
documentation of the Explicit IIP to understand how it shall be
configured.
Explicit and DependencyOnly are mutually exclusive.
|
| AllowAnyParameters |
|
No |
Add this element to indicate that any parameters can be specified for the
IIP. If not present (i.e. by default), only parameters described in the
Parameter elements are allowed for this IIP. Usage of AllowAnyParameters
is not recommended since less consistency checks will be performed.
|
| Inherit |
|
No |
Add this element to specify the name of an IIP from which this
IIP inherits parameters during build of a boot image. See
the How to solve
changing graphics stack example on when you would want to do
this. The name must be specified using the "iip" attribute.
|
It is possible to include other XML files with a special @include
comment syntax (see the example below).
Example
<IipInterface>
<Description>
Description goes here. <![CDATA[<b>Note</b>: If you want to
include HTML markup in any of the Description or Example fields, you must
quote it, preferably using the
<a href="http://en.wikipedia.org/wiki/CDATA">CDATA</a> construction.]]>
</Description>
<Deprecated>Please use kreatv-xxx instead.</Deprecated>
<Inherit iip="kreatv-app-portal"/>
<Parameter>
<Name>paramname</Name>
<Description>
Parameter description goes here.
</Description>
<Repeat>Once</Repeat>
<StringType/>
<Default>somedefaultvalue</Default>
<Example>paramname=thefileorvalueorwhateveryouwant</Example>
<Deprecated>Some description</Deprecated>
<Deprecated alias="otherparam=somevalue"/>
<Deprecated value="deprvalue1"/>
<Deprecated value="deprvalue2" alias="paramname=bettervalue"/>
</Parameter>
<DependencyOnly/>
<AllowAnyParameters/>
</IipInterface>
Description data is built into the IIP with
iip_build option
--description.
Installation
Each IIP can contain one or more installation scripts used to install the
IIP under different circumstances. The different types of installation scripts
included in an IIP define its possible usage.
Installation types
| Type |
Description |
| buildtime |
Used to install an IIP into a rootdisk at build time
(i.e. when building the rootdisk/boot
image). The build_boot_image
script, which combines IIPs into a rootdisk and a boot image, allows
parameters to be sent to the installation script. These parameters
can e.g. be used to install different parts of the IIP or to
configure the installed parts. |
| kit |
Used to install an IIP into a KreaTV SDK. This type is only
used internally at ARRIS. |
You can write your own scripts if preferred. There are a number of
predefined installation scripts available for the most common tasks of
IIP installation:
Buildtime installation scripts
IIP buildtime installation scripts.
| Name |
Parameters |
Description |
| copy_data_to_rootdisk |
- |
Used for simple IIPs that only need to copy some files into
the rootdisk.
Copies the data to the rootdisk. This means that the data
needs to have the same directory structure as the rootdisk.
|
| install_app_in_rootdisk |
start |
prop(<name>)=<value> |
prop(<name>)-
|
Used for application registration packages.
Copies the data to the rootdisk. Registers the application in
the Application Service.
The prop(<name>)- parameters are used to remove default
property values. Note that any values you set using
prop(<name>)=<value> will also be removed.
If extra installation is needed, it is possible to add a
script named extra/install to the data directory. Parameters not
handled by install_app_in_rootdisk will be passed on to the
extra installation script.
More information regarding the parameters can be found in the
table
below.
|
These are the parameters that can be given to the install-app-in-rootdisk
script:
install-app-in-rootdisk script parameters
| Parameter |
Description |
| start |
|
prop(<name>)=<value> |
The prop(<name>)=<value> parameters
can be used to set/add properties in the application property
file supplied to the Application Service. Note that any default
value for a property (in the property file included in the
registration package) will be replaced when using this
parameter.
|
| prop(<name>)- |
The prop(<name>)- parameters are used to remove default
property values. Note that any values you set using
prop(<name>)=<value> will also be removed.
|
Installation scripts are built into the IIP with
iip_build option
--install.
Data
The data is a number of files which the installation script can use
to install the IIP in a rootdisk. It can copy the files, use them as
data source or as extra scripts to apply on the rootdisk.
The layout of the data depends on its intended usage:
All files shall be copied into a rootdisk
In this case it is easiest to use the same layout in the data dir
as in the rootdisk. You can then use the copy_data_to_rootdisk
installation script which will copy the data into the rootdisk at
build time.
Only some files shall be copied to the rootdisk
In some cases it it easier to make an IIP installing only some
of its files depending on the IIP parameters used. A typical example
is the kreatv-font-file IIP which installs one or more font files.
In this case you can use any layout of the data directory that you
desire and let the installation script install it in the correct place
in the rootdisk. You must write your own installation script to
make this work.
Only modify the rootdisk
Some IIPs only modify the rootdisk. A typical example is the
kreatv-tool-logging IIP which creates a file in the
/etc directory based on the parameters given to the IIP.
In this case it is not necessary to have a data directory (it would be
empty) so don't create one.
Data directory is specified with
iip_build option
--data_dir.