From 22a19e912214d2a35050e95832b88cf4a6116954 Mon Sep 17 00:00:00 2001 From: Anton Gerasimov Date: Mon, 16 Jan 2017 17:11:23 +0100 Subject: Image creation has changed a bit in morty, fix OSTree-related types accordingly Bug-AGL: SPEC-413 Change-Id: If7dbf01eb277143e41b602a977b0ef6110a5664d Signed-off-by: Anton Gerasimov --- meta-sota/classes/sdcard_image-rpi-ota.bbclass | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'meta-sota/classes/sdcard_image-rpi-ota.bbclass') diff --git a/meta-sota/classes/sdcard_image-rpi-ota.bbclass b/meta-sota/classes/sdcard_image-rpi-ota.bbclass index 2fa03c4..deea8d1 100644 --- a/meta-sota/classes/sdcard_image-rpi-ota.bbclass +++ b/meta-sota/classes/sdcard_image-rpi-ota.bbclass @@ -125,8 +125,10 @@ IMAGE_CMD_rpi-sdimg-ota () { # Copy device tree overlays to dedicated folder mmd -i ${WORKDIR}/boot.img overlays for DTB in ${DT_OVERLAYS}; do - DTB_BASE_NAME=`basename ${DTB} .dtb` - mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${DTB_BASE_NAME}.dtb ::overlays/${DTB_BASE_NAME}.dtbo + DTB_EXT=${DTB##*.} + DTB_BASE_NAME=`basename ${DTB} ."${DTB_EXT}"` + + mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${DTB_BASE_NAME}.${DTB_EXT} ::overlays/${DTB_BASE_NAME}.${DTB_EXT} done fi @@ -174,6 +176,9 @@ IMAGE_CMD_rpi-sdimg-ota () { xz -k "${SDIMG_OTA}" ;; esac + + rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.rootfs.rpi-sdimg-ota + ln -s ${IMAGE_NAME}.rootfs.rpi-sdimg-ota ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.rootfs.rpi-sdimg-ota } ROOTFS_POSTPROCESS_COMMAND += " rpi_generate_sysctl_config ; " -- cgit 1.2.3-korg