From patchwork Thu Oct 29 11:38:29 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "mark.yang" X-Patchwork-Id: 102375 Received: from lgeamrelo13.lge.com (lgeamrelo13.lge.com [156.147.23.53]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.9774.1793273914957298089 for ; Thu, 29 Oct 2026 04:38:35 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: lge.com, ip: 156.147.23.53, mailfrom: mark.yang@lge.com) Received: from unknown (HELO lgemrelse7q.lge.com) (156.147.1.151) by 156.147.23.53 with ESMTP; 29 Oct 2026 20:38:32 +0900 X-Original-SENDERIP: 156.147.1.151 X-Original-MAILFROM: mark.yang@lge.com Received: from unknown (HELO markyang..) (10.177.122.207) by 156.147.1.151 with ESMTP; 29 Oct 2026 20:38:32 +0900 X-Original-SENDERIP: 10.177.122.207 X-Original-MAILFROM: mark.yang@lge.com From: mark.yang@lge.com To: openembedded-core@lists.openembedded.org Cc: "mark.yang" Subject: [RFC PATCH 4/4] multilib_header: wrap musl headers for multilib builds Date: Thu, 29 Oct 2026 20:38:29 +0900 Message-ID: <20261029113829.2806167-5-mark.yang@lge.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261029113829.2806167-1-mark.yang@lge.com> References: <20261029113829.2806167-1-mark.yang@lge.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Thu, 29 Oct 2026 11:38:39 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/248938 From: "mark.yang" Let oe_multilib_header wrap headers on musl when multilib is enabled. dad1c27463 skipped musl because it was not multilib, and because the wrapper needed bits/wordsize.h. The wrapper no longer needs it. Non-multilib musl builds keep their plain headers. Only multilib puts two variants of a header into one sysroot. With the musl.inc multilib guard removed, a qemuarm64 + lib32 SDK with both variants silently replaced 20 asm/*.h headers from linux-libc-headers and 17 musl bits headers by the lib32 copies. Both recipes already pass them to oe_multilib_header. Signed-off-by: mark.yang --- meta/classes-recipe/multilib_header.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes-recipe/multilib_header.bbclass b/meta/classes-recipe/multilib_header.bbclass index dd65fc02fa..002069f48b 100644 --- a/meta/classes-recipe/multilib_header.bbclass +++ b/meta/classes-recipe/multilib_header.bbclass @@ -15,7 +15,7 @@ oe_multilib_header() { case ${HOST_OS} in *-musl*) - return + [ -n "${MULTILIB_VARIANTS}" ] || return 0 ;; *) esac