Skip to contentSkip to conversation

core-image-*-initramfs.bb: Fix for circular dependency issue in initramfs when using EXTRA_IMAGEDEPENDS

PATCH New [email protected] 1 participant 1 message Apr 15, 2021 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 core-image-*-initramfs.bb: Fix for circular dependency issue in initramfs when using EXTRA_IMAGEDEPENDS

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.

---
 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(+)
meta/recipes-core/images/core-image-minimal-initramfs.bb +0 -0
index 664fe7310e..fd342a0ec4 100644
@@ -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.*)'

meta/recipes-core/images/core-image-tiny-initramfs.bb +0 -0
index 47470849ed..3b3a123f37 100644
@@ -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