From patchwork Wed Oct 15 15:41:27 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 72404 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 45F0ECCD194 for ; Wed, 15 Oct 2025 15:41:44 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.20965.1760542893924138039 for ; Wed, 15 Oct 2025 08:41:34 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); 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 6CD5F1655 for ; Wed, 15 Oct 2025 08:41:25 -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 041443F738 for ; Wed, 15 Oct 2025 08:41:32 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 1/2] openmp: recipe cleanup Date: Wed, 15 Oct 2025 16:41:27 +0100 Message-ID: <20251015154128.119639-1-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 15 Oct 2025 15:41:44 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/224897 Remove perlnative inherit, this recipe does not depend on non-standard perl (or any perl, in fact). Remove python3native inherit, this recipe does not depend on non-standard Python modules. python3-native will still be pulled into the sysroot via python3targetconfig however. Remove PACKAGECONFIG:remove:powerpc, as powerpc is explicitly marked as not compatible later in the recipe. Remove LLVM_ENABLE_PER_TARGET_RUNTIME_DIR, this is only used during monolithic builds of llvm. Remove OPENMP_STANDALONE_BUILD, this is automatically detected when building. Remove CMAKE_POSITION_INDEPENDENT_CODE, this is the default value. Remove all _TOOL, these are not used. Signed-off-by: Ross Burton --- meta/recipes-devtools/clang/openmp_git.bb | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/meta/recipes-devtools/clang/openmp_git.bb b/meta/recipes-devtools/clang/openmp_git.bb index b6b1cc29785..2ba83d48c64 100644 --- a/meta/recipes-devtools/clang/openmp_git.bb +++ b/meta/recipes-devtools/clang/openmp_git.bb @@ -13,21 +13,12 @@ CVE_PRODUCT += "openmp" LIC_FILES_CHKSUM = "file://openmp/LICENSE.TXT;md5=d75288d1ce0450b28b8d58a284c09c79" -inherit cmake pkgconfig perlnative python3native python3targetconfig +inherit cmake pkgconfig python3targetconfig DEPENDS += "elfutils libffi clang" EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=RelWithDebInfo \ - -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF \ -DOPENMP_LIBDIR_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \ - -DOPENMP_STANDALONE_BUILD=ON \ - -DCLANG_TOOL=${STAGING_BINDIR_NATIVE}/clang \ - -DLINK_TOOL=${STAGING_BINDIR_NATIVE}/llvm-link \ - -DOPT_TOOL=${STAGING_BINDIR_NATIVE}/opt \ - -DOPENMP_LLVM_LIT_EXECUTABLE=${STAGING_BINDIR_NATIVE}/llvm-lit \ - -DEXTRACT_TOOL=${STAGING_BINDIR_NATIVE}/llvm-extract \ - -DPACKAGER_TOOL=${STAGING_BINDIR_NATIVE}/clang-offload-packager \ - -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ " OECMAKE_SOURCEPATH = "${S}/openmp" @@ -35,8 +26,6 @@ OECMAKE_SOURCEPATH = "${S}/openmp" PACKAGECONFIG ?= "ompt-tools offloading-plugin" PACKAGECONFIG:remove:arm = "ompt-tools offloading-plugin" -PACKAGECONFIG:remove:powerpc = "ompt-tools offloading-plugin" - PACKAGECONFIG:append:mipsarcho32 = " no-atomics" PACKAGECONFIG[ompt-tools] = "-DOPENMP_ENABLE_OMPT_TOOLS=ON,-DOPENMP_ENABLE_OMPT_TOOLS=OFF,"