From: Mike Crowe Date: Tue, 9 Jul 2019 08:25:09 +0000 (+0100) Subject: image.bbclass: Only append to IMAGE_LINK_NAME if it was already set X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~13953 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e529c45f29bd9a1de21f31fef7acb23eb6e8ebdd;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git image.bbclass: Only append to IMAGE_LINK_NAME if it was already set create_symlinks does not create any links if IMAGE_LINK_NAME is empty. Unfortunately, setup_debugfs_variables unconditionally appends '-dbg' which results in a previously-empty IMAGE_LINK_NAME containing just '-dbg'. Let's check that it's not empty before appending. Signed-off-by: Mike Crowe Signed-off-by: Richard Purdie --- diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 7daa97effb2..682858dc957 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -328,7 +328,8 @@ addtask do_image_qa_setscene def setup_debugfs_variables(d): d.appendVar('IMAGE_ROOTFS', '-dbg') - d.appendVar('IMAGE_LINK_NAME', '-dbg') + if d.getVar('IMAGE_LINK_NAME'): + d.appendVar('IMAGE_LINK_NAME', '-dbg') d.appendVar('IMAGE_NAME','-dbg') d.setVar('IMAGE_BUILDING_DEBUGFS', 'true') debugfs_image_fstypes = d.getVar('IMAGE_FSTYPES_DEBUGFS')