From 1fa1fba729a1cb7a2e2fbdf352ba3e8f56409ef5 Mon Sep 17 00:00:00 2001 From: Trevor Woerner Date: Wed, 25 Apr 2018 09:23:20 -0400 Subject: [PATCH] rockchip-gpt-img: fix intermittent build failure If a new build is kicked off, and no changes are required to the image contents themselves, but a new rockchip gpt image needs to be generated, the build will fail because this build (run now) will look for an ext4 rootfs that should also exist from this build. However, since no changes were made to the rootfs, a rootfs with this build's timestamp will not exist. I.e. when generating the rockchip gpt image, the script currently looks for the rootfs in: --.rootfs. In other words, if the last build to be done had a timestamp of and the build the is currently running has a timestamp of , when the build tries to generate the rockchip gpt image, it will look for: --.rootfs.ext4 but that file will not exist. The file that will exist is: --.rootfs.ext4 Therefore, don't look for the absolute file, but use the symlink instead which does not include the timestamp, but will point to the latest rootfs: -.ext4 Signed-off-by: Trevor Woerner --- classes/rockchip-gpt-img.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/rockchip-gpt-img.bbclass b/classes/rockchip-gpt-img.bbclass index aa8cbe7..cb09935 100644 --- a/classes/rockchip-gpt-img.bbclass +++ b/classes/rockchip-gpt-img.bbclass @@ -6,7 +6,7 @@ inherit image_types # Use an uncompressed ext4 by default as rootfs IMG_ROOTFS_TYPE = "ext4" -IMG_ROOTFS = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.${IMG_ROOTFS_TYPE}" +IMG_ROOTFS = "${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.${IMG_ROOTFS_TYPE}" # This image depends on the rootfs image IMAGE_TYPEDEP_rockchip-gpt-img = "${IMG_ROOTFS_TYPE}"