summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Baryshkov <dbaryshkov@gmail.com>2022-05-10 18:43:27 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-11 17:16:11 +0100
commitd4739e930fd66d047fe4ae6fe127364b918ccab6 (patch)
tree0a2d87c64fce2ffd6e0a11b31daf6f2dbb8c648b
parentcc90108fb047cfa9d2d3d7a1ca4668f6200a7ea9 (diff)
downloadpoky-d4739e930fd66d047fe4ae6fe127364b918ccab6.tar.gz
image.bbclass: allow overriding dependency on virtual/kernel:do_deploy
Since the commit fe26b2379ecd ("image.bbclass: Depend on virtual/kernel:do_deploy"), the image.bbclass made building images depend on virtual/kernel. For some images, including small initramfs, this is not the case. Allow overriding this dependency in case developers knows what they are doing. (From OE-Core rev: 55875f68212657167ac6dc26f5fd93eac24b098e) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/image.bbclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 7f1f6f80a4..2139a7e576 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -132,7 +132,12 @@ def rootfs_variables(d):
132 132
133do_rootfs[vardeps] += "${@rootfs_variables(d)}" 133do_rootfs[vardeps] += "${@rootfs_variables(d)}"
134 134
135do_build[depends] += "virtual/kernel:do_deploy" 135# This is needed to have kernel image in DEPLOY_DIR.
136# This follows many common usecases and user expectations.
137# But if you are building an image which doesn't need the kernel image at all,
138# you can unset this variable manually.
139KERNEL_DEPLOY_DEPEND ?= "virtual/kernel:do_deploy"
140do_build[depends] += "${KERNEL_DEPLOY_DEPEND}"
136 141
137 142
138python () { 143python () {