1
0
forked from brl/citadel
citadel/meta-citadel/recipes-citadel/images/citadel-kernel-image.bb

24 lines
586 B
BlitzBasic
Raw Permalink 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
do_rootfs[depends] += "citadel-kernel:do_deploy"
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
}