From patchwork Mon Aug 5 04:37:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denys Dmytriyenko X-Patchwork-Id: 47291 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 41908C52D76 for ; Mon, 5 Aug 2024 04:37:34 +0000 (UTC) Received: from mailout4.zoneedit.com (mailout4.zoneedit.com [64.68.198.64]) by mx.groups.io with SMTP id smtpd.web11.1072.1722832645389681189 for ; Sun, 04 Aug 2024 21:37:25 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: denix.org, ip: 64.68.198.64, mailfrom: denis@denix.org) Received: from localhost (localhost [127.0.0.1]) by mailout4.zoneedit.com (Postfix) with ESMTP id 0674B40CC4; Mon, 5 Aug 2024 04:37:24 +0000 (UTC) Received: from mailout4.zoneedit.com ([127.0.0.1]) by localhost (zmo14-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p_VzZaXUCn09; Mon, 5 Aug 2024 04:37:24 +0000 (UTC) Received: from mail.denix.org (pool-100-15-87-159.washdc.fios.verizon.net [100.15.87.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout4.zoneedit.com (Postfix) with ESMTPSA id E2DBD40CCB; Mon, 5 Aug 2024 04:37:22 +0000 (UTC) Received: from thorin.han-sole.ts.net (thorin.denix [192.168.30.9]) by mail.denix.org (Postfix) with ESMTP id 989D3164063; Mon, 5 Aug 2024 00:37:21 -0400 (EDT) From: Denys Dmytriyenko To: meta-arago@lists.yoctoproject.org Cc: Denys Dmytriyenko Subject: [master][RFC PATCH 13/16] openmpacc: deprecate Date: Mon, 5 Aug 2024 00:37:10 -0400 Message-Id: <20240805043713.172555-13-denis@denix.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240805043713.172555-1-denis@denix.org> References: <20240805043713.172555-1-denis@denix.org> 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 ; Mon, 05 Aug 2024 04:37:34 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/15494 From: Denys Dmytriyenko Remove openmpacc component as deprecated and not maintained. Signed-off-by: Denys Dmytriyenko --- ...nativesdk-packagegroup-arago-tisdk-host.bb | 1 - .../recipes-ti/openmpacc/clacc_git.bb | 65 --------------- .../openmpacc/openmpacc-examples_git.bb | 79 ------------------- .../recipes-ti/openmpacc/openmpacc.inc | 27 ------- .../recipes-ti/openmpacc/openmpacc_git.bb | 20 ----- 5 files changed, 192 deletions(-) delete mode 100644 meta-arago-extras/recipes-ti/openmpacc/clacc_git.bb delete mode 100644 meta-arago-extras/recipes-ti/openmpacc/openmpacc-examples_git.bb delete mode 100644 meta-arago-extras/recipes-ti/openmpacc/openmpacc.inc delete mode 100644 meta-arago-extras/recipes-ti/openmpacc/openmpacc_git.bb diff --git a/meta-arago-extras/recipes-core/packagegroups/nativesdk-packagegroup-arago-tisdk-host.bb b/meta-arago-extras/recipes-core/packagegroups/nativesdk-packagegroup-arago-tisdk-host.bb index ed29b6c4..ccc8d380 100644 --- a/meta-arago-extras/recipes-core/packagegroups/nativesdk-packagegroup-arago-tisdk-host.bb +++ b/meta-arago-extras/recipes-core/packagegroups/nativesdk-packagegroup-arago-tisdk-host.bb @@ -11,7 +11,6 @@ EXTRA_TI_TOOLS = " \ nativesdk-ti-cgt6x \ nativesdk-ti-cgt-pru \ nativesdk-clocl \ - ${@oe.utils.all_distro_features(d, "opencl openmp", "nativesdk-clacc")} \ nativesdk-open62541-examples \ nativesdk-open62541-tests \ nativesdk-gcc-arm-baremetal \ diff --git a/meta-arago-extras/recipes-ti/openmpacc/clacc_git.bb b/meta-arago-extras/recipes-ti/openmpacc/clacc_git.bb deleted file mode 100644 index f56d65cc..00000000 --- a/meta-arago-extras/recipes-ti/openmpacc/clacc_git.bb +++ /dev/null @@ -1,65 +0,0 @@ -SUMMARY = "TI OpenMP-Acc C compiler" - -include openmpacc.inc - -PR = "${INC_PR}.0" - -DEPENDS = "boost elfutils perl-native" -RDEPENDS:${PN} += "clocl" - -S = "${WORKDIR}/git/host" - -TARGET:class-target = "clacc_arm" -TARGET:class-native = "clacc_x86" -TARGET:class-nativesdk = "clacc_x86" - -export LINUX_DEVKIT_ROOT = "${STAGING_DIR_HOST}" -export X86_HOST_ROOT = "${STAGING_DIR_HOST}" - -PARALLEL_MAKE = "" - -# The variables CLACC_CC and CLACC_CXX are used to point clacc to set its -# host_cc and host_link_cc variables which were previously hardcoded in clacc.h. -# This adds support for different toolchain configurations to build clacc by -# passing in the compiler names at the build stage and removes corresponding -# string replacement requirements in yocto recipes. -python __anonymous() { - cc_name = "" - cxx_name = "" - if d.getVar("TOOLCHAIN_PREFIX"): - cc_name = d.getVar("TOOLCHAIN_PREFIX") + "gcc" - cxx_name = d.getVar("TOOLCHAIN_PREFIX") + "g++" - else: - cc_name = d.getVar("TARGET_PREFIX") + "gcc" - cxx_name = d.getVar("TARGET_PREFIX") + "g++" - - # Convert to upper case to workaround GCC preprocessor bug where the word - # 'linux' is defined to be 1. This results in arm-linux-gnueabihf- being - # stringized to arm-1-gnueabihf- by the GCC preprocessor. To workaround this - # bug, convert the names to upper case and send through. Clacc will convert - # to lower case before usage. - d.setVar("CLACC_CC_NAME", cc_name.upper()) - d.setVar("CLACC_CXX_NAME", cxx_name.upper()) -} - - -EXTRA_OEMAKE = " -C ${S}/clacc \ - ${TARGET} \ - CXX="${CXX}" \ - CLACC_CC="${CLACC_CC_NAME}" \ - CLACC_CXX="${CLACC_CXX_NAME}" \ -" - -do_compile() { - oe_runmake -} - -do_install() { - install -d ${D}${bindir} - install -m 755 clacc/${TARGET} ${D}${bindir}/clacc - - install -d ${D}${mandir}/man1 - install -m 644 clacc/clacc.1 ${D}${mandir}/man1 -} - -BBCLASSEXTEND = "native nativesdk" diff --git a/meta-arago-extras/recipes-ti/openmpacc/openmpacc-examples_git.bb b/meta-arago-extras/recipes-ti/openmpacc/openmpacc-examples_git.bb deleted file mode 100644 index 260daf03..00000000 --- a/meta-arago-extras/recipes-ti/openmpacc/openmpacc-examples_git.bb +++ /dev/null @@ -1,79 +0,0 @@ -SUMMARY = "TI OpenMP-Acc example applications" - -include openmpacc.inc - -PR = "${INC_PR}.1" - -DEPENDS = "openmpacc clacc-native clocl-native ti-cgt6x-native" -RDEPENDS:${PN} += "opencl-runtime" - -S = "${WORKDIR}/git/openmpacc-examples-src" - -OMPACC_EXAMPLE_LIST = " target_update \ - vecadd \ - printf_debug \ - edmamgr \ - dspheap \ - target_orphan_call \ - target_implicit_map \ - vecadd_t \ - vecadd_complex \ - local \ - null \ - dsplib_fft \ - sub_section \ -" - -python do_unpack:append() { - import shutil - - git_dir = d.expand("${WORKDIR}/git/examples") - s = d.getVar("S") - - os.makedirs(s) - shutil.copy(os.path.join(git_dir,"Makefile"),s) - shutil.copy(os.path.join(git_dir,"make.inc"),s) - for example in d.getVar("OMPACC_EXAMPLE_LIST").split(): - shutil.copytree(os.path.join(git_dir,example), os.path.join(s,example)) -} - -EXTRA_OEMAKE = " TARGET_ROOTDIR=${STAGING_DIR_HOST} \ - TI_OCL_CGT_INSTALL=${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x \ -" - -MKFILELIST = "vecadd/Makefile vecadd_complex/Makefile dsplib_fft/Makefile \ -null/Makefile dspheap/Makefile target_implicit_map/Makefile printf_debug/Makefile \ -edmamgr/Makefile vecadd_t/Makefile target_orphan_call/Makefile target_update/Makefile \ -sub_section/Makefile local/Makefile" - -do_configure() { - for f in ${MKFILELIST}; do - sed "s|-fopenmp|-fopenmp ${TUNE_CCARGS}${TOOLCHAIN_OPTIONS}|g" -i $f - done -} - -do_compile() { - oe_runmake -} - -do_install() { - install -d ${D}${datadir}/ti/examples/openmpacc - - install -m 644 ${B}/Makefile ${D}${datadir}/ti/examples/openmpacc - install -m 644 ${B}/make.inc ${D}${datadir}/ti/examples/openmpacc - - for ompacc_example in ${OMPACC_EXAMPLE_LIST}; do - install -d ${D}${datadir}/ti/examples/openmpacc/${ompacc_example} - cp -rv ${B}/${ompacc_example}/* ${D}${datadir}/ti/examples/openmpacc/${ompacc_example} - done -} - -FILES:${PN} += "\ - ${datadir}/ti/examples/openmpacc \ -" - -FILES:${PN}-dbg += "\ - ${datadir}/ti/examples/openmpacc/*/.debug \ -" - -INSANE_SKIP:${PN} = "arch ldflags textrel staticdev" diff --git a/meta-arago-extras/recipes-ti/openmpacc/openmpacc.inc b/meta-arago-extras/recipes-ti/openmpacc/openmpacc.inc deleted file mode 100644 index a54fa48d..00000000 --- a/meta-arago-extras/recipes-ti/openmpacc/openmpacc.inc +++ /dev/null @@ -1,27 +0,0 @@ -SUMMARY = "TI OpenMP Accelerator Model" -HOMEPAGE = "http://downloads.ti.com/mctools/esd/docs/openmpacc/" -LICENSE = "BSD-3-Clause" - -inherit features_check - -REQUIRED_MACHINE_FEATURES = "dsp" -REQUIRED_MACHINE_FEATURES:class-native = "" -REQUIRED_MACHINE_FEATURES:class-nativesdk = "" -REQUIRED_DISTRO_FEATURES = "opencl openmp" - -PV = "1.5.6.0" -INC_PR = "r0" - -LIC_FILES_CHKSUM = "file://../debian/copyright;md5=aaa2a0939d08197132fc382e97b62eb0" - -FILESEXTRAPATHS:prepend := "${THISDIR}/openmpacc:" - -OMPACC_GIT_URI = "git://git.ti.com/git/openmp/ti-openmpacc.git" -OMPACC_GIT_PROTOCOL = "https" -OMPACC_GIT_BRANCH = "master" - -OMPACC_SRCREV = "7c4e68a0bf73ec193edff9dfc23ea764ae6ad434" - -BRANCH = "${OMPACC_GIT_BRANCH}" -SRC_URI = "${OMPACC_GIT_URI};protocol=${OMPACC_GIT_PROTOCOL};branch=${BRANCH}" -SRCREV = "${OMPACC_SRCREV}" diff --git a/meta-arago-extras/recipes-ti/openmpacc/openmpacc_git.bb b/meta-arago-extras/recipes-ti/openmpacc/openmpacc_git.bb deleted file mode 100644 index 7a18e47e..00000000 --- a/meta-arago-extras/recipes-ti/openmpacc/openmpacc_git.bb +++ /dev/null @@ -1,20 +0,0 @@ -DESCRIPTION = "TI OpenMP-Acc host runtime and development packages" - -include openmpacc.inc - -PR = "${INC_PR}.1" - -inherit cmake - -DEPENDS = "boost boost-native opencl" -RDEPENDS:${PN} += "opencl-runtime" -RDEPENDS:${PN}-dev += "clacc" - -S = "${WORKDIR}/git/host" - -export TARGET_ROOTDIR = "${STAGING_DIR_HOST}" -export LINUX_DEVKIT_ROOT = "${STAGING_DIR_HOST}" - -EXTRA_OECMAKE += "-DVERSION="${PV}" -DBUILD_OUTPUT=lib" - -FILES:${PN} += "/usr/share/ti/openmpacc/*"