diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2022-04-27 10:37:39 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-04-29 17:54:25 +0100 |
commit | 7a30031f696d46e9343d7071e6484639b92b9e79 (patch) | |
tree | 126d6b262b773aeb7d524548c98a72f4eeff5e04 | |
parent | 3168b02b08614045ed82ba7d4305204fd99c449c (diff) | |
download | poky-7a30031f696d46e9343d7071e6484639b92b9e79.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: dcf9dfa4e6305786cd713aa28deda94a50bd6635)
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.bbclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 7f1f6f80a4..47776db2b0 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -132,7 +132,12 @@ def rootfs_variables(d): | |||
132 | 132 | ||
133 | do_rootfs[vardeps] += "${@rootfs_variables(d)}" | 133 | do_rootfs[vardeps] += "${@rootfs_variables(d)}" |
134 | 134 | ||
135 | do_build[depends] += "virtual/kernel:do_deploy" | 135 | # This is needed to have kernel image in DEPLOY_DIR. |
136 | # This follow 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. | ||
139 | KERNELDEPLOYDEPEND ?= "virtual/kernel:do_deploy" | ||
140 | do_build[depends] += "${KERNELDEPMODDEPEND}" | ||
136 | 141 | ||
137 | 142 | ||
138 | python () { | 143 | python () { |