citadel/meta-citadel/recipes-citadel/images/citadel-kernel-image.bb

22 lines
536 B
BlitzBasic
Raw Normal View History

DESCRIPTION = "Resource image containing citadel kernel and kernel modules"
LICENSE = "MIT"
PACKAGE_INSTALL = "kernel-modules"
CITADEL_IMAGE_VERSION = "${CITADEL_IMAGE_VERSION_kernel}"
CITADEL_IMAGE_TYPE = "kernel"
require citadel-image.inc
inherit citadel-image
ROOTFS_POSTPROCESS_COMMAND += "write_manifest_file; copy_kernel; "
write_manifest_file() {
echo "/usr/lib/modules" > ${IMAGE_ROOTFS}/manifest
}
copy_kernel() {
install -d ${IMAGE_ROOTFS}/kernel
install ${DEPLOY_DIR_IMAGE}/bzImage ${IMAGE_ROOTFS}/kernel
}