From patchwork Wed Jul 1 16:13:09 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 91519 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 0A2C1C43458 for ; Wed, 1 Jul 2026 16:13:17 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.48989.1782922396385850795 for ; Wed, 01 Jul 2026 09:13:16 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=sOZJbqcg; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9265F165C for ; Wed, 1 Jul 2026 09:13:11 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 8E7CA3F673 for ; Wed, 1 Jul 2026 09:13:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1782922395; bh=ZTS7CEsKe/IF846VG/DwHkyRNgCXbqOwROvK3evMvFo=; h=From:To:Subject:Date:From; b=sOZJbqcg7721DlZbHNRLPDAptG3J0DJ5RB1PbBcVMJsJkAFgW2L4YV/9ayMbJzpwY OWC5nDXSGSbCieuYXj97IjATdixTAPlD/r7eU439s3sUeJWqMLfP5foCxSefQHkYY7 0uPEQXM3/9HznpnHl2JGiqEKJdms5GCG++L4Cbic= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 1/5] classes/meson: set python install locations in the cross file Date: Wed, 1 Jul 2026 17:13:09 +0100 Message-ID: <20260701161313.981064-1-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 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 ; Wed, 01 Jul 2026 16:13:17 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/239991 Instead of needing recipes to inherit python3targetconfig so that Python when asked will report the correct target directory to install into, we can pass the right directory via meson's cross file. This means recipes that currently inherit python3targetconfig to get this path no longer need to. Signed-off-by: Ross Burton --- meta/classes-recipe/meson.bbclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/classes-recipe/meson.bbclass b/meta/classes-recipe/meson.bbclass index 9bed293603c..f20fa61b3cc 100644 --- a/meta/classes-recipe/meson.bbclass +++ b/meta/classes-recipe/meson.bbclass @@ -94,6 +94,8 @@ c_args = ${@meson_array('CFLAGS', d)} c_link_args = ${@meson_array('LDFLAGS', d)} cpp_args = ${@meson_array('CXXFLAGS', d)} cpp_link_args = ${@meson_array('LDFLAGS', d)} +python.platlibdir = '${PYTHON_SITEPACKAGES_DIR}' +python.purelibdir = '${PYTHON_SITEPACKAGES_DIR}' [properties] needs_exe_wrapper = true