summaryrefslogtreecommitdiffstats
path: root/meta/classes/bootimg.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-17 11:16:45 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-19 17:24:47 +0000
commit05716dd7ee475ba6e4129243951cc8a661b53e46 (patch)
tree10b0b33fa070cd101f6ae2450bf53c94ddf5ba8e /meta/classes/bootimg.bbclass
parent1c869a96b2b5f17e32a218ba323cd448497decd0 (diff)
downloadpoky-05716dd7ee475ba6e4129243951cc8a661b53e46.tar.gz
bootimg/image: Enhance bootimg to respect RM_OLD_IMAGE
Currently, iso and hddimg links don't respect RM_OLD_IMAGE. This updates them to use the common symlinks code so that they behave like the rest of the system. (From OE-Core rev: 6a05cb64dfafd531d50454ef7141ff0290d01ca9) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/bootimg.bbclass')
-rw-r--r--meta/classes/bootimg.bbclass11
1 files changed, 3 insertions, 8 deletions
diff --git a/meta/classes/bootimg.bbclass b/meta/classes/bootimg.bbclass
index ec9d0b7d52..ed9afb92f6 100644
--- a/meta/classes/bootimg.bbclass
+++ b/meta/classes/bootimg.bbclass
@@ -172,10 +172,6 @@ build_iso() {
172 fi 172 fi
173 173
174 isohybrid $isohybrid_args ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.iso 174 isohybrid $isohybrid_args ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.iso
175
176 cd ${DEPLOY_DIR_IMAGE}
177 rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.iso
178 ln -s ${IMAGE_NAME}.iso ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.iso
179} 175}
180 176
181build_fat_img() { 177build_fat_img() {
@@ -280,10 +276,6 @@ build_hddimg() {
280 fi 276 fi
281 277
282 chmod 644 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hddimg 278 chmod 644 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hddimg
283
284 cd ${DEPLOY_DIR_IMAGE}
285 rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.hddimg
286 ln -s ${IMAGE_NAME}.hddimg ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.hddimg
287 fi 279 fi
288} 280}
289 281
@@ -294,7 +286,10 @@ python do_bootimg() {
294 bb.build.exec_func('build_efi_cfg', d) 286 bb.build.exec_func('build_efi_cfg', d)
295 bb.build.exec_func('build_hddimg', d) 287 bb.build.exec_func('build_hddimg', d)
296 bb.build.exec_func('build_iso', d) 288 bb.build.exec_func('build_iso', d)
289 bb.build.exec_func('create_symlinks', d)
297} 290}
291do_bootimg[subimages] = "hddimg iso"
292do_bootimg[imgsuffix] = "."
298 293
299IMAGE_TYPEDEP_iso = "ext4" 294IMAGE_TYPEDEP_iso = "ext4"
300IMAGE_TYPEDEP_hddimg = "ext4" 295IMAGE_TYPEDEP_hddimg = "ext4"