citadel/meta-citadel/recipes-citadel/images/citadel-kernel-image.bb
2019-01-06 18:20:41 -05:00

22 lines
536 B
BlitzBasic

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
}