summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Champagne <champagne.guillaume.c@gmail.com>2021-04-01 16:48:49 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-04-05 15:27:43 +0100
commit96f47c39f1d17f073243913d524bde84add41d8f (patch)
tree1792c6f764c1a2c7842c4a2f0e6da57b878e07e4
parent61d6584eeadb42943a020c4168f398e7abb377e2 (diff)
downloadopenembedded-core-contrib-96f47c39f1d17f073243913d524bde84add41d8f.tar.gz
openembedded-core-contrib-96f47c39f1d17f073243913d524bde84add41d8f.tar.bz2
openembedded-core-contrib-96f47c39f1d17f073243913d524bde84add41d8f.zip
image-live.bbclass: optional depends when ROOTFS empty
`ROOTFS` is optional. It can be empty if the live image doesn't require a rootfs. In such cases, the build doesn't depend on `do_image_{LIVE_ROOTFS_TYPE}`. Signed-off-by: Guillaume Champagne <champagne.guillaume.c@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/image-live.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/image-live.bbclass b/meta/classes/image-live.bbclass
index 1b2183eadd..8b08305cdb 100644
--- a/meta/classes/image-live.bbclass
+++ b/meta/classes/image-live.bbclass
@@ -30,7 +30,7 @@ do_bootimg[depends] += "dosfstools-native:do_populate_sysroot \
virtual/kernel:do_deploy \
${MLPREFIX}syslinux:do_populate_sysroot \
syslinux-native:do_populate_sysroot \
- ${PN}:do_image_${@d.getVar('LIVE_ROOTFS_TYPE').replace('-', '_')} \
+ ${@'%s:do_image_%s' % (d.getVar('PN'), d.getVar('LIVE_ROOTFS_TYPE').replace('-', '_')) if d.getVar('ROOTFS') else ''} \
"