2019-01-06 23:20:41 +00:00
|
|
|
DESCRIPTION = "Resource image containing citadel kernel and kernel modules"
|
2018-12-31 23:37:43 +00:00
|
|
|
LICENSE = "MIT"
|
|
|
|
|
|
|
|
PACKAGE_INSTALL = "kernel-modules"
|
|
|
|
|
2019-01-06 23:20:41 +00:00
|
|
|
CITADEL_IMAGE_VERSION = "${CITADEL_IMAGE_VERSION_kernel}"
|
|
|
|
CITADEL_IMAGE_TYPE = "kernel"
|
2018-12-31 23:37:43 +00:00
|
|
|
|
|
|
|
require citadel-image.inc
|
|
|
|
inherit citadel-image
|
|
|
|
|
2019-01-15 17:11:27 +00:00
|
|
|
do_rootfs[depends] += "citadel-kernel:do_deploy"
|
|
|
|
|
2019-01-06 03:37:39 +00:00
|
|
|
ROOTFS_POSTPROCESS_COMMAND += "write_manifest_file; copy_kernel; "
|
2018-12-31 23:37:43 +00:00
|
|
|
|
|
|
|
write_manifest_file() {
|
|
|
|
echo "/usr/lib/modules" > ${IMAGE_ROOTFS}/manifest
|
|
|
|
}
|
|
|
|
|
2019-01-06 03:37:39 +00:00
|
|
|
copy_kernel() {
|
|
|
|
install -d ${IMAGE_ROOTFS}/kernel
|
|
|
|
install ${DEPLOY_DIR_IMAGE}/bzImage ${IMAGE_ROOTFS}/kernel
|
|
|
|
}
|