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