From patchwork Mon Sep 8 18:55:58 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonios Christidis X-Patchwork-Id: 69824 X-Patchwork-Delegate: reatmon@ti.com 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 4DF36CA1016 for ; Mon, 8 Sep 2025 18:56:08 +0000 (UTC) Received: from fllvem-ot03.ext.ti.com (fllvem-ot03.ext.ti.com [198.47.19.245]) by mx.groups.io with SMTP id smtpd.web10.2929.1757357761683887616 for ; Mon, 08 Sep 2025 11:56:01 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=pv9SbafE; spf=pass (domain: ti.com, ip: 198.47.19.245, mailfrom: a-christidis@ti.com) Received: from lelvem-sh02.itg.ti.com ([10.180.78.226]) by fllvem-ot03.ext.ti.com (8.15.2/8.15.2) with ESMTP id 588Iu1LE3853525 for ; Mon, 8 Sep 2025 13:56:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1757357761; bh=hJofA6J+Yt+n2h+2OG8y297Asg5TxF5rwnbGan2CrZo=; h=From:To:Subject:Date:In-Reply-To:References; b=pv9SbafED2YbK6unmMsA/HQllaKmVBYrIUnAAHoMlSrxpj0he+paI/umTSvFHrEBd rP1dYmoogNpFUZMYxgswymYSyx9lP++cds37E0BC9yedCNB8VOvEtGdvwRWd17QZ+L NF1YcZNGdfDjqbJkHpGiemaT3Kx/IBu8A6eJ/60Q= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by lelvem-sh02.itg.ti.com (8.18.1/8.18.1) with ESMTPS id 588Iu1kG3160505 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=FAIL) for ; Mon, 8 Sep 2025 13:56:01 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.55; Mon, 8 Sep 2025 13:56:00 -0500 Received: from lelvem-mr05.itg.ti.com (10.180.75.9) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.55 via Frontend Transport; Mon, 8 Sep 2025 13:56:00 -0500 Received: from antonios-ThinkStation-P3-Tower.dhcp.ti.com (antonios-thinkstation-p3-tower.dhcp.ti.com [128.247.81.112]) by lelvem-mr05.itg.ti.com (8.18.1/8.18.1) with ESMTP id 588Iu0aF1367803; Mon, 8 Sep 2025 13:56:00 -0500 From: To: , Subject: [meta-arago][scarthgap][PATCH v3 1/3] opencl-headers: Use Cmake class Date: Mon, 8 Sep 2025 13:55:58 -0500 Message-ID: <20250908185600.152317-2-a-christidis@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250908185600.152317-1-a-christidis@ti.com> References: <20250908185600.152317-1-a-christidis@ti.com> MIME-Version: 1.0 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea 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 ; Mon, 08 Sep 2025 18:56:08 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/16549 From: Antonios Christidis In the meta-oe recipe, where the bbappend links from, the recipe does not use cmake. It explicitly disabled do_configure and do_compile tasks. While setting up a custom do_install task. Since cmake support exists, use it. It will automatically configure, build and install the header files, as well as cmake files. Such cmake files are a dependency, for the c++ opencl headers. Signed-off-by: Antonios Christidis --- v3: - Changed the subject tag from master to scarthgap - Simplified subject v2: - Implemented the changes in a yocto compliant way, not by creating a new recipe outright .../recipes-extended/opencl/opencl_headers-ti.inc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/meta-arago-test/recipes-extended/opencl/opencl_headers-ti.inc b/meta-arago-test/recipes-extended/opencl/opencl_headers-ti.inc index 4dff02d9..48335204 100644 --- a/meta-arago-test/recipes-extended/opencl/opencl_headers-ti.inc +++ b/meta-arago-test/recipes-extended/opencl/opencl_headers-ti.inc @@ -1 +1,16 @@ +inherit cmake + SRCREV = "8275634cf9ec31b6484c2e6be756237cb583999d" + +EXTRA_OECMAKE = "-DBUILD_TESTING=OFF" + +python() { + # Delete the noexec flags for the following tasks. + # Ensuring the tasks run. + d.delVarFlag("do_configure", "noexec") + d.delVarFlag("do_compile", "noexec") +} + +do_install() { + cmake_do_install +}