The makeimg script creates the final boot image of the KasperskyOS-based solution with all entities to be started and the Kaspersky Security System module.
The script receives a list of files including the executable files of all entities that need to be added to ROMFS of the loaded image, and creates the following files:
.stripped).dbg.syms)Syntax for using the makeimg script:
makeimg --target=ARCH --sys-root=PATH --with-toolchain=PATH --ldscript=PATH --img-src=PATH --img-dst=PATH --with-init=PATH [--with-extra-asflags=FLAGS][--with-extra-ldflags=FLAGS][--help] FILES
Parameters:
FILESList of paths to files, including the executable files of all entities that need to be added to romfs.
By default, the name of the executable file of an entity must match its short name. You can change the name of the file from which the entity will be started by indicating it in the path field of the entity's init description.
The security module (ksm.module) must be explicitly specified, or else it will not be included in the solution image. The Einit entity does not need to be indicated because it will be automatically included in the solution image.
--target=ARCHArchitecture for which the build is intended.
--sys-root=PATHPath to the root directory sysroot. By default, this directory is located in /opt/KasperskyOS-Community-Edition-<version>/sysroot-x86_64-pc-kos/.
--with-toolchain=PATHPath to the set of auxiliary tools required for the solution build. By default, these tools are located in /opt/KasperskyOS-Community-Edition-<version>/toolchain/.
--ldscript=PATHPath to the linker script required for the solution build. By default, this script is located in /opt/KasperskyOS-Community-Edition-<version>/libexec/x86_64-pc-kos/.
--img-src=PATHPath to the precompiled KasperskyOS kernel not containing the romfs. By default, the kernel is located in /opt/KasperskyOS-Community-Edition-<version>/libexec/x86_64-pc-kos/.
--img-dst=PATHPath to the created image file.
--with-init=PATHPath to the executable file of the Einit initializing entity.
--with-extra-asflags=FLAGSAdditional flags for the AS Assembler.
--with-extra-ldflags=FLAGS Additional flags for the LD Linker.
-h, --helpDisplays the Help text.