Skip to contentSkip to conversation

Set WKS_FILE_DEPENDS/Clean up some do_image_wic depends

PATCH New [email protected] 1 participant 5 messages Aug 4, 2017

lore
Share & tools
lore
#0 lore raw

v2 cover Set WKS_FILE_DEPENDS/Clean up some do_image_wic depends

From: Ming Liu <[email protected]>

Ming Liu (4):
image_types_wic.bbclass: adjust WKS_FILE_DEPENDS_DEFAULT wic-image-minimal.bb: add parted-native e2fsprogs-native to
WKS_FILE_DEPENDS
qemux86-64.conf: set WKS_FILE_DEPENDS qemux86.conf: set WKS_FILE_DEPENDS

 .../recipes-test/images/wic-image-minimal.bb        |  2 +-
 meta/classes/image_types_wic.bbclass                | 21 +++++++++++++++++++--
 meta/conf/machine/qemux86-64.conf                   |  2 +-
 meta/conf/machine/qemux86.conf                      |  2 +-
 4 files changed, 22 insertions(+), 5 deletions(-)
Signature · 1 line
2.7.4
#1 lore raw

PATCH v2 1/4 image_types_wic.bbclass: adjust WKS_FILE_DEPENDS_DEFAULT

From: Ming Liu <[email protected]>

Let WKS_FILE_DEPENDS_DEFAULT default to include all native recipes listed in NATIVE_RECIPES of wic, as a temporary solution to avoid breaking wic image build.

Recommended solution is to use WKS_FILE_DEPENDS in image recipes together with WKS_FILE to specify dependencies.

Drop do_image_wic depends varflags, it's not needed any more, all the dependencies will be handled by WKS_FILE_DEPENDS.

---
 meta/classes/image_types_wic.bbclass | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)
meta/classes/image_types_wic.bbclass +19 -2
index b825b47..ad578c4 100644
@@ -39,9 +39,26 @@ IMAGE_CMD_wic[vardepsexclude] = "WKS_FULL_PATH WKS_FILES"
 USING_WIC = "${@bb.utils.contains_any('IMAGE_FSTYPES', 'wic ' + ' '.join('wic.%s' % c for c in '${CONVERSIONTYPES}'.split()), '1', '', d)}"
 WKS_FILE_CHECKSUM = "${@'${WKS_FULL_PATH}:%s' % os.path.exists('${WKS_FULL_PATH}') if '${USING_WIC}' else ''}"
 do_image_wic[file-checksums] += "${WKS_FILE_CHECKSUM}"
-do_image_wic[depends] += "${@' '.join('%s-native:do_populate_sysroot' % r for r in ('parted', 'gptfdisk', 'dosfstools', 'mtools'))}"
 
-WKS_FILE_DEPENDS_DEFAULT = "syslinux-native bmap-tools-native cdrtools-native btrfs-tools-native squashfs-tools-native e2fsprogs-native"
+# Defaults to include all native recipes listed in NATIVE_RECIPES of
+# wic, as a temporary solution to avoid breaking wic image build.
+# Recommended solution is to use WKS_FILE_DEPENDS in image recipes
+# together with WKS_FILE to specify dependencies.
+WKS_FILE_DEPENDS_DEFAULT = "\
+    bmap-tools-native \
+    grub-efi-native \
+    syslinux-native \
+    mtools-native \
+    dosfstools-native \
+    cdrtools-native \
+    btrfs-tools-native \
+    e2fsprogs-native \
+    squashfs-tools-native \
+    util-linux-native \
+    parted-native \
+    gptfdisk-native \
+"
+
 WKS_FILE_DEPENDS_BOOTLOADERS = ""
 WKS_FILE_DEPENDS_BOOTLOADERS_x86 = "syslinux grub-efi systemd-boot"
 WKS_FILE_DEPENDS_BOOTLOADERS_x86-64 = "syslinux grub-efi systemd-boot"
Signature · 1 line
2.7.4
#2 lore raw

PATCH v2 2/4 wic-image-minimal.bb: add parted-native e2fsprogs-native to WKS_FILE_DEPENDS

In reply to [email protected]

From: Ming Liu <[email protected]>

They are needed by wic to generate a image based on wic-image-minimal.wic.

---
 meta-selftest/recipes-test/images/wic-image-minimal.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-selftest/recipes-test/images/wic-image-minimal.bb +1 -1
index e1da203..5a83af5 100644
@@ -6,7 +6,7 @@ IMAGE_INSTALL = "packagegroup-core-boot"
 
 IMAGE_FSTYPES = "wic"
 
-WKS_FILE_DEPENDS = "syslinux syslinux-native dosfstools-native mtools-native gptfdisk-native"
+WKS_FILE_DEPENDS = "syslinux syslinux-native dosfstools-native mtools-native gptfdisk-native parted-native e2fsprogs-native"
 
 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
 
Signature · 1 line
2.7.4
#3 lore raw

PATCH v2 3/4 qemux86-64.conf: set WKS_FILE_DEPENDS

In reply to [email protected]

From: Ming Liu <[email protected]>

To involve in a minimal set of dependencies required by directdisk.wks.

Drop do_image_wic depends varflags, it's not needed any more.

---
 meta/conf/machine/qemux86-64.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/machine/qemux86-64.conf +1 -1
index 10189cb..8fb9fd5 100644
@@ -30,4 +30,4 @@ MACHINE_FEATURES += "x86"
 MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "v86d"
 
 WKS_FILE ?= "directdisk.wks"
-do_image_wic[depends] += "syslinux:do_populate_sysroot syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"
+WKS_FILE_DEPENDS ?= "syslinux syslinux-native mtools-native dosfstools-native e2fsprogs-native parted-native"
Signature · 1 line
2.7.4
#4 lore raw

PATCH v2 4/4 qemux86.conf: set WKS_FILE_DEPENDS

In reply to [email protected]

From: Ming Liu <[email protected]>

To involve in a minimal set of dependencies required by directdisk.wks.

Drop do_image_wic depends varflags, it's not needed any more.

---
 meta/conf/machine/qemux86.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/machine/qemux86.conf +1 -1
index c26dda2..01490b7 100644
@@ -29,4 +29,4 @@ MACHINE_FEATURES += "x86"
 MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "v86d"
 
 WKS_FILE ?= "directdisk.wks"
-do_image_wic[depends] += "syslinux:do_populate_sysroot syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"
+WKS_FILE_DEPENDS ?= "syslinux syslinux-native mtools-native dosfstools-native e2fsprogs-native parted-native"
Signature · 1 line
2.7.4