From f8a785e6872043563b35fc59f951b13ec77d5cbf Mon Sep 17 00:00:00 2001 From: Bruce Leidl Date: Sat, 5 Jan 2019 22:37:39 -0500 Subject: [PATCH] add kernel image to modules resource image rootfs --- .../recipes-citadel/images/citadel-modules-image.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta-citadel/recipes-citadel/images/citadel-modules-image.bb b/meta-citadel/recipes-citadel/images/citadel-modules-image.bb index 79ca031..8e821d1 100644 --- a/meta-citadel/recipes-citadel/images/citadel-modules-image.bb +++ b/meta-citadel/recipes-citadel/images/citadel-modules-image.bb @@ -10,9 +10,13 @@ CITADEL_IMAGE_TYPE = "modules" require citadel-image.inc inherit citadel-image -ROOTFS_POSTPROCESS_COMMAND += "write_manifest_file; " +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 +}