build_sd_image library

The build_sd_image library is included in the KasperskyOS SDK and contains the build_sd_image() command. This command is declared in the file named /opt/KasperskyOS-Community-Edition-<version>/common/build-sd-image.cmake.

build_sd_image(IMAGE_NAME ...)

The command creates a CMake target for building an SD card image for running a solution on the hardware platform.

Parameters:

Example call:

include (${KL_SDK_ROOT_PATH}/common/build-sd-image.cmake)

set (IMAGE_FS "${CMAKE_BINARY_DIR}/hdd")

set (IMAGE_PART1_FS "${IMAGE_FS}/part1")

set (IMAGE_PART2_FS "${IMAGE_FS}/part2")

set (DISK_IMAGE hdd.img)

build_sd_image (sd-image

KOS_IMAGE_TARGET kos-image

KOS_COPY_PATH ${IMAGE_PART1_FS}

IMAGE_FS ${IMAGE_FS}

DISK_SIZE 512

OUTPUT_IMAGE_NAME ${DISK_IMAGE}

PARTITION_CMD -p1 ${IMAGE_PART1_FS} -%1 50 -f1 fat32

-p2 ${IMAGE_PART2_FS} -%2 50 -f2 ext4)

Page top