When we are building an initramfs based image, if we use EXTRA_IMAGEDEPENDS to 
add dependency for the main image recipe, then the dependency gets 
automatically added as dependency for the initramfs image also. This creates a 
circular dependency issue. Hence clearing the EXTRA_IMAGEDEPENDS in the 
initramfs image recipe files fixes the circular dependency issue.

Signed-off-by: Sathish Kumar Balasubramaniam <[email protected]>
---
 meta/recipes-core/images/core-image-minimal-initramfs.bb | 3 +++
 meta/recipes-core/images/core-image-tiny-initramfs.bb    | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/meta/recipes-core/images/core-image-minimal-initramfs.bb 
b/meta/recipes-core/images/core-image-minimal-initramfs.bb
index 664fe7310e..fd342a0ec4 100644
--- a/meta/recipes-core/images/core-image-minimal-initramfs.bb
+++ b/meta/recipes-core/images/core-image-minimal-initramfs.bb
@@ -28,5 +28,8 @@ inherit core-image
 IMAGE_ROOTFS_SIZE = "8192"
 IMAGE_ROOTFS_EXTRA_SPACE = "0"
 
+# Dependencies added for build image using EXTRA_IMAGEDEPENDS gets 
automatically added to initramfs image as well and creates a circular 
dependency issue. Hence remove them for initramfs image.
+EXTRA_IMAGEDEPENDS = ""
+
 # Use the same restriction as initramfs-module-install
 COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*)-(linux.*|freebsd.*)'
diff --git a/meta/recipes-core/images/core-image-tiny-initramfs.bb 
b/meta/recipes-core/images/core-image-tiny-initramfs.bb
index 47470849ed..3b3a123f37 100644
--- a/meta/recipes-core/images/core-image-tiny-initramfs.bb
+++ b/meta/recipes-core/images/core-image-tiny-initramfs.bb
@@ -26,6 +26,9 @@ inherit core-image
 IMAGE_ROOTFS_SIZE = "8192"
 IMAGE_ROOTFS_EXTRA_SPACE = "0"
 
+# Dependencies added for build image using EXTRA_IMAGEDEPENDS gets 
automatically added to initramfs image as well and creates a circular 
dependency issue. Hence remove them for initramfs image.
+EXTRA_IMAGEDEPENDS = ""
+
 # Use the same restriction as initramfs-live-install
 COMPATIBLE_HOST = "(i.86|x86_64|aarch64).*-linux"
 
--
2.17.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#150584): 
https://lists.openembedded.org/g/openembedded-core/message/150584
Mute This Topic: https://lists.openembedded.org/mt/82128126/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to