From patchwork Tue Jul 7 14:40:07 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 91936 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F407C44502 for ; Tue, 7 Jul 2026 14:40:28 +0000 (UTC) Received: from mail-ua1-f42.google.com (mail-ua1-f42.google.com [209.85.222.42]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.174834.1783435221219175468 for ; Tue, 07 Jul 2026 07:40:21 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=COMroxfC; spf=pass (domain: gmail.com, ip: 209.85.222.42, mailfrom: twoerner@gmail.com) Received: by mail-ua1-f42.google.com with SMTP id a1e0cc1a2514c-9666739d3bcso1283422241.0 for ; Tue, 07 Jul 2026 07:40:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783435220; x=1784040020; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=y1423Q4uem8lybGYxedJlQHZ60+bsaHr7xCaLtDk4AQ=; b=COMroxfCsfGEfJeXvy1/ohiN5tuCCH1QuxT+ryrYpDSHKc6l2JkUnKYE5Rnw2b3qDb 2wAhkYznZJueK/fx5jmDYtP0itvann55vJZiTTTPlFBlBRSgKzlTrcVXi5m1cmYmrWaH GzeNiQGbS8YLafbFMqIvlQKLoSeEIGv5gNsZus1mzKTmZgJxZTgzKRiTogLZ9V5IJFl6 HJon655Hbta/EdSmejMwm2hBviLLDwZCsx3BpA1s2r6FsV9veu/nxv3xn9lWRrvTgObI 6JlkA7pT2jAQiE34w3fC3ADaMYpollbMf0EKHRZXtjfo+PXL0zZohWWzs/XMDG5a1QTO 7NWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783435220; x=1784040020; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=y1423Q4uem8lybGYxedJlQHZ60+bsaHr7xCaLtDk4AQ=; b=DCZReZ3wj0BcjAcC9z+R49JsKgCoQnYFOYBdWp++VhniMif1HGgVpFFpH5vMjeC760 jw9orKkEiiZ7/aAHLRtR3zILDu5O7rH0fyf1t8zScU5p0aJ5Gm+CAHWUwwJOnmcflDg/ FfJ5ewjTfHovKhCkGeuZeIwVBUSsi7yZMXLHvw8SPx00+j+hlKTQaLOLQd2HESZK8tyz rjrc4QUk3M9lxKMTScaYoaR3JuWt+MaHHq5veVBLxYZvxbc0vLOyFpuU+yvcTrYiG0hx GymaIiSYuBltCplzSBtjftUyXSKzPsPiDL3epoEKnT4nWLHIJU0UIaxwF6vbmcXrIVRc psPA== X-Gm-Message-State: AOJu0Yx/Qe9ZfWPwhJnVPb2EzObNebSxqM3Q3VW4OExmcLq/LJizLuqW rL7PH0A7YWIbZrBX0N7Vy15O1pp68JgV0BD8kRA2qfioiy6BOJhGrWetLqVwl9rC X-Gm-Gg: AfdE7ck0k2aFt1XYAJyKJpdv07oPPXvmeno+zKy8B1+RdlrrgV73mm2A3vJ4jXQ5U6p UCV/4lvVeEiS/ceDc+VT/hahWFVSDj0u/YP3sgoNS6q5ni83bNwKRDbw/WjOF5Iro4la4xXWPNL Tn+a/YMQLFZ12eGfTDTZlK9EaDxEAGG3mTIRP64JtOBauw1wu58VIh4taLWU46ZwdRM64v2hG6A NYyERPh7sen1yhj5KjoRioiUtuqb/mgcUCt4FHjIuD0CLLr04Z9mMBlH7mwuC/E7VvwPS0fZT8h Cw0pDw9aaUxy7TpCGT+Qb+F/SzJqa5ZudGB8QPsWSWDjQUR6EVvldaytTkTCaBj+/WG8HX1tFJK kNQwl9yWfcBeINFw50F1BsK9E4nlQ+B3OPwO/mk10j7IfoWltCpScJfagA7HGzNJWDqfbssqQ14 MyEv2kBaaJqQJg6VEVrkMbVEmlSVAB/ZM69bsBziyyrgfq6ZQKgY/f6fY= X-Received: by 2002:a05:6122:e44a:b0:5bd:c27a:dafd with SMTP id 71dfb90a1353d-5be89e1543amr2823101e0c.3.1783435219919; Tue, 07 Jul 2026 07:40:19 -0700 (PDT) Received: from localhost.localdomain (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-5be02934c13sm7107780e0c.3.2026.07.07.07.40.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2026 07:40:19 -0700 (PDT) From: Trevor Woerner To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 1/3] wic: add runtime dependencies on the tools it invokes Date: Tue, 7 Jul 2026 10:40:07 -0400 Message-ID: <20260707144009.708407-2-twoerner@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260707144009.708407-1-twoerner@gmail.com> References: <20260707144009.708407-1-twoerner@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 07 Jul 2026 14:40:28 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/240397 wic shells out to a number of host-side tools to do its work: parted, mkdosfs, mcopy, the mkfs.* family, sfdisk, e2fsck, resize2fs, debugfs, blkid and more, depending on the operation and on the partition types in the image. None of these are declared as dependencies of wic. For the bitbake do_image_wic task this is handled by the wic-tools recipe, which builds the tools into a native sysroot. Wherever else wic is installed as a package it gets none of them, and its offline lookup (wic ls/cp/write) resolves each tool over a search path that falls back to the host PATH, so on a machine that happens to have the tool installed system-wide wic succeeds while on a machine without it wic fails: wic.WicError: Can't find executable 'mcopy' Falling back to the host is unreliable even when the tool is found: wic depends on specific minimum versions of some of these tools, and an arbitrary host copy may be too old, so wic can pick up a tool that does not behave as it needs. Providing the tools as proper dependencies pins known-good versions rather than leaving it to whatever the host has. Add the tools as RDEPENDS so they are installed alongside wic and found regardless of the host. They are added to the nativesdk variant only, which is where wic is packaged for use outside a bitbake build; the native and target variants are unaffected (and wic is not expected on a target). resize2fs is named explicitly: e2fsprogs splits it into its own e2fsprogs-resize2fs package, so nativesdk-e2fsprogs alone does not provide it, and it is needed by the wic cp/write resize path. syslinux (with its isohybrid helper) is gated to x86 hosts; cdrtools (mkisofs) is native-only with no nativesdk variant and is only needed for ISO images, so it cannot be included here. AI-Generated: codex/claude-opus 4.8 (xhigh) Signed-off-by: Trevor Woerner --- meta/recipes-support/wic/wic_0.3.0.bb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/meta/recipes-support/wic/wic_0.3.0.bb b/meta/recipes-support/wic/wic_0.3.0.bb index 7dbf84b039a6..2d4d32a6b15d 100644 --- a/meta/recipes-support/wic/wic_0.3.0.bb +++ b/meta/recipes-support/wic/wic_0.3.0.bb @@ -17,4 +17,27 @@ RDEPENDS:${PN} += " \ python3-misc \ " +# Pull in the tools wic invokes for the nativesdk variant, where wic is +# packaged for use outside a bitbake build; native and target are +# unaffected. resize2fs is named explicitly as e2fsprogs splits it into +# its own package. +RDEPENDS:${PN}:append:class-nativesdk = " \ + nativesdk-parted \ + nativesdk-gptfdisk \ + nativesdk-dosfstools \ + nativesdk-mtools \ + nativesdk-bmaptool \ + nativesdk-grub \ + nativesdk-btrfs-tools \ + nativesdk-squashfs-tools \ + nativesdk-e2fsprogs \ + nativesdk-e2fsprogs-resize2fs \ + nativesdk-util-linux \ + nativesdk-tar \ + nativesdk-erofs-utils \ +" + +# syslinux (with its isohybrid helper) only builds for x86 hosts. +RDEPENDS:${PN}:append:class-nativesdk = "${@' nativesdk-syslinux nativesdk-syslinux-misc' if d.getVar('SDK_ARCH') in ['x86_64', 'i686'] else ''}" + BBCLASSEXTEND = "native nativesdk" From patchwork Tue Jul 7 14:40:08 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 91935 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id AD63CC44501 for ; Tue, 7 Jul 2026 14:40:28 +0000 (UTC) Received: from mail-vk1-f179.google.com (mail-vk1-f179.google.com [209.85.221.179]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.175924.1783435222411466849 for ; Tue, 07 Jul 2026 07:40:22 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=LsUjwue3; spf=pass (domain: gmail.com, ip: 209.85.221.179, mailfrom: twoerner@gmail.com) Received: by mail-vk1-f179.google.com with SMTP id 71dfb90a1353d-59ebde7d704so1212671e0c.2 for ; Tue, 07 Jul 2026 07:40:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783435221; x=1784040021; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=BsUY4B/h8evK81YoeKBzxNvLBxlQzJEvnOC7b4r34ro=; b=LsUjwue3FqfqgIUq+Wyg7X3bWtSTakBEem6datflmZeDd+ieJbgtBD6Z4HnKOZBNyN k+eUAWvPvmiO4AD5CSBaRcoDpgNt9qCd8ItfHPj6XZ+l523pKDotquqgBsEhpFNizs8L AT/T8mRmEnLrHZdBBAupbCtE0rzfSTHyuHsNgyDAokeJFWpoc6cWTFyDhZmuQYqBlXir 07onGr4jLuus7vBZgKDacNYMQunrorPfUibBFRd+P5E4UXClv1pSG2210UYm78DqQQ5c BDX2fZsXZF9B5fSKptvtVmF5j/BvBKQYwJfK0tTM3ZYkZBhYw3h+SuAYygZItD9PwWvr McpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783435221; x=1784040021; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=BsUY4B/h8evK81YoeKBzxNvLBxlQzJEvnOC7b4r34ro=; b=suaiR31uJdBs1vqY4Z8yM/Fu42Cq9fnfAbZBjBoEQKxfxZUSHP0sjRU8iTJ295jS3G EOgfvv4R7LLbw5DgXtrG21SI/tEcQX+SlbaRNRAlqr3CBe5j9ztWPrsIerjO+bSfAgqK xk3xhIock/I0upfOjcb1VPRV9YkwbUOyb7v//dSVleo3DKooX3p1Y6o1uirw+Mh9YYOe iDDoiKWztdIUI9Zo4wvYQAXP7mAGAZTYy5kh6GRtJxNxr3J+uwQvOHbHgJoyphAJ5BXU WvAxiq47ZhrDD1BWqidfQmVvnT2XU5tNuw8Yh1t406dPGtc9xFwDCxGfWESa7hI/qCbJ 5LWQ== X-Gm-Message-State: AOJu0YzO/Qxw7ClxZyWgXeVgVcgF5YFIwWG73yGv0D4A2MC/SNCerwW9 2oEYozScFm7q8kszGiXkpwXpmcF2V+Mebsabbv1+UPL1nNrKJ5gMh9mF6ArWlaIm X-Gm-Gg: AfdE7clvF9X2TNwUmHOlJYR45hjZGjrp0Krlkt+EPqj9bf2qK1m7/BIsi3RjT+QsaBc zjHYVLs/2JX3v0rMSvE+Ai8rVIQil350H3Kv3rLa+4eZl9bjocODe+TVe1Z/WOWjCCF9hFOadsu l25G74P9Pn6vP6TDvHd6DdXMcjXs+xxEnEMfT9UFdl2bItj7fiuJ3y79cXAjdMW0Ic4BZmTLyir EMNx+VWmbGqsL13Es5W7+MjYciF/lnyG+V9MXAbqIYVVsiZmWLZ61oLY9NbI0mY/TgDj3Q3fZMe zKKR2VrSFhdba1g3oLVRX4Myd/OjXRFvH+QZlz58/c23KHYucA+6SCT5z8HPJqsu+E7cK6oH6Mf 95Jvoq8Er8xrkeu3tsbo2prTCDeshXdCnnlKKzCjv2/VguRyJ1bittqa/G+DD5Z3Ure1imstCdM cS9T0y2g5xZOxTfwaIVjLJ+/Pu3E3m0Jr8qan7XIrJaev6HuhHVO33NTU= X-Received: by 2002:a05:6122:698c:b0:5a4:6680:64f0 with SMTP id 71dfb90a1353d-5be9071fccfmr3025292e0c.4.1783435221266; Tue, 07 Jul 2026 07:40:21 -0700 (PDT) Received: from localhost.localdomain (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-5be02934c13sm7107780e0c.3.2026.07.07.07.40.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2026 07:40:20 -0700 (PDT) From: Trevor Woerner To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 2/3] buildtools-extended-tarball: drop wic helper tools Date: Tue, 7 Jul 2026 10:40:08 -0400 Message-ID: <20260707144009.708407-3-twoerner@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260707144009.708407-1-twoerner@gmail.com> References: <20260707144009.708407-1-twoerner@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 07 Jul 2026 14:40:28 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/240398 The extended buildtools tarball exists to make a host with inadequate or ancient software able to run bitbake builds: it provides a compiler, autotools, python3, git, tar and the rest of the build essentials. The things it ships are the build prerequisites a build host is otherwise expected to provide. nativesdk-parted, -dosfstools and -gptfdisk do not fit that purpose. They are not build prerequisites; they are disk-image helper tools that only make sense for someone assembling or inspecting a .wic image, and they do not belong in the set of essentials this tarball guarantees. Drop the three entries so the tarball's contents stay limited to what its description promises. AI-Generated: codex/claude-opus 4.8 (xhigh) Signed-off-by: Trevor Woerner --- meta/recipes-core/meta/buildtools-extended-tarball.bb | 3 --- 1 file changed, 3 deletions(-) diff --git a/meta/recipes-core/meta/buildtools-extended-tarball.bb b/meta/recipes-core/meta/buildtools-extended-tarball.bb index 633f8e6b99d6..bd4c19c7eac7 100644 --- a/meta/recipes-core/meta/buildtools-extended-tarball.bb +++ b/meta/recipes-core/meta/buildtools-extended-tarball.bb @@ -30,9 +30,6 @@ TOOLCHAIN_HOST_TASK += "\ nativesdk-glibc-utils \ nativesdk-glibc-gconvs \ nativesdk-libxcrypt-dev \ - nativesdk-parted \ - nativesdk-dosfstools \ - nativesdk-gptfdisk \ " # gconvs needed for iconv to work in vim builds From patchwork Tue Jul 7 14:40:09 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 91934 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68880C43458 for ; Tue, 7 Jul 2026 14:40:28 +0000 (UTC) Received: from mail-vk1-f170.google.com (mail-vk1-f170.google.com [209.85.221.170]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.174836.1783435223844952882 for ; Tue, 07 Jul 2026 07:40:24 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=MdD1pjhf; spf=pass (domain: gmail.com, ip: 209.85.221.170, mailfrom: twoerner@gmail.com) Received: by mail-vk1-f170.google.com with SMTP id 71dfb90a1353d-5bdfd7a2e06so2717153e0c.0 for ; Tue, 07 Jul 2026 07:40:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783435223; x=1784040023; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=kJDpYzlVnu+OT/fmKKmTxh3+M45OXWKUkYpcOc0NHGM=; b=MdD1pjhf5z+b32bH3oZlFNwWHcsdnFHVGQxfT20yTG99MFI6/Rh/cyKUCr5x4QEwH+ Xs+CAoSQGeLMOBrbo+BUIpYWqFfA0E7BlDe0oPb/pGi4Ur30xFTjEYDkHnquNM04sgkV rCGDCw2FuiBl+PwJnU72d2+jTR7T/U34yGnKcVkBW/NzYrV8nMTIZaQ7u+uIxn9oU8XT pq2ezTyDQlYAVpsSeW0wDkt5jKqDZR72824XAICRFhnUivJw6hx2GmwEmm2Wc/IYD5k5 bXXf+h11stGhWG5lqufKynrwCjhQtHoWxLbQk+zRK2g5/UEXaPlo33nWCx/miQEkZSO6 icnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783435223; x=1784040023; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=kJDpYzlVnu+OT/fmKKmTxh3+M45OXWKUkYpcOc0NHGM=; b=jjiS9hnBkNhPFLhBqRBs4Z5PLJRqCQRmaIKeqBwTthoc3GgYzb6Uw59kiZEgXFteWi L5F5bDobitrEPEzMLPZcooEmyZG7He24l9TMgf4ZLLI40fOi0oAPyyjcsBhREBJGABbL ggzqTAXRwMbD2qtBEGuGXynDjD75Bls3rkMeazXoKmGXcd8o8WftI/5XaxRcOLcir9IT zovkJIIhO76JM/NtEJqodjTnMCLMwc0kMaYop17Kizv96dvI8TnbCsmZKqCXLae9J0rh IrAkmfkcwlKVdGmbmYhMxAQsUinAtLM56M+EsprXa6hpLWAQVdlfqIv5IV9sxFhUnU5u Q6pQ== X-Gm-Message-State: AOJu0Ywt70ETltJXrbMhFzjVQo0eyWVl7sdFIdvEv35XPUdhK5xOmy3s /owRthD+h+boWejsEg+BQ9muc3bjFdmarBe7zateZbjaWXKT41pMss00neP5wkut X-Gm-Gg: AfdE7cnzVmT9e1eInIBjmwaYEHrkmEO9HELJJw3dPqsryszjiFJrHZHRAr1GOkzhHQH sf4QYV3r03Ks/SJovT2rsHdQkl6wA8Q8OtIXTbrmeMhosMivP/KWL7qys/ADvZWy8HubJ6+XH5M MzKSGYCRtj0Ca8VMF3I8tTd1k2or9qCql9cyOijyZW7U9n6T2e6RK7fFZidDolOYHBl9U0L7GkG yRiIn6MTqV4IEwrnJEuNvYdkP0G6SBKkqs8+KOronAgjH1lC70qe0IlVVxlM7sIuvHXFWdwPeMf i8gcVxTtk8ALVWyaNGLlSN/oxLO4CnkKgUmLLkNc/C30IJNXXY8JqyXY8wdel7yyp457jqIOfAj UgncgSQf7NLA+qNJGRhly4njG8wAydX1EH/9IRy7BuXYysQQ6+C1/civPzQl1lrJFpHe6pYfEGQ x5P21QcnnYAdUuEs8QyDlOGoYEiRBR/nIAVOKJwoZVX99OXEDIoWXVFHg= X-Received: by 2002:a05:6122:a0c:b0:567:4e8a:fb13 with SMTP id 71dfb90a1353d-5be907a31b8mr3331979e0c.8.1783435222715; Tue, 07 Jul 2026 07:40:22 -0700 (PDT) Received: from localhost.localdomain (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-5be02934c13sm7107780e0c.3.2026.07.07.07.40.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2026 07:40:21 -0700 (PDT) From: Trevor Woerner To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 3/3] nativesdk-packagegroup-sdk-host: optionally add wic Date: Tue, 7 Jul 2026 10:40:09 -0400 Message-ID: <20260707144009.708407-4-twoerner@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260707144009.708407-1-twoerner@gmail.com> References: <20260707144009.708407-1-twoerner@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 07 Jul 2026 14:40:28 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/240399 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 --- .../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 = "\