wic is useful from an installed SDK for assembling or inspecting a wic image, but adding it is not free: nativesdk-wic pulls in the long list of host-side tools it might need (parted, gptfdisk, dosfstools, mtools, bmaptool, grub, btrfs-tools, squashfs-tools, e2fsprogs, util-linux, tar, erofs-utils, and syslinux on x86). Most SDKs do not need any of that, so it should not be forced into the host packagegroup unconditionally.
Add an SDK_INCLUDE_WIC knob, defaulting to "no", that gates nativesdk-wic in the host packagegroup. A configuration that wants wic in its SDK opts in with SDK_INCLUDE_WIC = "yes" and gets a working wic, together with the tools it invokes, in the SDK; the default SDK is unchanged. AI-Generated: codex/claude-opus 4.8 (xhigh) Signed-off-by: Trevor Woerner <[email protected]> --- .../packagegroups/nativesdk-packagegroup-sdk-host.bb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb b/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb index 51e48f250b19..37218824171f 100644 --- a/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb +++ b/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb @@ -9,6 +9,11 @@ inherit_defer nativesdk PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1" +# wic is useful from an installed SDK for assembling or inspecting a wic +# image, but it is not needed by every SDK, so it is opt-in. Set +# SDK_INCLUDE_WIC = "yes" to add it (it pulls in the tools it invokes). +SDK_INCLUDE_WIC ?= "no" + # autoconf pulls in nativesdk-perl but perl-module-integer is needed to # build some recent linux kernels (5.14+) for arm RDEPENDS:${PN} = "\ @@ -29,6 +34,7 @@ RDEPENDS:${PN} = "\ nativesdk-bison \ nativesdk-flex \ nativesdk-perl-module-integer \ + ${@'nativesdk-wic' if bb.utils.to_boolean(d.getVar('SDK_INCLUDE_WIC')) else ''} \ " RDEPENDS:${PN}:darwin = "\ -- 2.50.0.173.g8b6f19ccfc3a
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#240399): https://lists.openembedded.org/g/openembedded-core/message/240399 Mute This Topic: https://lists.openembedded.org/mt/120157223/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
