To build a solution image, the following is required:
init.yaml
by default), and files containing a description of the solution security policy (security.psl
by default).When building with CMake
, an EDL description can be generated by using the generate_edl_file()
command.
CMake
, the nk_build_edl_files()
command is used for this purpose.CMake
, the NK compiler must be used for this.CMake
, the nk_build_idl_files()
and nk_build_cdl_files()
commands are used for these purposes.CMake
, the NK compiler must be used for this.CMake
, standard build commands are used for this purpose. The necessary cross-compilation configuration is done automatically.CMake
, the cross compilers included in KasperskyOS Community Edition must be manually used for this purpose.CMake
, the Einit
program is built during the solution image build process using the build_kos_qemu_image()
and build_kos_hw_image()
commands.CMake
, the einit tool must be used to generate the code of the Einit
program. Then the Einit
application must be built using the cross compiler that is provided in KasperskyOS Community Edition.CMake
, the security module is built during the solution image build process using the build_kos_qemu_image()
and build_kos_hw_image()
commands.CMake
, the makekss
script must be used for this purpose.CMake
, the build_kos_qemu_image()
and build_kos_hw_image()
commands are used for this purpose.CMake
, the makeimg
script must be used for this.Example 1
For the basic hello
example included in KasperskyOS Community Edition that contains one application that does not provide any services, the build scenario looks as follows:
Example 2
The echo
example included in KasperskyOS Community Edition describes a basic case of interaction between two programs via an IPC mechanism. To set up this interaction, you will need to implement an interface with the Ping
method on a server and put the Ping
service into a new component (for example, Responder
), and an instance of this component needs to be put into the EDL description of the Server
program.
If a solution contains programs that utilize an IPC mechanism, the build scenario looks as follows:
Page top