From patchwork Mon May 22 18:38:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randolph Sapp X-Patchwork-Id: 24276 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 11325C7EE2E for ; Mon, 22 May 2023 18:38:56 +0000 (UTC) Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by mx.groups.io with SMTP id smtpd.web10.3157.1684780734191994412 for ; Mon, 22 May 2023 11:38:54 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17q1 header.b=rjOxsS0B; spf=pass (domain: ti.com, ip: 198.47.23.249, mailfrom: rs@ti.com) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 34MIcpNL117417; Mon, 22 May 2023 13:38:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1684780731; bh=zfuwQYf534XMwY9riEJ9Q1/5Svma1ivLvg9G0UspbPA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=rjOxsS0BlBHg6QCXWX1+WP+O01rXV8oLjZs5lsyNiqq7558jerE+8zYVPXxBh1fjU YuRArpcmcAZw6uP6JJaaZmAHV1S7i4Unn8/DrpVZ0HGIDU4WYhZ52sEnLuLtDMSv5b Eg4ed5VeBrAqfjsq3q4h9JLp6oyODZlsfSZGCO8k= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 34MIcpZ0116878 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 22 May 2023 13:38:51 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 22 May 2023 13:38:51 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 22 May 2023 13:38:51 -0500 Received: from rs-desk.dhcp.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 34MIcnoD092240; Mon, 22 May 2023 13:38:51 -0500 From: To: , , CC: , Randolph Sapp Subject: [meta-arago][master][PATCH 1/3] all: remove all external toolchain stuff Date: Mon, 22 May 2023 13:38:45 -0500 Message-ID: <20230522183847.3663294-2-rs@ti.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230522183847.3663294-1-rs@ti.com> References: <20230522183847.3663294-1-rs@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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, 22 May 2023 18:38:56 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/14431 From: Randolph Sapp Drop all of the external toolchain stuff. We don't need it anymore now that everything can use the internal yocto compiler and multiarch has been configured properly in meta-ti. In addition to this, it squelches a warning that's been bothering me. One of these files attempts to dynamically set it's package name and bitbake wasn't expanding one of the required variables soon enough, result in some garbage package with an unexpanded '${SECONDARY_TARGET_ARCH}' in it's name. Signed-off-by: Randolph Sapp Acked-by: Andrew Davis --- .../conf/distro/include/toolchain-arm.inc | 118 ---------------- .../external-arm-secondary-sdk-toolchain.bb | 4 - .../meta/external-arm-toolchain.bbappend | 36 ----- .../packagegroup-cross-canadian.bbappend | 10 -- .../meta/external-arm-bfd-version.inc | 8 -- .../meta/external-arm-sdk-toolchain.bb | 131 ------------------ .../meta/external-arm-toolchain.bbappend | 73 ---------- 7 files changed, 380 deletions(-) delete mode 100644 meta-arago-distro/conf/distro/include/toolchain-arm.inc delete mode 100644 meta-arago-distro/recipes-core/meta/external-arm-secondary-sdk-toolchain.bb delete mode 100644 meta-arago-distro/recipes-core/meta/external-arm-toolchain.bbappend delete mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-cross-canadian.bbappend delete mode 100644 meta-arago-extras/recipes-core/meta/external-arm-bfd-version.inc delete mode 100644 meta-arago-extras/recipes-core/meta/external-arm-sdk-toolchain.bb delete mode 100644 meta-arago-extras/recipes-core/meta/external-arm-toolchain.bbappend diff --git a/meta-arago-distro/conf/distro/include/toolchain-arm.inc b/meta-arago-distro/conf/distro/include/toolchain-arm.inc deleted file mode 100644 index 9b76917d..00000000 --- a/meta-arago-distro/conf/distro/include/toolchain-arm.inc +++ /dev/null @@ -1,118 +0,0 @@ -# Select external binary prebuilt Arm toolchain -TCMODE = "external-arm" - -EAT_TARGET_SYS_ARMV5 ?= "arm-none-linux-gnueabi" -EAT_TARGET_SYS_ARMV7 ?= "arm-none-linux-gnueabihf" -EAT_TARGET_SYS_ARMV8 ?= "aarch64-none-linux-gnu" - -EAT_TARGET_SYS:arm = "${EAT_TARGET_SYS_ARMV5}" -EAT_TARGET_SYS:armv7a = "${EAT_TARGET_SYS_ARMV7}" -EAT_TARGET_SYS:aarch64 = "${EAT_TARGET_SYS_ARMV8}" - -SECONDARY_TARGET_ARCH = "invalid" -SECONDARY_TARGET_ARCH:k3 = "armv7a" - -TARGET_VENDOR = "" - -TOOLCHAIN_BASE ?= "/opt" -TOOLCHAIN_PATH_ARMV5 ?= "${TOOLCHAIN_BASE}/gcc-arm-9.2-ti2020.01-armv5-x86_64-${EAT_TARGET_SYS_ARMV5}" -TOOLCHAIN_PATH_ARMV7 ?= "${TOOLCHAIN_BASE}/gcc-arm-9.2-2019.12-x86_64-${EAT_TARGET_SYS_ARMV7}" -TOOLCHAIN_PATH_ARMV8 ?= "${TOOLCHAIN_BASE}/gcc-arm-9.2-2019.12-x86_64-${EAT_TARGET_SYS_ARMV8}" - -DEF_TOOLCHAIN_PATH:arm = "${TOOLCHAIN_PATH_ARMV5}" -DEF_TOOLCHAIN_PATH:armv7a = "${TOOLCHAIN_PATH_ARMV7}" -DEF_TOOLCHAIN_PATH:aarch64 = "${TOOLCHAIN_PATH_ARMV8}" - -TOOLCHAIN_PATH ?= "${DEF_TOOLCHAIN_PATH}" - -TOOLCHAIN_SYS := "${EAT_TARGET_SYS}" -TOOLCHAIN_PREFIX := "${TOOLCHAIN_SYS}-" - -PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-intermediate = "external-arm-toolchain" - -PREFERRED_PROVIDER_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "external-arm-sdk-toolchain-${TRANSLATED_TARGET_ARCH}" -PREFERRED_PROVIDER_binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "external-arm-sdk-toolchain-${TRANSLATED_TARGET_ARCH}" -#PREFERRED_PROVIDER_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "external-arm-sdk-toolchain-${TRANSLATED_TARGET_ARCH}" - -PREFERRED_PROVIDER_gcc-cross-canadian-${SECONDARY_TARGET_ARCH} ?= "external-arm-secondary-sdk-toolchain-${SECONDARY_TARGET_ARCH}" -PREFERRED_PROVIDER_binutils-cross-canadian-${SECONDARY_TARGET_ARCH} ?= "external-arm-secondary-sdk-toolchain-${SECONDARY_TARGET_ARCH}" - -# Special case for gdb to be built as part of canadian-cross-sdk, instead of packaged from external toolchain -bindir:pn-gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "${exec_prefix}/bin" -PREFERRED_PROVIDER_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}" - -# Set up runtime preferences -PREFERRED_PROVIDER_libgcc = "external-arm-toolchain" -PREFERRED_PROVIDER_gcc-runtime = "external-arm-toolchain" - -# Set Cross and SDK toolchain preferences -SDKGCCVERSION ?= "arm-9.2%" -SDKGDBVERSION ?= "9.2%" -SDKBINUVERSION ?= "2.35%" -SDKGLIBCVERSION ?= "2.32%" -SDKLINUXLIBCVERSION ?= "5.10%" - -PREFERRED_VERSION_gcc-crosssdk-${SDK_SYS} ?= "${SDKGCCVERSION}" -PREFERRED_VERSION_gcc-crosssdk-initial-${SDK_SYS} ?= "${SDKGCCVERSION}" -PREFERRED_VERSION_gdb-crosssdk-${SDK_SYS} ?= "${SDKGDBVERSION}" -PREFERRED_VERSION_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "${SDKGDBVERSION}" -PREFERRED_VERSION_binutils-crosssdk-${SDK_SYS} ?= "${SDKBINUVERSION}" - -PREFERRED_VERSION_nativesdk-gcc-runtime ?= "${SDKGCCVERSION}" -PREFERRED_VERSION_nativesdk-libgcc ?= "${SDKGCCVERSION}" -PREFERRED_VERSION_nativesdk-libgcc-initial ?= "${SDKGCCVERSION}" -PREFERRED_VERSION_nativesdk-linux-libc-headers ?= "${SDKLINUXLIBCVERSION}" -PREFERRED_VERSION_nativesdk-glibc ?= "${SDKGLIBCVERSION}" -PREFERRED_VERSION_nativesdk-glibc-locale ?= "${SDKGLIBCVERSION}" -PREFERRED_VERSION_nativesdk-glibc-initial ?= "${SDKGLIBCVERSION}" - -# Set target toolchain preferences to match Cross/SDK by default -# Can be overwritten globally, if needed -GCCVERSION ?= "arm-9.2%" -GDBVERSION ?= "9.2%" -BINUVERSION ?= "2.35%" -GLIBCVERSION ?= "2.32%" - -PREFERRED_VERSION_gcc ?= "${GCCVERSION}" -PREFERRED_VERSION_gdb ?= "${GDBVERSION}" -PREFERRED_VERSION_binutils ?= "${BINUVERSION}" -PREFERRED_VERSION_glibc ?= "${GLIBCVERSION}" -PREFERRED_VERSION_glibc-locale ?= "${GLIBCVERSION}" -PREFERRED_VERSION_glibc-initial ?= "${GLIBCVERSION}" - -# Licenses set for main components of the toolchain: -# (g)libc is always LGPL version 2 (or later) -# gcc has switched from GPL version 2 (or later) to version 3 (or later) after 4.2.1, -# see this announcement - http://gcc.gnu.org/ml/gcc-announce/2007/msg00003.html -# libgcc and libstdc++ always had exceptions to GPL called Runtime Library Exception, but -# it was based on GPL version 2 (or later), until new GPL version 3 (or later) exception -# was introduced on 27 Jan 2009 - http://gcc.gnu.org/ml/gcc-announce/2009/msg00000.html -# and http://www.gnu.org/licenses/gcc-exception.html, which was several days after -# gcc 4.3.3 was released - http://gcc.gnu.org/releases.html -# gdb/gdbserver version 6.6 was the last one under GPL version 2 (or later), according -# to the release schedule - http://www.gnu.org/software/gdb/schedule/ -# binutils version 2.17 was the last one under GPL version 2 (or later), according -# to the published releases - http://ftp.gnu.org/gnu/binutils/ - -python external_arm_toolchain_license_handler () { - if not isinstance(e, bb.event.ConfigParsed): - return - d = e.data - ld = d.createCopy() - ld.finalize() - - lc_libc = "LGPL-2.1" - lc_gcc = ["GPL-3.0", "GPL-2.0"][eat_get_gcc_version(ld) <= "4.2.1"] - lc_rle = ["GPL-3.0-with-GCC-exception", "GPL-2.0-with-GCC-exception"][eat_get_gcc_version(ld) <= "4.3.3"] - lc_gdb = ["GPL-3.0", "GPL-2.0"][eat_get_gdb_version(ld) <= "6.6"] -# lc_bfd = ["GPL-3.0", "GPL-2.0"][eat_get_bfd_version(ld) <= "2.17"] - - d.setVar('EAT_LIC_LIBC', lc_libc) - d.setVar('EAT_LIC_GCC', lc_gcc) - d.setVar('EAT_LIC_RLE', lc_rle) - d.setVar('EAT_LIC_GDB', lc_gdb) -# d.setVar('EAT_LIC_BFD', lc_bfd) - - d.setVar('EAT_LICENSE', "%s&%s&%s&%s" % (lc_libc, lc_gcc, lc_rle, lc_gdb)) -} -addhandler external_arm_toolchain_license_handler diff --git a/meta-arago-distro/recipes-core/meta/external-arm-secondary-sdk-toolchain.bb b/meta-arago-distro/recipes-core/meta/external-arm-secondary-sdk-toolchain.bb deleted file mode 100644 index 22a8aa0a..00000000 --- a/meta-arago-distro/recipes-core/meta/external-arm-secondary-sdk-toolchain.bb +++ /dev/null @@ -1,4 +0,0 @@ -TARGET_ARCH := "${SECONDARY_TARGET_ARCH}" -MACHINEOVERRIDES := "${SECONDARY_TARGET_ARCH}" - -require recipes-core/meta/external-arm-sdk-toolchain.bb diff --git a/meta-arago-distro/recipes-core/meta/external-arm-toolchain.bbappend b/meta-arago-distro/recipes-core/meta/external-arm-toolchain.bbappend deleted file mode 100644 index ce22c453..00000000 --- a/meta-arago-distro/recipes-core/meta/external-arm-toolchain.bbappend +++ /dev/null @@ -1,36 +0,0 @@ -# This is a rather hacky way to install custom linux-libc-headers -# on top of the external-arm-toolchain, since simply depending -# on linux-libc-headers creates circular dependencies now. Mostly -# duplication of code from corresponding recipe. - -BRANCH = "ti-linux-5.10.y" -SRCREV = "bdfd5b0c1ee5617c9a94bacad0d818920d95b486" - -KERNEL_GIT_URI = "git://git.ti.com/git/ti-linux-kernel/ti-linux-kernel.git" -KERNEL_GIT_PROTOCOL = "https" -SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH}" - -PKGV:linux-libc-headers-dev = "5.10" -PKGV:linux-libc-headers = "5.10" - -inherit kernel-arch pkgconfig multilib_header - -EXTRA_OEMAKE = " HOSTCC="${BUILD_CC}" HOSTCPP="${BUILD_CPP}"" - -DEPENDS += "bison-native rsync-native" - -do_configure:append() { - cd ${WORKDIR}/git - oe_runmake allnoconfig -} - -do_install:append() { - cd ${WORKDIR}/git - oe_runmake headers_install INSTALL_HDR_PATH=${B}${exec_prefix} - - CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership" - cp ${CP_ARGS} ${B}${includedir} ${D}${exec_prefix} - - # The ..install.cmd conflicts between various configure runs - find ${D}${exec_prefix} -name ..install.cmd | xargs rm -f -} diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-cross-canadian.bbappend b/meta-arago-distro/recipes-core/packagegroups/packagegroup-cross-canadian.bbappend deleted file mode 100644 index 46df17f9..00000000 --- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-cross-canadian.bbappend +++ /dev/null @@ -1,10 +0,0 @@ -PR:append = ".arago0" - -SECONDARY_TARGET_ARCH ?= "invalid" - -SECONDARY_TOOLCHAIN = "gcc-cross-canadian-${SECONDARY_TARGET_ARCH} \ - binutils-cross-canadian-${SECONDARY_TARGET_ARCH}" - -RDEPENDS:${PN}:append = " \ - ${@oe.utils.conditional('SECONDARY_TARGET_ARCH', 'invalid', '', '${SECONDARY_TOOLCHAIN}', d)} \ -" diff --git a/meta-arago-extras/recipes-core/meta/external-arm-bfd-version.inc b/meta-arago-extras/recipes-core/meta/external-arm-bfd-version.inc deleted file mode 100644 index 1d8eed17..00000000 --- a/meta-arago-extras/recipes-core/meta/external-arm-bfd-version.inc +++ /dev/null @@ -1,8 +0,0 @@ -TOOLCHAIN_PATH ??= "${STAGING_BINDIR_TOOLCHAIN}" - -def eat_get_bfd_version(d): - import subprocess,os,bb - if os.path.exists(d.getVar('TOOLCHAIN_PATH')+'/bin/'+d.getVar('TARGET_PREFIX')+'as'): - return subprocess.Popen([d.getVar('TOOLCHAIN_PATH')+'/bin/'+d.getVar('TARGET_PREFIX')+'as', '-v', '--version'], stderr=subprocess.STDOUT,stdout=subprocess.PIPE).communicate()[0].splitlines()[0].split()[3] - -EAT_VER_BFD := "${@eat_get_bfd_version(d)}" diff --git a/meta-arago-extras/recipes-core/meta/external-arm-sdk-toolchain.bb b/meta-arago-extras/recipes-core/meta/external-arm-sdk-toolchain.bb deleted file mode 100644 index bbae8622..00000000 --- a/meta-arago-extras/recipes-core/meta/external-arm-sdk-toolchain.bb +++ /dev/null @@ -1,131 +0,0 @@ -inherit cross-canadian - -require external-arm-bfd-version.inc - -PR = "r9" - -PN = "external-arm-sdk-toolchain-${TARGET_ARCH}" -BPN = "external-arm-sdk-toolchain" - -INHIBIT_PACKAGE_DEBUG_SPLIT = "1" -INHIBIT_PACKAGE_STRIP = "1" -INHIBIT_SYSROOT_STRIP = "1" -INHIBIT_DEFAULT_DEPS = "1" -EXCLUDE_FROM_SHLIBS = "1" - -# License applies to this recipe code, not the toolchain itself -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" - -INSANE_SKIP:gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} = "dev-so staticdev file-rdeps" -INSANE_SKIP:gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "dev-so file-rdeps" -INSANE_SKIP:binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} = "dev-so file-rdeps" - -PROVIDES = "\ - gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} \ - ${@oe.utils.conditional('PREFERRED_PROVIDER_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}', 'external-arm-sdk-toolchain', 'gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}', '', d)} \ - binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} \ -" - -PACKAGES = "\ - gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} \ - ${@oe.utils.conditional('PREFERRED_PROVIDER_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}', 'external-arm-sdk-toolchain', 'gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}', '', d)} \ - binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} \ -" - -# Don't need the extra target triplet in the new SDK dir structure -bindir = "${exec_prefix}/bin" -libdir = "${exec_prefix}/lib" -libexecdir = "${exec_prefix}/libexec" -datadir = "${exec_prefix}/share" -gcclibdir = "${libdir}/gcc" - -FILES:gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} = "\ - ${prefix}/${EAT_TARGET_SYS}/lib/libstdc++.* \ - ${prefix}/${EAT_TARGET_SYS}/lib/libgcc_s.* \ - ${prefix}/${EAT_TARGET_SYS}/lib/libsupc++.* \ - ${gcclibdir}/${EAT_TARGET_SYS}/${EAT_VER_GCC}/* \ - ${bindir}/${TARGET_PREFIX}gcov \ - ${bindir}/${TARGET_PREFIX}gcc* \ - ${bindir}/${TARGET_PREFIX}g++ \ - ${bindir}/${TARGET_PREFIX}cpp \ - ${libexecdir}/* \ -" - -FILES:gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "\ - ${bindir}/${TARGET_PREFIX}gdb \ - ${bindir}/${TARGET_PREFIX}gdbtui \ - ${datadir}/gdb/* \ - ${datadir}/info/* \ - ${datadir}/man/man1/${TARGET_PREFIX}* \ -" - -FILES:binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} = "\ - ${prefix}/${EAT_TARGET_SYS}/bin/ld* \ - ${prefix}/${EAT_TARGET_SYS}/bin/objcopy \ - ${prefix}/${EAT_TARGET_SYS}/bin/strip \ - ${prefix}/${EAT_TARGET_SYS}/bin/nm \ - ${prefix}/${EAT_TARGET_SYS}/bin/ranlib \ - ${prefix}/${EAT_TARGET_SYS}/bin/as \ - ${prefix}/${EAT_TARGET_SYS}/bin/ar \ - ${prefix}/${EAT_TARGET_SYS}/bin/objdump \ - ${prefix}/${EAT_TARGET_SYS}/lib/ldscripts/* \ - ${bindir}/${TARGET_PREFIX}ld* \ - ${bindir}/${TARGET_PREFIX}addr2line \ - ${bindir}/${TARGET_PREFIX}objcopy \ - ${bindir}/${TARGET_PREFIX}readelf \ - ${bindir}/${TARGET_PREFIX}strip \ - ${bindir}/${TARGET_PREFIX}nm \ - ${bindir}/${TARGET_PREFIX}ranlib \ - ${bindir}/${TARGET_PREFIX}gprof \ - ${bindir}/${TARGET_PREFIX}as \ - ${bindir}/${TARGET_PREFIX}c++filt \ - ${bindir}/${TARGET_PREFIX}ar \ - ${bindir}/${TARGET_PREFIX}strings \ - ${bindir}/${TARGET_PREFIX}objdump \ - ${bindir}/${TARGET_PREFIX}size \ -" - -DESCRIPTION:gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} = "The GNU cc and gcc C compilers" -DESCRIPTION:gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "gdb - GNU debugger" -DESCRIPTION:binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} = "A GNU collection of binary utilities" - -#LICENSE = "${ARG_LIC_LIBC}" -#LICENSE:gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} = "${ARG_LIC_GCC}" -#LICENSE:gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "${ARG_LIC_GDB}" -#LICENSE:binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} = "${ARG_LIC_BFD}" - -PKGV = "${EAT_VER_MAIN}" -PKGV:gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} = "${EAT_VER_GCC}" -PKGV:gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "${EAT_VER_GDB}" -PKGV:binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} = "${EAT_VER_BFD}" - -LIBDIR = "lib" -LIBDIR:aarch64 = "lib64" - -do_install() { - install -d ${D}${prefix}/${EAT_TARGET_SYS}/bin - install -d ${D}${prefix}/${EAT_TARGET_SYS}/lib - install -d ${D}${bindir} - install -d ${D}${libdir} - install -d ${D}${prefix}/${EAT_TARGET_SYS}/lib/ldscripts - install -d ${D}${libexecdir} - ${@oe.utils.conditional('PREFERRED_PROVIDER_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}', 'external-arm-sdk-toolchain', 'install -d ${D}${datadir}/gdb', '', d)} - ${@oe.utils.conditional('PREFERRED_PROVIDER_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}', 'external-arm-sdk-toolchain', 'install -d ${D}${datadir}/info', '', d)} - ${@oe.utils.conditional('PREFERRED_PROVIDER_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}', 'external-arm-sdk-toolchain', 'install -d ${D}${datadir}/man/man1', '', d)} - install -d ${D}${gcclibdir}/${EAT_TARGET_SYS}/${EAT_VER_GCC}/include - - cp -a ${TOOLCHAIN_PATH}/${EAT_TARGET_SYS}/${LIBDIR}/{libstdc++.*,libgcc_s.*,libsupc++.*} ${D}${prefix}/${EAT_TARGET_SYS}/lib - cp -a ${TOOLCHAIN_PATH}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/* ${D}${gcclibdir}/${EAT_TARGET_SYS}/${EAT_VER_GCC} - cp -a ${TOOLCHAIN_PATH}/bin/${TARGET_PREFIX}{gcov,gcc*,g++,cpp} ${D}${bindir} - cp -a ${TOOLCHAIN_PATH}/libexec/* ${D}${libexecdir} - - ${@oe.utils.conditional('PREFERRED_PROVIDER_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}', 'external-arm-sdk-toolchain', 'cp -a ${TOOLCHAIN_PATH}/bin/${TARGET_PREFIX}gdb* ${D}${bindir}', '', d)} - ${@oe.utils.conditional('PREFERRED_PROVIDER_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}', 'external-arm-sdk-toolchain', 'cp -a ${TOOLCHAIN_PATH}/share/gdb/* ${D}${datadir}/gdb/', '', d)} - ${@oe.utils.conditional('PREFERRED_PROVIDER_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}', 'external-arm-sdk-toolchain', 'cp -a ${TOOLCHAIN_PATH}/share/info/* ${D}${datadir}/info/', '', d)} - ${@oe.utils.conditional('PREFERRED_PROVIDER_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}', 'external-arm-sdk-toolchain', 'cp -a ${TOOLCHAIN_PATH}/share/man/man1/${TARGET_PREFIX}* ${D}${datadir}/man/man1/', '', d)} - - cp -a ${TOOLCHAIN_PATH}/${EAT_TARGET_SYS}/bin/{ld*,objcopy,strip,nm,ranlib,as,ar,objdump} ${D}${prefix}/${EAT_TARGET_SYS}/bin - cp -a ${TOOLCHAIN_PATH}/${EAT_TARGET_SYS}/lib/ldscripts/* ${D}${prefix}/${EAT_TARGET_SYS}/lib/ldscripts - cp -a ${TOOLCHAIN_PATH}/bin/${TARGET_PREFIX}{ld*,addr2line,objcopy,readelf,strip,nm,ranlib,gprof,as,c++filt,ar,strings,objdump,size} ${D}${bindir} -} diff --git a/meta-arago-extras/recipes-core/meta/external-arm-toolchain.bbappend b/meta-arago-extras/recipes-core/meta/external-arm-toolchain.bbappend deleted file mode 100644 index 478ba2ba..00000000 --- a/meta-arago-extras/recipes-core/meta/external-arm-toolchain.bbappend +++ /dev/null @@ -1,73 +0,0 @@ -ORIG_TARGET_SYS = "${TARGET_ARCH}${TARGET_VENDOR}${@['-' + d.getVar('TARGET_OS'), ''][d.getVar('TARGET_OS') == ('' or 'custom')]}" - -do_install:append() { - install -d ${D}${base_sbindir} - cp -a ${TOOLCHAIN_PATH}/${EAT_TARGET_SYS}/libc/${base_sbindir}/ldconfig ${D}${base_sbindir}/ - install -d ${D}${sysconfdir} - echo -e "/lib\n/usr/lib" >> ${D}${sysconfdir}/ld.so.conf - - if [ ${EAT_TARGET_SYS} != ${ORIG_TARGET_SYS} ]; then - ln -sf ${EAT_TARGET_SYS} ${D}${libdir}/${ORIG_TARGET_SYS} - ln -sf ${EAT_TARGET_SYS} ${D}${includedir}/c++/${EAT_VER_GCC}/${ORIG_TARGET_SYS} - mv ${D}${libdir}/gcc/${EAT_TARGET_SYS} ${D}${libdir}/gcc/${ORIG_TARGET_SYS} - ln -sf ${ORIG_TARGET_SYS} ${D}${libdir}/gcc/${EAT_TARGET_SYS} - fi - - ln -sf libatomic.so.1 ${D}${libdir}/libatomic.so - ln -sf libgomp.so.1 ${D}${libdir}/libgomp.so - ln -sf libitm.so.1 ${D}${libdir}/libitm.so - ln -sf libssp.so.0 ${D}${libdir}/libssp.so - ln -sf libstdc++.so.6 ${D}${libdir}/libstdc++.so - ln -sf libubsan.so.1 ${D}${libdir}/libubsan.so - ln -sf libasan.so.5 ${D}${libdir}/libasan.so - ln -sf libgfortran.so.5 ${D}${libdir}/libgfortran.so - - cp ${CP_ARGS} ${EXTERNAL_TOOLCHAIN}/lib/gcc/${EAT_TARGET_SYS}/${EAT_VER_GCC}/libgcc* ${D}${libdir}/${EAT_TARGET_SYS}/${EAT_VER_GCC}/ -} - -# Below FILES:* overrides are due to TARGET_SYS -> ORIG_TARGET_SYS move in ${libdir}/gcc -# to enable native compile on the target -FILES:libgcov-staticdev = "${libdir}/gcc/${ORIG_TARGET_SYS}/${BINV}/libgcov.a" - -FILES:libgfortran-dev = "\ - ${libdir}/libgfortran*.so \ - ${libdir}/libgfortran.spec \ - ${libdir}/libgfortran.la \ - ${libdir}/gcc/${ORIG_TARGET_SYS}/${BINV}/libgfortranbegin.* \ - ${libdir}/gcc/${ORIG_TARGET_SYS}/${BINV}/libcaf_single* \ - ${libdir}/gcc/${ORIG_TARGET_SYS}/${BINV}/finclude/ \ -" - -FILES:gcc-sanitizers = "${libdir}/*.spec ${libdir}/gcc/${ORIG_TARGET_SYS}/${BINV}/include/sanitizer/*.h" - -# This is provided by gcc: -# ${libdir}/gcc/${ORIG_TARGET_SYS}/${BINV}/include -FILES:libgcc-dev = "\ - ${base_libdir}/libgcc*.so \ - ${@oe.utils.conditional('BASETARGET_SYS', '${ORIG_TARGET_SYS}', '', '${libdir}/${BASETARGET_SYS}', d)} \ - ${libdir}/${TARGET_SYS}/${BINV}* \ - ${libdir}/${TARGET_ARCH}${TARGET_VENDOR}* \ - ${libdir}/gcc/${TARGET_SYS} \ -" - -FILES:libssp-dev = "\ - ${libdir}/libssp*.so \ - ${libdir}/libssp*_nonshared.a \ - ${libdir}/libssp*.la \ - ${libdir}/gcc/${ORIG_TARGET_SYS}/${BINV}/include/ssp \ -" - -FILES:libquadmath-dev = "\ - ${libdir}/libquadmath*.so \ - ${libdir}/libquadmath.la \ - ${libdir}/gcc/${ORIG_TARGET_SYS}/${BINV}/include/quadmath* \ -" - -FILES:libgomp-dev = "\ - ${libdir}/libgomp*${SOLIBSDEV} \ - ${libdir}/libgomp*.la \ - ${libdir}/libgomp.spec \ - ${libdir}/gcc/${ORIG_TARGET_SYS}/${BINV}/include/omp.h \ -" - -INSANE_SKIP:libgcc-dev += "staticdev" From patchwork Mon May 22 18:38:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randolph Sapp X-Patchwork-Id: 24277 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 F10CDC7EE23 for ; Mon, 22 May 2023 18:38:55 +0000 (UTC) Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by mx.groups.io with SMTP id smtpd.web10.3155.1684780733645592973 for ; Mon, 22 May 2023 11:38:53 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17q1 header.b=Fcv+2H7T; spf=pass (domain: ti.com, ip: 198.47.23.249, mailfrom: rs@ti.com) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 34MIcpwC117421; Mon, 22 May 2023 13:38:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1684780731; bh=quZ3yH1D9f/gmdLSszH3rew4b0y8hTjg1zLKmppBGHA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Fcv+2H7TsMWieqvyU4N3Zl8vrlacjh8380VYvInL9mjzPAwjArb3N6HQCczm0kQQR MpWXhz92IoB78m1depoBupNUfM/V7KO9P1TWSxFkLtxuvHNtwUuISz4DlWG+JE0yBf BuIUXs7wtT7JOi0uHusfeWf5HftRSZzj0e4OMW+k= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 34MIcpNt115278 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 22 May 2023 13:38:51 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 22 May 2023 13:38:51 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 22 May 2023 13:38:50 -0500 Received: from rs-desk.dhcp.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 34MIcnoE092240; Mon, 22 May 2023 13:38:51 -0500 From: To: , , CC: , Randolph Sapp Subject: [meta-arago][master][PATCH 2/3] all: remove all external toolchain logic Date: Mon, 22 May 2023 13:38:46 -0500 Message-ID: <20230522183847.3663294-3-rs@ti.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230522183847.3663294-1-rs@ti.com> References: <20230522183847.3663294-1-rs@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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, 22 May 2023 18:38:55 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/14430 From: Randolph Sapp Remove all legacy external toolchain logic, packages, groups, etc. All of this was required for the Arago SDK build target and is not necessary moving forward. This build target can and should be replaced by the Yocto Standard SDK build target: bitbake tisdk-default-image -c populate_sdk Signed-off-by: Randolph Sapp --- meta-arago-distro/conf/distro/arago.conf | 13 - .../distro/include/branding-processor-sdk.inc | 2 - .../distro/include/toolchain-external.inc | 4 - .../conf/distro/include/toolchain-gcc.inc | 41 -- .../distro/include/toolchain-internal.inc | 4 - .../meta/meta-toolchain-arago-tisdk-server.bb | 7 - .../meta/meta-toolchain-arago-tisdk.bb | 6 - .../meta/meta-toolchain-arago-tisdk.inc | 8 - .../meta/meta-toolchain-arago-qte.bb | 54 --- .../recipes-core/meta/meta-toolchain-arago.bb | 360 ------------------ .../nativesdk-buildtools-perl-dummy.bbappend | 23 -- ...k-packagegroup-arago-qte-toolchain-host.bb | 11 - 12 files changed, 533 deletions(-) delete mode 100644 meta-arago-distro/conf/distro/include/toolchain-external.inc delete mode 100644 meta-arago-distro/conf/distro/include/toolchain-gcc.inc delete mode 100644 meta-arago-distro/conf/distro/include/toolchain-internal.inc delete mode 100644 meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk-server.bb delete mode 100644 meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.bb delete mode 100644 meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.inc delete mode 100644 meta-arago-extras/recipes-core/meta/meta-toolchain-arago-qte.bb delete mode 100644 meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb delete mode 100644 meta-arago-extras/recipes-core/meta/nativesdk-buildtools-perl-dummy.bbappend delete mode 100644 meta-arago-extras/recipes-core/packagegroups/nativesdk-packagegroup-arago-qte-toolchain-host.bb diff --git a/meta-arago-distro/conf/distro/arago.conf b/meta-arago-distro/conf/distro/arago.conf index 379b1d44..ed04602e 100644 --- a/meta-arago-distro/conf/distro/arago.conf +++ b/meta-arago-distro/conf/distro/arago.conf @@ -137,16 +137,6 @@ ARAGO_SYSTEST_ENABLE ?= "0" ARAGO_KERNEL_SUFFIX:append = "${@oe.utils.conditional("ARAGO_SYSTEST_ENABLE", "1", "-systest", "", d)}" IMAGE_FSTYPES:remove = "${@['','ubi ubifs'][d.getVar('ARAGO_SYSTEST_ENABLE') == '1']}" -# Toolchain should be selected by setting TOOLCHAIN_BRAND in local.conf -# Set some sane defaults, in case someone forgets to set them in local.conf -TC_SANE_DEFAULT ?= "arm" -TOOLCHAIN_TYPE ?= "internal" -TOOLCHAIN_TYPE:omapl138 = "internal" -TOOLCHAIN_BRAND ?= "${@[d.getVar('TC_SANE_DEFAULT'),'gcc'][d.getVar('TOOLCHAIN_TYPE') == 'internal']}" - -require conf/distro/include/toolchain-${TOOLCHAIN_BRAND}.inc -require conf/distro/include/toolchain-${TOOLCHAIN_TYPE}.inc - # Enable basic stack and buffer overflow protections #TARGET_CPPFLAGS += "-fstack-protector -D_FORTIFY_SOURCE=1" #TARGET_CPPFLAGS += "-fstack-protector" @@ -179,6 +169,3 @@ ENTERPRISE_DISTRO = "1" # Arago based SDK. No need to prevent gst-ffmpeg from being used since we # disable troublesome software. LICENSE_FLAGS_ACCEPTED = "commercial_gst-ffmpeg commercial_gstreamer1.0-libav commercial_faad2 non-commercial_netperf" - -# Do not package own copy of perl into devkit, rely on host one -ASSUME_PROVIDED += "nativesdk-perl" diff --git a/meta-arago-distro/conf/distro/include/branding-processor-sdk.inc b/meta-arago-distro/conf/distro/include/branding-processor-sdk.inc index 25bb1b8c..f581dd93 100644 --- a/meta-arago-distro/conf/distro/include/branding-processor-sdk.inc +++ b/meta-arago-distro/conf/distro/include/branding-processor-sdk.inc @@ -1,5 +1,3 @@ -ARAGO_TISDK_IMAGE = "processor-sdk-linux-image" - # Set CMEM reserved memory region RESERVE_CMEM = "${@bb.utils.contains('MACHINE_FEATURES','dsp','1','0',d)}" CMEM_BASE:omap-a15 ?= "a0000000" diff --git a/meta-arago-distro/conf/distro/include/toolchain-external.inc b/meta-arago-distro/conf/distro/include/toolchain-external.inc deleted file mode 100644 index c48b09d4..00000000 --- a/meta-arago-distro/conf/distro/include/toolchain-external.inc +++ /dev/null @@ -1,4 +0,0 @@ -# Set some default toolchain location variables -TOOLCHAIN_PATH ??= "/usr/local/sdk" -TOOLCHAIN_SYSPATH = "${TOOLCHAIN_PATH}/${TOOLCHAIN_SYS}" -EXTERNAL_TOOLCHAIN = "${TOOLCHAIN_PATH}" diff --git a/meta-arago-distro/conf/distro/include/toolchain-gcc.inc b/meta-arago-distro/conf/distro/include/toolchain-gcc.inc deleted file mode 100644 index 78957364..00000000 --- a/meta-arago-distro/conf/distro/include/toolchain-gcc.inc +++ /dev/null @@ -1,41 +0,0 @@ -# Select internal gcc toolchain to be built from sources -TCMODE = "default" -TCLIBC = "glibc" - -LIBCEXTENSION = "${@['', '-gnu'][(d.getVar('ABIEXTENSION') or '') != '']}" - -# Match some of the external vars -TOOLCHAIN_SYS := "${TARGET_SYS}" -TOOLCHAIN_PREFIX := "${TARGET_PREFIX}" - -PREFERRED_PROVIDER_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "gcc-cross-canadian-${TRANSLATED_TARGET_ARCH}" -PREFERRED_PROVIDER_binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "binutils-cross-canadian-${TRANSLATED_TARGET_ARCH}" -PREFERRED_PROVIDER_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = "gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}" - -# Set Cross and SDK toolchain preferences -SDKGCCVERSION ?= "12%" -SDKBINUVERSION ?= "2.40%" -SDKGLIBCVERSION ?= "2.37%" - -PREFERRED_VERSION_gcc-crosssdk-${SDK_SYS} ?= "${SDKGCCVERSION}" -PREFERRED_VERSION_gcc-crosssdk-initial-${SDK_SYS} ?= "${SDKGCCVERSION}" -PREFERRED_VERSION_binutils-crosssdk-${SDK_SYS} ?= "${SDKBINUVERSION}" - -PREFERRED_VERSION_nativesdk-gcc-runtime ?= "${SDKGCCVERSION}" -PREFERRED_VERSION_nativesdk-libgcc ?= "${SDKGCCVERSION}" -PREFERRED_VERSION_nativesdk-libgcc-initial ?= "${SDKGCCVERSION}" -PREFERRED_VERSION_nativesdk-glibc ?= "${SDKGLIBCVERSION}" -PREFERRED_VERSION_nativesdk-glibc-locale ?= "${SDKGLIBCVERSION}" -PREFERRED_VERSION_nativesdk-glibc-initial ?= "${SDKGLIBCVERSION}" - -# Set target toolchain preferences to match Cross/SDK by default -# Can be overwritten globally, if needed -GCCVERSION ?= "12%" -BINUVERSION ?= "2.40%" -GLIBCVERSION ?= "2.37%" - -PREFERRED_VERSION_gcc ?= "${GCCVERSION}" -PREFERRED_VERSION_binutils ?= "${BINUVERSION}" -PREFERRED_VERSION_glibc ?= "${GLIBCVERSION}" -PREFERRED_VERSION_glibc-locale ?= "${GLIBCVERSION}" -PREFERRED_VERSION_glibc-initial ?= "${GLIBCVERSION}" diff --git a/meta-arago-distro/conf/distro/include/toolchain-internal.inc b/meta-arago-distro/conf/distro/include/toolchain-internal.inc deleted file mode 100644 index cbc3b53d..00000000 --- a/meta-arago-distro/conf/distro/include/toolchain-internal.inc +++ /dev/null @@ -1,4 +0,0 @@ -# No special handling is required for locating the internal toolchain, just re-use existing vars -TOOLCHAIN_PATH ?= "${STAGING_BINDIR_TOOLCHAIN}" -TOOLCHAIN_SYSPATH ?= "${TOOLCHAIN_PATH}/${TARGET_SYS}" -EXTERNAL_TOOLCHAIN = "${TOOLCHAIN_PATH}" diff --git a/meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk-server.bb b/meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk-server.bb deleted file mode 100644 index 3e781d06..00000000 --- a/meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk-server.bb +++ /dev/null @@ -1,7 +0,0 @@ -TOOLCHAIN_HOST_TASK ?= "nativesdk-packagegroup-arago-tisdk-host" -TOOLCHAIN_SUFFIX ?= "-tisdk-server" - -require meta-toolchain-arago-tisdk.inc -require recipes-core/meta/meta-toolchain-arago.bb - -PR = "${INC_PR}.0" diff --git a/meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.bb b/meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.bb deleted file mode 100644 index 4f272a52..00000000 --- a/meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.bb +++ /dev/null @@ -1,6 +0,0 @@ -TOOLCHAIN_SUFFIX ?= "-tisdk" - -require meta-toolchain-arago-tisdk.inc -require recipes-core/meta/meta-toolchain-arago-qte.bb - -PR = "${INC_PR}.0" diff --git a/meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.inc b/meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.inc deleted file mode 100644 index e8d389c5..00000000 --- a/meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.inc +++ /dev/null @@ -1,8 +0,0 @@ -TOOLCHAIN_TARGET_TASK ?= "packagegroup-arago-toolchain-tisdk-target" -TOOLCHAIN_CLEANUP_PACKAGES ?= "libgnutls-dev libgnutls-extra26 libgnutls-openssl27 libtasn1-dev coreutils" - -INC_PR = "r5" - -toolchain_create_sdk_env_script:append() { - echo -e 'export PS1="\[\\e[32;1m\][linux-devkit]\[\\e[0m\]:\w> "' >> $script -} diff --git a/meta-arago-extras/recipes-core/meta/meta-toolchain-arago-qte.bb b/meta-arago-extras/recipes-core/meta/meta-toolchain-arago-qte.bb deleted file mode 100644 index 41dff492..00000000 --- a/meta-arago-extras/recipes-core/meta/meta-toolchain-arago-qte.bb +++ /dev/null @@ -1,54 +0,0 @@ -# Qt Embedded toolchain -TOOLCHAIN_HOST_TASK ?= "nativesdk-packagegroup-arago-qte-toolchain-host" -TOOLCHAIN_TARGET_TASK ?= "packagegroup-arago-qte-toolchain-target" -TOOLCHAIN_SUFFIX ?= "-qte-sdk" - -require meta-toolchain-arago.bb - -PR = "r20" - -QT_MKSPECS_LOCATION = "${libdir}" -QT_MKSPECS_DIR = "linux-oe-g++" - -toolchain_create_sdk_env_script:append() { - echo 'export PATH=$SDK_PATH_NATIVE${bindir_nativesdk}/${QT_DIR_NAME}:$PATH' >> $script - echo 'export OE_QMAKE_CFLAGS="$CFLAGS"' >> $script - echo 'export OE_QMAKE_CXXFLAGS="$CXXFLAGS"' >> $script - echo 'export OE_QMAKE_LDFLAGS="$LDFLAGS"' >> $script - echo 'export OE_QMAKE_CC="$CC"' >> $script - echo 'export OE_QMAKE_CXX="$CXX"' >> $script - echo 'export OE_QMAKE_LINK="$CXX"' >> $script - echo 'export OE_QMAKE_AR="$AR"' >> $script - echo 'export OE_QMAKE_PREFIX_QT=${prefix}' >> $script - echo 'export OE_QMAKE_LIBDIR_QT=${libdir}' >> $script - echo 'export OE_QMAKE_INCDIR_QT=${includedir}/${QT_DIR_NAME}' >> $script - echo 'export OE_QMAKE_HOST_BINDIR_QT=$SDK_PATH_NATIVE${bindir_nativesdk}/${QT_BIN_PREFIX}' >> $script - echo 'export OE_QMAKE_MOC=$SDK_PATH_NATIVE${bindir_nativesdk}/${QT_BIN_PREFIX}moc${QT_BIN_SUFFIX}' >> $script - echo 'export OE_QMAKE_UIC=$SDK_PATH_NATIVE${bindir_nativesdk}/${QT_BIN_PREFIX}uic${QT_BIN_SUFFIX}' >> $script - echo 'export OE_QMAKE_UIC3=$SDK_PATH_NATIVE${bindir_nativesdk}/${QT_BIN_PREFIX}uic3${QT_BIN_SUFFIX}' >> $script - echo 'export OE_QMAKE_RCC=$SDK_PATH_NATIVE${bindir_nativesdk}/${QT_BIN_PREFIX}rcc${QT_BIN_SUFFIX}' >> $script - echo 'export OE_QMAKE_QDBUSCPP2XML=$SDK_PATH_NATIVE${bindir_nativesdk}/${QT_BIN_PREFIX}qdbuscpp2xml${QT_BIN_SUFFIX}' >> $script - echo 'export OE_QMAKE_QDBUSXML2CPP=$SDK_PATH_NATIVE${bindir_nativesdk}/${QT_BIN_PREFIX}qdbusxml2cpp${QT_BIN_SUFFIX}' >> $script - echo 'export OE_QMAKE_QT_CONFIG=$SDK_PATH_TARGET${QT_MKSPECS_LOCATION}/${QT_DIR_NAME}/mkspecs/qconfig.pri' >> $script - echo 'export OE_QMAKE_STRIP="echo"' >> $script - echo 'export QMAKESPEC=$SDK_PATH_TARGET${QT_MKSPECS_LOCATION}/${QT_DIR_NAME}/mkspecs/${QT_MKSPECS_DIR}' >> $script - echo 'export QMAKE_DEFAULT_LIBDIRS=${QT_QMAKE_LIBDIR_QT}' >> $script - echo 'export QMAKE_DEFAULT_INCDIRS=${QT_QMAKE_INCDIR_QT}' >> $script - - #Adds qt.conf file that points qmake to properly locate Qt library and header files. - #This enables Qt Creator to work properly - - qt_conf="${SDK_OUTPUT}/${SDKPATHNATIVE}${bindir_nativesdk}/${QT_BIN_PREFIX}qt.conf" - touch $qt_conf - echo '[Paths]' >> $qt_conf - echo 'Prefix = $(OE_QMAKE_PREFIX_QT)' >> $qt_conf - echo 'Libraries = $(OE_QMAKE_LIBDIR_QT)' >> $qt_conf - echo 'Headers = $(OE_QMAKE_INCDIR_QT)' >> $qt_conf - echo 'HostPrefix = $(SDK_PATH_NATIVE)' >> $qt_conf - echo 'HostBinaries = $(OE_QMAKE_HOST_BINDIR_QT)' >> $qt_conf - echo 'Sysroot = $(SDK_PATH_TARGET)' >> $qt_conf - - # make a symbolic link to mkspecs for compatibility with Qt SDK and QTCreator - (cd ${SDK_OUTPUT}/${SDKTARGETSYSROOT}; ln -sf .${QT_MKSPECS_LOCATION}/${QT_DIR_NAME}/mkspecs mkspecs;) - (cd ${SDK_OUTPUT}/${SDKPATHNATIVE}; ln -sf ../${REAL_MULTIMACH_TARGET_SYS}${QT_MKSPECS_LOCATION}/${QT_DIR_NAME}/mkspecs mkspecs;) -} diff --git a/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb b/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted file mode 100644 index 5c1c3ad0..00000000 --- a/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb +++ /dev/null @@ -1,360 +0,0 @@ -TOOLCHAIN_HOST_TASK ?= "nativesdk-packagegroup-sdk-host" -TOOLCHAIN_HOST_TASK:append = " nativesdk-buildtools-perl-dummy" -TOOLCHAIN_HOST_TASK:append = " packagegroup-cross-canadian-${MACHINE}" -TOOLCHAIN_TARGET_TASK ?= "packagegroup-arago-standalone-sdk-target" -TOOLCHAIN_SUFFIX ?= "-sdk" -TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}${TOOLCHAIN_SUFFIX}" -TOOLCHAIN_CLEANUP_PACKAGES ?= "" -SDKIMAGE_FEATURES = "package-management" -SDK_PACKAGE_ARCHS += "buildtools-dummy-${SDKPKGSUFFIX}" - -inherit toolchain-scripts - -require recipes-core/meta/meta-toolchain.bb - -PR = "r35" - -# This function creates an environment-setup-script for use in a deployable SDK -toolchain_create_sdk_env_script () { - # Create environment setup script - script=${SDK_OUTPUT}/${SDKPATH}/environment-setup - rm -f $script - touch $script - echo 'SDK_PATH="${SDKPATH}"' >> $script - echo 'if [ -z "$ZSH_NAME" ] && [ "x$0" = "x./environment-setup" ]; then' >> $script - echo ' echo "Error: This script needs to be sourced. Please run as \". ./environment-setup\""' >> $script - echo ' exit 1' >> $script - echo 'else' >> $script - echo ' if [ -n "$BASH_SOURCE" ]; then' >> $script - echo ' SDK_PATH="`dirname $BASH_SOURCE`"' >> $script - echo ' fi' >> $script - echo ' SDK_PATH=`readlink -f "$SDK_PATH"`' >> $script - echo ' export SDK_PATH' >> $script - echo 'fi' >> $script - echo 'export SDK_SYS=${SDK_SYS}' >> $script - echo 'export REAL_MULTIMACH_TARGET_SYS=${REAL_MULTIMACH_TARGET_SYS}' >> $script - echo 'export TOOLCHAIN_SYS=${TOOLCHAIN_SYS}' >> $script - echo 'export TOOLCHAIN_PREFIX=$TOOLCHAIN_SYS-' >> $script - echo 'export SDK_PATH_NATIVE=$SDK_PATH/sysroots/$SDK_SYS' >> $script - echo 'export SDK_PATH_TARGET=$SDK_PATH/sysroots/$REAL_MULTIMACH_TARGET_SYS' >> $script - echo 'export PATH=$SDK_PATH_NATIVE${bindir_nativesdk}:$SDK_PATH_NATIVE${bindir_nativesdk}/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}:$PATH' >> $script - echo 'export CPATH=$SDK_PATH_TARGET/usr/include:$CPATH' >> $script - echo 'export PKG_CONFIG_SYSROOT_DIR=$SDK_PATH_TARGET' >> $script - echo 'export PKG_CONFIG_PATH=$SDK_PATH_TARGET${libdir}/pkgconfig:$SDK_PATH_TARGET${datadir}/pkgconfig' >> $script - echo 'export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1' >> $script - echo 'export CONFIG_SITE=$SDK_PATH/site-config-$REAL_MULTIMACH_TARGET_SYS' >> $script - printf 'export CC="\x24{TOOLCHAIN_PREFIX}gcc --sysroot=$SDK_PATH_TARGET"\n' >> $script - printf 'export CXX="\x24{TOOLCHAIN_PREFIX}g++ --sysroot=$SDK_PATH_TARGET"\n' >> $script - printf 'export GDB=\x24{TOOLCHAIN_PREFIX}gdb\n' >> $script - printf 'export CPP="\x24{TOOLCHAIN_PREFIX}gcc -E --sysroot=$SDK_PATH_TARGET"\n' >> $script - printf 'export LD="\x24{TOOLCHAIN_PREFIX}ld --sysroot=$SDK_PATH_TARGET"\n' >> $script - printf 'export NM=\x24{TOOLCHAIN_PREFIX}nm\n' >> $script - printf 'export AS=\x24{TOOLCHAIN_PREFIX}as\n' >> $script - printf 'export AR=\x24{TOOLCHAIN_PREFIX}ar\n' >> $script - printf 'export RANLIB=\x24{TOOLCHAIN_PREFIX}ranlib\n' >> $script - printf 'export OBJCOPY=\x24{TOOLCHAIN_PREFIX}objcopy\n' >> $script - printf 'export OBJDUMP=\x24{TOOLCHAIN_PREFIX}objdump\n' >> $script - printf 'export STRIP=\x24{TOOLCHAIN_PREFIX}strip\n' >> $script - echo 'export CONFIGURE_FLAGS="--target=${TARGET_SYS} --host=${TARGET_SYS} --build=${SDK_ARCH}-linux --with-libtool-sysroot=$SDK_PATH_TARGET"' >> $script - echo 'export CPPFLAGS="${TARGET_CC_ARCH} --sysroot=$SDK_PATH_TARGET"' >> $script - echo 'export CFLAGS="$CPPFLAGS"' >> $script - echo 'export CXXFLAGS="$CPPFLAGS"' >> $script - echo 'export LDFLAGS="${TARGET_LD_ARCH} --sysroot=$SDK_PATH_TARGET"' >> $script - echo 'export OECORE_NATIVE_SYSROOT=$SDK_PATH_NATIVE' >> $script - echo 'export OECORE_TARGET_SYSROOT=$SDK_PATH_TARGET' >> $script - echo 'export SDKTARGETSYSROOT=$SDK_PATH_TARGET' >> $script - echo 'export OECORE_ACLOCAL_OPTS="-I $SDK_PATH_NATIVE/usr/share/aclocal"' >> $script - echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script - echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script - echo 'export OECORE_BASELIB="${baselib}"' >> $script - echo 'export OECORE_TARGET_ARCH="${TARGET_ARCH}"' >>$script - echo 'export OECORE_TARGET_OS="${TARGET_OS}"' >>$script - - # Borrowed from oe-core/meta/classes/toolchain-scripts.bbclass - cat >> $script < ${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.${SDK_ARCHIVE_TYPE} -} - -fakeroot create_shar() { - cat << "EOF" > ${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.sh -#!/bin/bash - -INST_ARCH=$(uname -m | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/") -SDK_ARCH=$(echo ${SDK_ARCH} | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/") - -if [ "$INST_ARCH" != "$SDK_ARCH" ]; then - # Allow for installation of ix86 SDK on x86_64 host - if [ "$INST_ARCH" != x86_64 -o "$SDK_ARCH" != ix86 ]; then - echo "Error: Installation machine not supported!" - exit 1 - fi -fi - -DEFAULT_INSTALL_DIR="${SDKPATHINSTALL}" -TMPSDKPATH="${SDKPATH}" -SUDO_EXEC="" -target_sdk_dir="" -answer="" -relocate=1 -savescripts=0 -verbose=0 -while getopts ":yd:DRS" OPT; do - case $OPT in - y) - answer="Y" - [ "$target_sdk_dir" = "" ] && target_sdk_dir=$DEFAULT_INSTALL_DIR - ;; - d) - target_sdk_dir=$OPTARG - ;; - D) - verbose=1 - ;; - R) - relocate=0 - savescripts=1 - ;; - S) - savescripts=1 - ;; - *) - echo "Usage: $(basename $0) [-y] [-d ]" - echo " -y Automatic yes to all prompts" - echo " -d Install the SDK to " - echo "======== Advanced DEBUGGING ONLY OPTIONS ========" - echo " -S Save relocation scripts" - echo " -R Do not relocate executables" - echo " -D use set -x to see what is going on" - exit 1 - ;; - esac -done - -if [ $verbose = 1 ] ; then - set -x -fi - -printf "Enter target directory for SDK (default: $DEFAULT_INSTALL_DIR): " -if [ "$target_sdk_dir" = "" ]; then - read target_sdk_dir - [ "$target_sdk_dir" = "" ] && target_sdk_dir=$DEFAULT_INSTALL_DIR -else - echo "$target_sdk_dir" -fi - -eval target_sdk_dir=$(echo "$target_sdk_dir"|sed 's/ /\\ /g') -if [ -d "$target_sdk_dir" ]; then - target_sdk_dir=$(cd "$target_sdk_dir"; pwd) -else - target_sdk_dir=$(readlink -m "$target_sdk_dir") -fi - -if [ -n "$(echo $target_sdk_dir|grep ' ')" ]; then - echo "The target directory path ($target_sdk_dir) contains spaces. Abort!" - exit 1 -fi - -if [ -e "$target_sdk_dir/environment-setup*" ]; then - echo "The directory \"$target_sdk_dir\" already contains a SDK for this architecture." - printf "If you continue, existing files will be overwritten! Proceed[y/N]?" - - default_answer="n" -else - printf "You are about to install the SDK to \"$target_sdk_dir\". Proceed[Y/n]?" - - default_answer="y" -fi - -if [ "$answer" = "" ]; then - read answer - [ "$answer" = "" ] && answer="$default_answer" -else - echo $answer -fi - -if [ "$answer" != "Y" -a "$answer" != "y" ]; then - echo "Installation aborted!" - exit 1 -fi - -# Try to create the directory (this will not succeed if user doesn't have rights) -mkdir -p $target_sdk_dir >/dev/null 2>&1 - -# if don't have the right to access dir, gain by sudo -if [ ! -x $target_sdk_dir -o ! -w $target_sdk_dir -o ! -r $target_sdk_dir ]; then - SUDO_EXEC=$(which "sudo") - if [ -z $SUDO_EXEC ]; then - echo "No command 'sudo' found, please install sudo first. Abort!" - exit 1 - fi - - # test sudo could gain root right - $SUDO_EXEC pwd >/dev/null 2>&1 - [ $? -ne 0 ] && echo "Sorry, you are not allowed to execute as root." && exit 1 - - # now that we have sudo rights, create the directory - $SUDO_EXEC mkdir -p $target_sdk_dir >/dev/null 2>&1 -fi - -payload_offset=$(($(grep -na -m1 "^MARKER:$" $0|cut -d':' -f1) + 1)) - -printf "Extracting SDK..." -tail -n +$payload_offset $0| $SUDO_EXEC tar xJ -C $target_sdk_dir -echo "done" - -printf "Setting it up..." -# fix environment paths -for env_setup_script in `ls $target_sdk_dir/environment-setup*`; do - $SUDO_EXEC sed -e "s:$TMPSDKPATH:$target_sdk_dir:g" -i $env_setup_script -done - -# fix dynamic loader paths in all ELF SDK binaries -native_sysroot=$target_sdk_dir/sysroots/${SDK_SYS} -dl_path=$($SUDO_EXEC find $native_sysroot/lib -name "ld-linux*") -if [ "$dl_path" = "" ] ; then - echo "SDK could not be set up. Relocate script unable to find ld-linux.so. Abort!" - exit 1 -fi -executable_files=$($SUDO_EXEC find $native_sysroot -type f -perm /111 -exec file '{}' \;| grep "\(executable\|dynamically linked\|static-pie linked\)" | cut -f 1 -d ':') - -tdir=`mktemp -d` -if [ x$tdir = x ] ; then - echo "SDK relocate failed, could not create a temporary directory" - exit 1 -fi -echo "#!/bin/bash" > $tdir/relocate_sdk.sh -echo exec ${env_setup_script%/*}/relocate_sdk.py $target_sdk_dir $dl_path $executable_files >> $tdir/relocate_sdk.sh -$SUDO_EXEC mv $tdir/relocate_sdk.sh ${env_setup_script%/*}/relocate_sdk.sh -$SUDO_EXEC chmod 755 ${env_setup_script%/*}/relocate_sdk.sh -rm -rf $tdir -if [ $relocate = 1 ] ; then - $SUDO_EXEC ${env_setup_script%/*}/relocate_sdk.sh - if [ $? -ne 0 ]; then - echo "SDK could not be set up. Relocate script failed. Abort!" - exit 1 - fi -fi - -# replace ${SDKPATH} with the new prefix in all text files: configs/scripts/etc -$SUDO_EXEC find $native_sysroot -type f -exec file '{}' \;|grep ":.*\(ASCII\|script\|source\).*text"|awk -F":" '{print "\""$1"\""}'|$SUDO_EXEC xargs sed -i -e "s:$TMPSDKPATH:$target_sdk_dir:g" - -# change all symlinks pointing to ${SDKPATH} -for l in $($SUDO_EXEC find $native_sysroot -type l); do - $SUDO_EXEC ln -sfn $(readlink $l|$SUDO_EXEC sed -e "s:$TMPSDKPATH:$target_sdk_dir:") $l -done - -# find out all perl scripts in $native_sysroot and modify them replacing the -# host perl with SDK perl. -for perl_script in $($SUDO_EXEC find $native_sysroot -type f -exec grep "^#!.*perl" -l '{}' \;); do - $SUDO_EXEC sed -i -e "s:^#! */usr/bin/perl.*:#! /usr/bin/env perl:g" -e \ - "s: /usr/bin/perl: /usr/bin/env perl:g" $perl_script -done - -echo done - -# delete the relocating script, so that user is forced to re-run the installer -# if he/she wants another location for the sdk -if [ $savescripts = 0 ] ; then - $SUDO_EXEC rm ${env_setup_script%/*}/relocate_sdk.py ${env_setup_script%/*}/relocate_sdk.sh -fi - -echo "SDK has been successfully set up and is ready to be used." - -exit 0 - -MARKER: -EOF - # append the SDK tarball - cat ${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.${SDK_ARCHIVE_TYPE} >> ${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.sh - - # delete the old tarball, we don't need it anymore - rm ${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.${SDK_ARCHIVE_TYPE} -} diff --git a/meta-arago-extras/recipes-core/meta/nativesdk-buildtools-perl-dummy.bbappend b/meta-arago-extras/recipes-core/meta/nativesdk-buildtools-perl-dummy.bbappend deleted file mode 100644 index b83e4e35..00000000 --- a/meta-arago-extras/recipes-core/meta/nativesdk-buildtools-perl-dummy.bbappend +++ /dev/null @@ -1,23 +0,0 @@ -DUMMYPROVIDES += "\ - nativesdk-perl-module-bytes \ - nativesdk-perl-module-carp \ - nativesdk-perl-module-constant \ - nativesdk-perl-module-data-dumper \ - nativesdk-perl-module-errno \ - nativesdk-perl-module-exporter \ - nativesdk-perl-module-file-basename \ - nativesdk-perl-module-file-compare \ - nativesdk-perl-module-file-copy \ - nativesdk-perl-module-file-find \ - nativesdk-perl-module-file-glob \ - nativesdk-perl-module-file-spec \ - nativesdk-perl-module-file-spec-unix \ - nativesdk-perl-module-file-stat \ - nativesdk-perl-module-getopt-long \ - nativesdk-perl-module-io-file \ - nativesdk-perl-module-overloading \ - nativesdk-perl-module-posix \ - nativesdk-perl-module-symbol \ - nativesdk-perl-module-thread-queue \ - nativesdk-perl-module-threads \ -" diff --git a/meta-arago-extras/recipes-core/packagegroups/nativesdk-packagegroup-arago-qte-toolchain-host.bb b/meta-arago-extras/recipes-core/packagegroups/nativesdk-packagegroup-arago-qte-toolchain-host.bb deleted file mode 100644 index 4d2a98ad..00000000 --- a/meta-arago-extras/recipes-core/packagegroups/nativesdk-packagegroup-arago-qte-toolchain-host.bb +++ /dev/null @@ -1,11 +0,0 @@ -DESCRIPTION = "Host packages for Qt Embedded SDK" -PR = "r10" -LICENSE = "MIT" - -inherit packagegroup nativesdk - -RDEPENDS:${PN} = "\ - nativesdk-packagegroup-arago-tisdk-host \ - nativesdk-qtbase \ - nativesdk-qttools \ - " From patchwork Mon May 22 18:38:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Randolph Sapp X-Patchwork-Id: 24278 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 F2AC3C7EE2A for ; Mon, 22 May 2023 18:38:55 +0000 (UTC) Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by mx.groups.io with SMTP id smtpd.web10.3159.1684780734310351217 for ; Mon, 22 May 2023 11:38:54 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@ti.com header.s=ti-com-17q1 header.b=Chk+8o45; spf=pass (domain: ti.com, ip: 198.47.19.141, mailfrom: rs@ti.com) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 34MIcpIP041731; Mon, 22 May 2023 13:38:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1684780731; bh=k/gVlZXaXP6oBfXnWJ1ygABhNXioyBHZX80Y45jRv1Q=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Chk+8o45Sy/4+zjEFQ2qlmZH7/QngYOWIYcH6FTB7QlieRBg3vxFhzbMrPzqSOHIS YsdqzBVMdkStRvz8Y0KLpdG7Sl3VnaniiGaiFETPNUCa2UBinWN6R1FwMWHnhO+jsm GzKYaW5ZARbLtYzdy/kkgrCkFuevY1N/h2Ocb/H4= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 34MIcprj116881 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 22 May 2023 13:38:51 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 22 May 2023 13:38:51 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 22 May 2023 13:38:51 -0500 Received: from rs-desk.dhcp.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 34MIcnoF092240; Mon, 22 May 2023 13:38:51 -0500 From: To: , , CC: , Randolph Sapp Subject: [meta-arago][master][PATCH 3/3] all: remove all legacy arago-sdk build recipes Date: Mon, 22 May 2023 13:38:47 -0500 Message-ID: <20230522183847.3663294-4-rs@ti.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230522183847.3663294-1-rs@ti.com> References: <20230522183847.3663294-1-rs@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-MIME-Autoconverted: from 8bit to quoted-printable by fllv0015.ext.ti.com id 34MIcpIP041731 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, 22 May 2023 18:38:55 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/14433 From: Randolph Sapp Remove all the legacy arago-sdk build recipies, groups, targets, etc. All of this can be replaced by using the Yocto Standard SDK build target: bitbake tisdk-default-image -c populate_sdk For more info about the SDK build targets see: https://docs.yoctoproject.org/sdk-manual/appendix-obtain.html#building-an-sdk-installer There's probably still more that can be cleaned up, but I'll leave that to the more experienced. Signed-off-by: Randolph Sapp Acked-by: Andrew Davis --- .../classes/tisdk-bundle.bbclass | 928 ------------------ .../recipes-core/images/arago-image.inc | 1 - .../recipes-core/images/tisdk-core-bundle.bb | 19 - .../recipes-core/images/tisdk-core-bundle.inc | 39 - .../packagegroup-arago-gst-sdk-target.bb | 28 - ...kagegroup-arago-tisdk-addons-sdk-target.bb | 76 -- ...packagegroup-arago-tisdk-amsdk-sdk-host.bb | 18 - ...oup-arago-tisdk-connectivity-sdk-target.bb | 27 - ...kagegroup-arago-tisdk-crypto-sdk-target.bb | 14 - ...gegroup-arago-tisdk-graphics-sdk-target.bb | 15 - ...packagegroup-arago-tisdk-gtk-sdk-target.bb | 11 - ...group-arago-tisdk-multimedia-sdk-target.bb | 30 - ...kagegroup-arago-tisdk-opencl-sdk-target.bb | 22 - ...ckagegroup-arago-toolchain-tisdk-target.bb | 28 - .../opencl-examples-rtos_git.bbappend | 6 - .../oe-layersetup/oe-layersetup.bb | 13 - .../ti-tisdk-setup/ti-tisdk-setup.bb | 59 -- .../tisdk-install/sdk-install.sh | 129 --- .../tisdk-install/tisdk-install_1.0.bb | 15 - .../tisdk-readme/tisdk-readme.bb | 22 - .../tisdk-readme/tisdk-readme/README | 22 - .../tisdk-readme/tisdk-readme/k3/README | 26 - .../unshallow-repositories.sh | 110 --- .../unshallow-repositories_1.0.bb | 16 - ...nativesdk-packagegroup-arago-tisdk-host.bb | 39 - 25 files changed, 1713 deletions(-) delete mode 100644 meta-arago-distro/classes/tisdk-bundle.bbclass delete mode 100644 meta-arago-distro/recipes-core/images/tisdk-core-bundle.bb delete mode 100644 meta-arago-distro/recipes-core/images/tisdk-core-bundle.inc delete mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-gst-sdk-target.bb delete mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons-sdk-target.bb delete mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-amsdk-sdk-host.bb delete mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-connectivity-sdk-target.bb delete mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-crypto-sdk-target.bb delete mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-graphics-sdk-target.bb delete mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-gtk-sdk-target.bb delete mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia-sdk-target.bb delete mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-opencl-sdk-target.bb delete mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-toolchain-tisdk-target.bb delete mode 100644 meta-arago-distro/recipes-tisdk/ocl-rtos/opencl-examples-rtos_git.bbappend delete mode 100644 meta-arago-distro/recipes-tisdk/oe-layersetup/oe-layersetup.bb delete mode 100644 meta-arago-distro/recipes-tisdk/ti-tisdk-setup/ti-tisdk-setup.bb delete mode 100644 meta-arago-distro/recipes-tisdk/tisdk-install/tisdk-install/sdk-install.sh delete mode 100644 meta-arago-distro/recipes-tisdk/tisdk-install/tisdk-install_1.0.bb delete mode 100644 meta-arago-distro/recipes-tisdk/tisdk-readme/tisdk-readme.bb delete mode 100644 meta-arago-distro/recipes-tisdk/tisdk-readme/tisdk-readme/README delete mode 100644 meta-arago-distro/recipes-tisdk/tisdk-readme/tisdk-readme/k3/README delete mode 100755 meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories/unshallow-repositories.sh delete mode 100644 meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories_1.0.bb delete mode 100644 meta-arago-extras/recipes-core/packagegroups/nativesdk-packagegroup-arago-tisdk-host.bb diff --git a/meta-arago-distro/classes/tisdk-bundle.bbclass b/meta-arago-distro/classes/tisdk-bundle.bbclass deleted file mode 100644 index b92ca0c0..00000000 --- a/meta-arago-distro/classes/tisdk-bundle.bbclass +++ /dev/null @@ -1,928 +0,0 @@ -inherit rootfs_ipk -inherit image -inherit image_types - -# This defines the list of features that we want to include in the SDK -# image. The list of packages this will be installed for each features -# is controlled with the FEATURE_PACKAGES_ settings below. -IMAGE_FEATURES ?= "" -IMAGE_FEATURES[type] = "list" - -# Always add the sdk_base feature -IMAGE_FEATURES:prepend = "sdk_base package-management " -SDKIMAGE_FEATURES:prepend = "package-management " - -# Define our always included sdk package group as the IMAGE_INSTALL settings -# like you would expect. -FEATURE_PACKAGES_sdk_base = "${IMAGE_INSTALL}" - -# Create the list of packages to be installed -PACKAGE_INSTALL = "${@' '.join(oe.packagegroup.required_packages('${IMAGE_FEATURES}'.split(), d))}" - -RDEPENDS:${PN} += "${@' '.join(oe.packagegroup.active_packages('${IMAGE_FEATURES}'.split(), d))}" - -# "export IMAGE_BASENAME" not supported at this time -IMAGE_BASENAME[export] = "1" - -# SDK images are unique to a machine -PACKAGE_ARCH = "${MACHINE_ARCH}" - -# List of target side images to be built and packaged. By default take -# the base image but this can be modified if desired to package -# additional images. -TARGET_IMAGES ?= "tisdk-base-image" - -# path to install the meta-toolchain package in the SDK -TISDK_TOOLCHAIN_PATH ?= "linux-devkit" - -# meta toolchain recipe to build and package as part of the tisdk image -TISDK_TOOLCHAIN ?= "meta-toolchain-arago" -TOOLCHAIN_SUFFIX ?= "-sdk" - -# List of the type of target file system images we want to include -TARGET_IMAGE_TYPES ?= "tar.xz tar.gz ubi wic.gz wic.xz" - -# If EXTRA_TISDK_FILES points to a valid directory then all the contents -# of that directory will be added to the SDK using the same directory -# structure found inside of the EXTRA_TISDK_FILES directory. -# This can be set in the recipe or from the command line as long as -# the variable is in the BB_ENV_PASSTHROUGH_ADDITIONS list. -EXTRA_TISDK_FILES ?= "" - -# Variable to specify the name of SPL -DEPLOY_SPL_NAME ?= "MLO-${MACHINE}" - -# Add generic method of adding prebuilt-images -DEPLOY_IMAGES_NAME ?= "" - -# Variable to specify the name of SPL/UART -DEPLOY_SPL_UART_NAME ?= "u-boot-spl.bin-${MACHINE}" - -# Variable to specify the name of the TI SCI firmware -DEPLOY_TISCI_FW_NAME ?= "" - -# Manifest file location which will be created as part of the image build -# process. -# This manifest follows the TI manifest format requirements which is why -# it differs from some of the default manifest code in oe-core. -SW_MANIFEST_FILE ?= "${IMAGE_ROOTFS}/docs/software_manifest.htm" -SW_MANIFEST_TEXT ?= "${IMAGE_ROOTFS}/docs/software_manifest.txt" - -# helper function for generating a set of strings based on a list. Taken -# from the image.bbclass. -def string_set(iterable): - return ' '.join(set(iterable)) - -# Add a dependency for the do_rootfs function that will force us to build -# the TARGET_IMAGES first so that they will be available for packaging. -do_rootfs[depends] += "${@string_set('%s:do_image_complete' % pn for pn in (d.getVar("TARGET_IMAGES") or "").split())}" - -# Add a dependency for the do_populate_sdk function of the TIDSK_TOOLCHAIN -# variable which will force us to build the toolchain first so that it will be -# available for packaging -do_rootfs[depends] += "${@string_set('%s:do_populate_sdk' % pn for pn in (d.getVar("TISDK_TOOLCHAIN") or "").split())}" - -do_rootfs[nostamp] = "1" -do_rootfs[lockfiles] += "${IMAGE_ROOTFS}.lock" -do_rootfs[cleandirs] += "${S}" - -# Call the cleanup_host_packages to remove packages that should be removed from -# the host for various reasons. This may include licensing issues as well. -OPKG_POSTPROCESS_COMMANDS = "cleanup_host_packages; " - -# List of packages to remove from the SDK host package set -HOST_CLEANUP_PACKAGES ?= "" - -# Remove any packages that may have been pulled in by other package installs -# that are not desired. This should be used with caution. -cleanup_host_packages() { - if [ "${HOST_CLEANUP_PACKAGES}" != "" ] - then - opkg ${IPKG_ARGS} --force-depends remove ${HOST_CLEANUP_PACKAGES} - fi -} - -# Generate the header for a TI style software manifest -sw_manifest_header() { -echo " - - - -${MACHINE} TISDK ${SDK_VERSION} Installation Summary - - - -

${MACHINE} TISDK ${SDK_VERSION} Software Manifest

-

`date +"%B %d, %Y"`

-

Legend (explanation of the fields in the Manifest Table below)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Software NameThe name of the application or files
VersionVersion of the application or files
License TypeType of license(s) under which TI will be providing software to the licensee (e.g. BSD, GPLv2, TI TSPA License, TI Commercial License). See Open Source Reference License Disclaimer in the Disclaimers Section.
LocationThe directory name and path on the media (or in an archive) where the Package is located.
Delivered AsThis field will either be “Source”, “Binary” or “Source and Binary“ and is the form the content of the Package is delivered in. If the Package is delivered in an archive format, this field applies to the contents of the archive. If the word Limited is used with Source, as in “Limited Source” or “Limited Source and Binary” then only portions of the Source for the application are provided.
Modified by TIThis field will either be “Yes” or “No”. A “Yes” means TI had made changes to the Software. A “No” means TI has not made any changes. NOTE: This field is not applicable for Software “Obtained from” TI.
Obtained fromThis field specifies from where or from whom TI obtained the Software. It may be a URL to an Open Source site, a 3rd party companylicensor, or TI (if TI developed the software). If this field contains a link to an Open Source software, the date it was downloaded is also recorded. See Links Disclaimer in the Disclaimers Section.
- - -

DISCLAIMERS

-

Export Control Classification Number (ECCN)

-

-Any use of ECCNs listed in the Manifest is at the user's risk and without recourse to TI. Your company, as the exporter of record, is responsible for determining the correct classification of any item at the time of export. Any export classification by TI of Software is for TI's internal use only and shall not be construed as a representation or warranty regarding the proper export classification for such Software or whether an export license or other documentation is required for exporting such Software. -

- -

Links in the Manifest

-

-Any links appearing on this Manifest (for example in the “Obtained from” field) were verified at the time the Manifest was created. TI makes no guarantee that any listed links will remain active in the future. -

- -

Open Source License References

-

-Your company is responsible for confirming the applicable license terms for any open source Software listed in this Manifest that was not “Obtained from” TI. Any open source license specified in this Manifest for Sotware that was not “Obtained from” TI is for TI's internal use only and shall not be construed as a representation of warranty regarding the proper open source license terms for such Software. -

- -

Export Information

-

-ECCN for Software included in this release: Publicly Available -

- -

-ECCN for Technology (e.g., user documentation, specifications) included in this release: Publicly Available -

- -

Manifest

-

-See Legend above for a description of the columns and possible values. -

-" > ${SW_MANIFEST_FILE} - -cat > ${SW_MANIFEST_TEXT} << 'EOF' -<-- -Manifest template 1.0 - -This template is used to generate an unloadable manifest to the SRAS. To do so, save the document as a plain text file (Save As .txt). Do not change any options on the save which means leave the default as Windows Default Encoding. The SRAS will generate a nice looking HTML manifest for you. - -Instructions: - - 1. Text in blue should not be edited or removed. It will NOT appear on your manifest. - 2. DO NOT color outside the lines in the manifest. There are specific blocks where you enter information. Information - should only be entered in the sections below and not outside of them. - 3. DO NOT use the < or > symbols in your manifest table or in your footnotes. - 4. Please REFRAIN from using Word specific formatting when filling in the table. Examples are things like superscripts, - subscripts, etc. We are unable to understand those. - 5. Auto correction is not your friend in word. Please turn it off. It should be disabled already in this template. - -Table Instructions: - -Define what you are delivering by filling in the table below. Tables start with the start keyword end with the end keyword,
and may also contain footnotes specific to that table. - -You can have as many .Public. tables as you like in your manifest and can name them. You can have one and only one .Private. table. To create additional tables copy everything starting with down to
and then paste it after the table below. - -The field .attribute =. can be set to Public (the default) or Private to define the type of table it is. If the table is Public then everything in the table will appear on your manifest. If the table is Private then none of the entries will appear on your manifest but they will be stored in the SRAS. Private tables are useful for documenting third party code, that requires Legal review, but does not need to be acknowledged on the manifest you ship; e.g. it may be covered by our TI license. - -The field .name = . is used to put a heading over the table on the manifest you ship. - -The field .description =. is used to put a description under the Table name on the manifest you ship. - -To learn how to document software in the table read the instructions here. A brief explanation of the table columns follows. -License Type - If its an SPDX defined license use their short name identifier. You can see a list here: http://spdx.org/licenses/ . If it.s not on the list and not a commercial or TSPA license then use the application name as the license. - -Delivered As - This field will either be .Source., .Binary. or .Source and Binary. and is the form the content of the Software is delivered in. If the Software is delivered in an archive format, this field applies to the contents of the archive. If the word Limited is used with Source, as in .Limited Source. or .Limited Source and Binary. then only portions of the Source for the application are provided. - -Modified by TI - This field will either be .Yes. or .No.. A .Yes. means TI has made changes to the Software. A .No. means TI has not made any changes. Note: This field is not applicable for Software .Obtained from. TI. - -Location - The directory name and path on the media, e.g. drive, (or in an archive) where the Software is located after installing or extracting. - -Obtained From - This field specifies from where or from whom TI obtained the Software. It may be a URL to an Open Source site, a 3rd party licensor, or TI (if TI developed the software). If this field contains a link to Open Source software, the date TI downloaded the Software is also recorded. See Links Disclaimer in the Disclaimers Section. ---> - - -Version = .1.0. -Sep = .|. -Tool=.Word. - - -<-- ** Do not edit or remove anything above this line ** ---> - -<-- -Instructions: DO NOT Alter the column headings below. This is now a single row table as opposed to the older manifests which used merged rows. The order is extremely important; if you change the order or add or remove a column the upload will not work. ---> - -EOF - -} - -sw_manifest_footer() { -echo " -

Credits

- -

Licenses

-

Licenses can be found in the \"docs/licenses\" directory of the SDK install directory

- -

GCC RUNTIME LIBRARY EXCEPTION

-

Version 3.1, 31 March 2009

- -

Copyright © 2009 Free Software Foundation, Inc. http://fsf.org/

- -

Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.

- -

This GCC Runtime Library Exception ("Exception") is an additional permission under section 7 of the GNU General Public License, version 3 ("GPLv3"). It applies to a given file (the "Runtime Library") that bears a notice placed by the copyright holder of the file stating that the file is governed by GPLv3 along with this Exception.

- -

When you use GCC to compile a program, GCC may combine portions of certain GCC header files and runtime libraries with the compiled program. The purpose of this Exception is to allow compilation of non-GPL (including proprietary) programs to use, in this way, the header files and runtime libraries covered by this Exception.

- -

0. Definitions.

-

A file is an "Independent Module" if it either requires the Runtime Library for execution after a Compilation Process, or makes use of an interface provided by the Runtime Library, but is not otherwise based on the Runtime Library.

- -

"GCC" means a version of the GNU Compiler Collection, with or without modifications, governed by version 3 (or a specified later version) of the GNU General Public License (GPL) with the option of using any subsequent versions published by the FSF.

- -

"GPL-compatible Software" is software whose conditions of propagation, modification and use would permit combination with GCC in accord with the license of GCC.

- -

"GPL-compatible Software" is software whose conditions of propagation, modification and use would permit combination with GCC in accord with the license of GCC.

- -

The "Compilation Process" transforms code entirely represented in non-intermediate languages designed for human-written code, and/or in Java Virtual Machine byte code, into Target Code. Thus, for example, use of source code generators and preprocessors need not be considered part of the Compilation Process, since the Compilation Process can be understood as starting with the output of the generators or preprocessors.

- -

A Compilation Process is "Eligible" if it is done using GCC, alone or with other GPL-compatible software, or if it is done without using any work based on GCC. For example, using non-GPL-compatible Software to optimize any GCC intermediate representations would not qualify as an Eligible Compilation Process.

- -

1. Grant of Additional Permission.

-

You have permission to propagate a work of Target Code formed by combining the Runtime Library with Independent Modules, even if such propagation would otherwise violate the terms of GPLv3, provided that all Target Code was generated by Eligible Compilation Processes. You may then convey such a combination under terms of your choice, consistent with the licensing of the Independent Modules.

- -

2. No Weakening of GCC Copyleft.

-

The availability of this Exception does not imply any general presumption that third-party software is unaffected by the copyleft requirements of the license of GCC.

- -
- Auto generated by TISDK installer on `date` - - - -" >> ${SW_MANIFEST_FILE} - - -cat >> ${SW_MANIFEST_TEXT} << 'EOF' - - - - - - -Licenses can be found in the "docs/licenses" directory of the SDK install directory -GCC RUNTIME LIBRARY EXCEPTION - -Version 3.1, 31 March 2009 - -Copyright © 2009 Free Software Foundation, Inc. http://fsf.org/ - -Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. - -This GCC Runtime Library Exception (Exception) is an additional permission under section 7 of the GNU General Public License, version 3 (GPLv3). It applies to a given file (the Runtime Library) that bears a notice placed by the copyright holder of the file stating that the file is governed by GPLv3 along with this Exception. - -When you use GCC to compile a program, GCC may combine portions of certain GCC header files and runtime libraries with the compiled program. The purpose of this Exception is to allow compilation of non-GPL (including proprietary) programs to use, in this way, the header files and runtime libraries covered by this Exception. -0. Definitions. - -A file is an Independent Module if it either requires the Runtime Library for execution after a Compilation Process, or makes use of an interface provided by the Runtime Library, but is not otherwise based on the Runtime Library. - -GCC means a version of the GNU Compiler Collection, with or without modifications, governed by version 3 (or a specified later version) of the GNU General Public License (GPL) with the option of using any subsequent versions published by the FSF. - -GPL-compatible Software is software whose conditions of propagation, modification and use would permit combination with GCC in accord with the license of GCC. - -GPL-compatible Software is software whose conditions of propagation, modification and use would permit combination with GCC in accord with the license of GCC. - -The Compilation Process transforms code entirely represented in non-intermediate languages designed for human-written code, and/or in Java Virtual Machine byte code, into Target Code. Thus, for example, use of source code generators and preprocessors need not be considered part of the Compilation Process, since the Compilation Process can be understood as starting with the output of the generators or preprocessors. - -A Compilation Process is Eligible if it is done using GCC, alone or with other GPL-compatible software, or if it is done without using any work based on GCC. For example, using non-GPL-compatible Software to optimize any GCC intermediate representations would not qualify as an Eligible Compilation Process. -1. Grant of Additional Permission. - -You have permission to propagate a work of Target Code formed by combining the Runtime Library with Independent Modules, even if such propagation would otherwise violate the terms of GPLv3, provided that all Target Code was generated by Eligible Compilation Processes. You may then convey such a combination under terms of your choice, consistent with the licensing of the Independent Modules. -2. No Weakening of GCC Copyleft. - -The availability of this Exception does not imply any general presumption that third-party software is unaffected by the copyleft requirements of the license of GCC. - - -EOF - -} - -sw_manifest_table_header() { - echo " -

$1

-

$2

-" >> ${SW_MANIFEST_FILE} - - cat >> ${SW_MANIFEST_TEXT} << EOF - - -attribute = "Public" -name = "$1" -description = "$2" - - -EOF -} - -sw_manifest_table_footer() { - if [ ! -z $1 ]; then - cat >> ${SW_MANIFEST_TEXT} << EOF - -$1 - -EOF - fi - cat >> ${SW_MANIFEST_TEXT} << EOF -
- -EOF -} - -# Create the host side toolchain components table -sw_manifest_toolchain_host() { - opkg_dir="${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}/sysroots/*86*-linux/var/lib/opkg/info" - - sw_manifest_table_header "GPLv3 Development Host Content" "This table describes any GPLv3 software being delivered that is expected to run on a Development Host, instead of the target device." - - generate_sw_manifest_table $opkg_dir "true" - - sw_manifest_table_footer - - sw_manifest_table_header "Development Host Content" "This table describes any software being delivered that is expected to run on a Development Host, instead of the target device. Some of this software may be licensed under GPLv3 but it is not expected to be shipped as a product." - - generate_sw_manifest_table $opkg_dir - - sw_manifest_table_footer -} - -# Create the target side toolchain components table. These are components on -# the host but intended for the target. -sw_manifest_toolchain_target() { - opkg_dir="${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}/sysroots/${ARMPKGARCH}*-linux*/var/lib/opkg/info" - - sw_manifest_table_header "GPLv3 Development Libraries Installed on Host" "This table describes GPLv3 software libraries and headers that are installed on the development host and used during the development of software to run on the target. Customers should be careful when linking against these libraries to make sure they are complying with the license(s) of the library" - - generate_sw_manifest_table $opkg_dir "true" - - sw_manifest_table_footer - - sw_manifest_table_header "Development Libraries Installed on Host" "This table describes software libraries and headers that are installed on the development host and used during the development of software to run on the target. Some of this software may be licensed under GPLv3. Customers should be careful when linking against these libraries to make sure they are complying with the license(s) of the library" - - generate_sw_manifest_table $opkg_dir - - sw_manifest_table_footer -} - -# Create the table of GPLv3 components found in the target file system -sw_manifest_target_gplv3() { - opkg_dir="$1" - - sw_manifest_table_header "GPLv3 Target Device Content" "This table describes any GPLv3 software being delivered that is expected to run on the target device." - - generate_sw_manifest_table $opkg_dir "true" - - sw_manifest_table_footer -} - -# Generate the full target file system components table. -sw_manifest_target() { - # Extract the combined set of .control files from the TARGET_IMAGES in - # the filesystem directory to generate the manifest. - for image in ${TARGET_IMAGES} - do - # Only extract tar.gz or tar.bz2 types - if [ -e ${IMAGE_ROOTFS}/filesystem/${image}-${MACHINE}.tar.xz ] - then - tar xJf ${IMAGE_ROOTFS}/filesystem/${image}-${MACHINE}.tar.xz -C ${IMAGE_ROOTFS}/filesystem --wildcards *.control - elif [ -e ${IMAGE_ROOTFS}/filesystem/${image}-${MACHINE}.tar.gz ] - then - tar xzf ${IMAGE_ROOTFS}/filesystem/${image}-${MACHINE}.tar.gz -C ${IMAGE_ROOTFS}/filesystem --wildcards *.control - fi - done - - # set the opkg_dir value to look at the extracted target file system - # image files - opkg_dir="${IMAGE_ROOTFS}/filesystem/var/lib/opkg/info" - - sw_manifest_target_gplv3 $opkg_dir - - sw_manifest_table_header "All Target Device Content" "This table describes any software being delivered that is expected to run on the target device." - - generate_sw_manifest_table $opkg_dir - - sw_manifest_table_footer - - # Remove the temporary var directory that was extracted - rm -rf ${IMAGE_ROOTFS}/filesystem/var -} - -# Create the table of host components installed. -sw_manifest_host() { - sw_manifest_table_header "Additional Development Host Content" "This table describes software that is installed on the development host but is not part of the linux-devkit package. This is usually software example sources or tools such a flash utilities." - - opkg_dir="${IMAGE_ROOTFS}/var/lib/opkg/info" - - generate_sw_manifest_table $opkg_dir - - sw_manifest_table_footer -} - -# Use the recipe-data class to collect SRC_URI for the manifest. -# -# While this will need to be globally INHERIT'd to work properly, inherit -# locally so that parsing does not fail. -inherit recipe-data - -# Instead of re-adding the do_rootfs task, re-add the do_emit_recipe_data_all -# task to run before do_rootfs. -deltask do_emit_recipe_data_all - -# There seems to be something special with the rootfs task and task dependencies -# are not working as expected, so use the install task instead. -addtask emit_recipe_data_all after do_emit_recipe_data before do_install - -get_sources_from_recipe(){ - [ ! -z "$1" ] || return 0 - - # Check if a full URL is given (e.g. ipks from sourceipk class) - if [ $(echo "$1" | grep -c '://') -gt 0 ] - then - echo "$1" - return 0 - fi - - # Now assume that this was created by the package_ipk class - - # Cannot assume that recipe filename is ${PN}_${PV}.bb - # This is easily seen with BBCLASSEXTEND recipes. - for pn in $(sed -ne 's|FILE_pn-\([^ \t=]*\)[ \t]*=[ \t]*".*/'$1'".*|\1|p' "${RECIPE_DATA_FILE}") - do - # Only need a single PN incase there are native, nativesdk, target variants. - break - done - - recipe_data_get_var_sh "$pn" "SRC_URI" -} - -# This function expects to be passed the following parameter -# - The location to the opkg info directory containing the control files -# of the installed packages -# Optionally if the second parameter is set to true then only GPLv3 contents -# will be listed. This is for TI SW Manifests where GPLv3 content is -# highlighted as a separate table. -generate_sw_manifest_table() { - control_dir="$1" - gplv3_only="$2" - - # Call this here so that the function gets added to the task script - get_sources_from_recipe - - if [ ! -d "$control_dir" ] - then - echo "Could not find the control directory ($control_dir)" - return 1 - fi - - if [ "$gplv3_only" = "" ] - then - # The second parameter was not passed so set to false - gplv3_only="false" - fi - -echo " - - - - - - - - - - -" >> ${SW_MANIFEST_FILE} - -cat >> ${SW_MANIFEST_TEXT} << EOF - - - -EOF - - control_files_there=0 - for possible_control_file in $control_dir/*.control - do - if [ -f $possible_control_file ] - then - control_files_there=1 - break - fi - done - - if [ $control_files_there -eq 0 ] - then - for pkg_idx in $control_dir/oe*; do - package_start=`grep -n "^Package" $pkg_idx || true` - - IFS_OLD=${IFS} - IFS=" -" - - begin="" - end="" - for pkg in ${package_start}; do - end=`echo $pkg | cut -d: -f1` - - if [ -z $begin ]; then - pkg_name=`echo $pkg | cut -d: -f3` - begin=`echo $pkg | cut -d: -f1` - continue - fi - cnt=$[$cnt+1] - head -n $[$end - 1] $pkg_idx | tail -n $[$end - $begin] > ${control_dir}/${pkg_name// /}.control - - pkg_name=`echo $pkg | cut -d: -f3` - begin=$end - done - if [ ! -z $end ]; then - end=`wc -l $pkg_idx | awk '{ print $1 }'` - end=$[$end + 1] - tail -n $[$end - $begin] $pkg_idx > ${control_dir}/${pkg_name// /}.control - fi - - IFS=${IFS_OLD} - done - fi - - for i in $control_dir/*.control - do - package="`cat $i | grep Package: | awk {'print $2'}`" - version="`cat $i | grep Version: | awk {'print $2'} | cut -f1-2 -d-`" - long_version="`cat $i | grep Version: | awk {'print $2'}`" - license="`cat $i | grep License: | cut -d: -f2 `" - architecture="`cat $i | grep Architecture: | awk {'print $2'}`" - recipe="`cat $i | grep Source: | cut -d ':' -f2-`" - sources="`get_sources_from_recipe $recipe`" - location="$package""_""$long_version""_""$architecture"".ipk" - - # Set the highlight color if the license in GPLv3. If this is - # a GPLv3 only table then skip this package. - case "$license" in - *GPLv3*) - highlight="bgcolor=yellow" ;; - *unknown*) - if [ "$gplv3_only" != "true" ] - then - highlight="bgcolor=yellow" - else - continue - fi - ;; - *) - if [ "$gplv3_only" != "true" ] - then - highlight="" - else - continue - fi - ;; - esac - - # source variable contains the text to be used in the manifest - source="" - # Are there additional files in the package that come from the - # arago/OE metadata? - extra_files="0" - modified="No" - for s in $sources - do - case "$s" in - file://*) - extra_files="1" - ;; - http://install.source.dir.local*) - # If we are pulling something from a local file system then - # it is not a public modification and this should be marked - # as modified. This should not be the normal case. - modified="Yes" - ;; - *) - source="$source""$s";; - esac - done - - if [ "$extra_files" = "1" ] - then - source="$source""
Files from:
https://git.yoctoproject.org/meta-arago
https://git.yoctoproject.org/meta-ti" - fi - - case "$package" in - task-*) - continue ;; - *-source*) - delivered_as="Source" - ;; - *) - delivered_as="Binary" - ;; - esac - -echo " - - - - - - - - - -" >> ${SW_MANIFEST_FILE} - -cat >> ${SW_MANIFEST_TEXT} << EOF -| ${package} | ${version} | ${license} | ${delivered_as} | ${modified} | ${location} | ${source} -EOF - done - - echo "
Software NameVersionLicenseLocationDelivered AsModified by TIObtained from
${package} ${version}${license}${location}${delivered_as}${modified}${source}


" >> ${SW_MANIFEST_FILE} - -cat >> ${SW_MANIFEST_TEXT} << EOF - - -EOF - -} -# Generate the TI SW Manifest for the SDK image -generate_sw_manifest() { - sw_manifest_header - if [ "${TISDK_TOOLCHAIN}" != "" ] - then - sw_manifest_toolchain_host - fi - sw_manifest_target - sw_manifest_host - if [ "${TISDK_TOOLCHAIN}" != "" ] - then - sw_manifest_toolchain_target - fi - sw_manifest_footer -} - -ROOTFS_PREPROCESS_COMMAND += "tisdk_image_setup; " -ROOTFS_POSTPROCESS_COMMAND += "tisdk_image_build; " -IMAGE_PREPROCESS_COMMAND:append = "tisdk_image_cleanup; " - -# Create the SDK image. We will re-use the rootfs_ipk_do_rootfs functionality -# to install a given list of packages using opkg. -fakeroot python do_rootfs () { - from oe.rootfs import create_rootfs - from oe.manifest import create_manifest - - # generate the initial manifest - create_manifest(d) - - # generate rootfs - create_rootfs(d) -} - -fakeroot python do_image () { - from oe.utils import execute_pre_post_process - - pre_process_cmds = d.getVar("IMAGE_PREPROCESS_COMMAND") - - execute_pre_post_process(d, pre_process_cmds) -} -do_image[dirs] = "${TOPDIR}" -do_image[umask] = "022" -addtask do_image after do_rootfs before do_build - -fakeroot python do_image_complete () { - from oe.utils import execute_pre_post_process - - post_process_cmds = d.getVar("IMAGE_POSTPROCESS_COMMAND") - - execute_pre_post_process(d, post_process_cmds) -} -do_image_complete[dirs] = "${TOPDIR}" -do_image_complete[umask] = "022" -addtask do_image_complete after do_image before do_build - -tisdk_image_setup () { - set -x - rm -rf ${IMAGE_ROOTFS} - mkdir -p ${IMAGE_ROOTFS} - mkdir -p ${DEPLOY_DIR_IMAGE} - - mkdir -p ${IMAGE_ROOTFS}/etc - mkdir -p ${IMAGE_ROOTFS}/var/lib/opkg - mkdir -p ${IMAGE_ROOTFS}/lib - - if [ -e ${DEPLOY_DIR}/sdk/${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}${TOOLCHAIN_SUFFIX}.sh ] - then - chmod 755 ${DEPLOY_DIR}/sdk/${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}${TOOLCHAIN_SUFFIX}*.sh - - # Temporarily extract the toolchain sdk so we can read license information from it. - echo "${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH}" | ${DEPLOY_DIR}/sdk/${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}${TOOLCHAIN_SUFFIX}*.sh - fi -} - -tisdk_image_build () { - mkdir -p ${IMAGE_ROOTFS}/filesystem - - # Copy the TARGET_IMAGES to the sdk image before packaging - for image in ${TARGET_IMAGES} - do - for type in ${TARGET_IMAGE_TYPES} - do - if [ -e ${DEPLOY_DIR_IMAGE}/${image}-${MACHINE}.${type} ] - then - cp ${DEPLOY_DIR_IMAGE}/${image}-${MACHINE}.${type} ${IMAGE_ROOTFS}/filesystem/ - fi - done - done - - # Copy the pre-built images for kernel and boot loaders - prebuilt_dir="${IMAGE_ROOTFS}/board-support/prebuilt-images" - if [ ! -e "${prebuilt_dir}" ] - then - mkdir -p ${prebuilt_dir} - fi - - # Copy the U-Boot image if it exists - if [ -e ${DEPLOY_DIR_IMAGE}/u-boot.img ] - then - cp ${DEPLOY_DIR_IMAGE}/u-boot.img ${prebuilt_dir}/ - elif [ -e ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.bin ] - then - cp ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.bin ${prebuilt_dir}/ - elif [ -e ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.ais ] - then - cp ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.ais ${prebuilt_dir}/ - else - echo "Could not find the u-boot image" - return 1 - fi - - # Copy the Kernel image if it exists - if [ -e ${DEPLOY_DIR_IMAGE}/zImage-${MACHINE}.bin ] - then - cp ${DEPLOY_DIR_IMAGE}/zImage-${MACHINE}.bin ${prebuilt_dir}/ - elif [ -e ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ] - then - cp ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ${prebuilt_dir}/ - elif [ -e ${DEPLOY_DIR_IMAGE}/Image-${MACHINE}.bin ] - then - cp ${DEPLOY_DIR_IMAGE}/Image-${MACHINE}.bin ${prebuilt_dir}/ - else - echo "Could not find the Kernel image" - return 1 - fi - - # Copy the DTB files if they exist. - # NOTE: For simplicity remove the uImage- prefix on the dtb files. Get - # just the symlink files for a cleaner name. Use the DTB_FILTER variable - # to allow finding the dtb files for only that MACHINE type - # NOTE: The DTB_FILTER variable is interpreted as a regex which means - # that for cases where the DTB files to be selected do not have - # a common naming you can use something line filter1\|filter2 which - # will be interpreted as an "or" and allow matching both expressions. - # The \| is important for delimiting these values. - if [ "${DTB_FILTER}" != "unknown" ] - then - for f in `find ${DEPLOY_DIR_IMAGE} -type l -regex ".*\(${DTB_FILTER}\).*\.dtbo?"` - do - dtb_file=`basename $f | sed s/.Image-//` - cp $f ${prebuilt_dir}/${dtb_file} - done - fi - - for spl_name in ${DEPLOY_SPL_NAME} - do - # Copy the SPL image if it exists - if [ -e ${DEPLOY_DIR_IMAGE}/$spl_name ] - then - cp ${DEPLOY_DIR_IMAGE}/$spl_name ${prebuilt_dir}/ - else - echo "Could not find the SPL image \"$spl_name\"" - return 1 - fi - done - - for image_name in ${DEPLOY_IMAGES_NAME} - do - if [ -e ${DEPLOY_DIR_IMAGE}/$image_name ] - then - cp ${DEPLOY_DIR_IMAGE}/$image_name ${prebuilt_dir}/ - else - echo "Could not find image \"$image_name\"" - return 1 - fi - done - - if [ "${DEPLOY_SPL_UART_NAME}" != "" ] - then - # Copy the SPL/UART image if it exists - if [ -e ${DEPLOY_DIR_IMAGE}/${DEPLOY_SPL_UART_NAME} ] - then - cp ${DEPLOY_DIR_IMAGE}/${DEPLOY_SPL_UART_NAME} ${prebuilt_dir}/ - fi - fi - - # Copy TI SCI firmware if it exists - if [ "${DEPLOY_TISCI_FW_NAME}" != "" ] - then - if [ -e ${DEPLOY_DIR_IMAGE}/${DEPLOY_TISCI_FW_NAME} ] - then - cp ${DEPLOY_DIR_IMAGE}/${DEPLOY_TISCI_FW_NAME} ${prebuilt_dir}/ - fi - fi - - # Add the EXTRA_TISDK_FILES contents if they exist - # Make sure EXTRA_TISDK_FILES is not empty so we don't accidentaly - # copy the root directory. - # Use -L to copy the actual contents of symlinks instead of just - # the links themselves - if [ "${EXTRA_TISDK_FILES}" != "" ] - then - if [ -d "${EXTRA_TISDK_FILES}" ] - then - cp -rLf ${EXTRA_TISDK_FILES}/* ${IMAGE_ROOTFS}/ - fi - fi - - # Copy the licenses directory in the $DEPLOY_DIR to capture all - # the licenses that were used in the build. - if [ -d ${DEPLOY_DIR}/licenses ] - then - if [ ! -d ${IMAGE_ROOTFS}/docs ] - then - mkdir -p ${IMAGE_ROOTFS}/docs - fi - cp -rf ${DEPLOY_DIR}/licenses ${IMAGE_ROOTFS}/docs/ - fi - - # Create the TI software manifest - generate_sw_manifest - - # Delete installed toolchain sdk since we need the toolchain sdk installer - # not the extracted version - rm -rf ${IMAGE_ROOTFS}/${TISDK_TOOLCHAIN_PATH} - - # Copy over the toolchain sdk installer an give it a simple name which - # matches the traditional name within the SDK. - if [ -e ${DEPLOY_DIR}/sdk/${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}${TOOLCHAIN_SUFFIX}.sh ] - then - cp ${DEPLOY_DIR}/sdk/${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}${TOOLCHAIN_SUFFIX}.sh ${IMAGE_ROOTFS}/linux-devkit.sh - fi - - # Copy the opkg.conf used by the image to allow for future updates - cp ${WORKDIR}/opkg.conf ${IMAGE_ROOTFS}/etc/ -} - -TISDK_IMAGE_CLEANUP_DIRS ?= "var etc lib boot dev home media mnt proc run sbin sys tmp usr" -TISDK_IMAGE_CLEANUP_FILES ?= "bin/bash bin/bash.bash bin/sh" - -tisdk_image_cleanup () { - # Some extra files are now pulled in by the general image class, so remove - # them. - for file in ${TISDK_IMAGE_CLEANUP_FILES} - do - [ ! -f ${IMAGE_ROOTFS}/$file ] || rm -f ${IMAGE_ROOTFS}/$file - done - - # Move the var/etc directories which contains the opkg data used for the - # manifest (and maybe one day for online updates) to a hidden directory. - for dir in ${TISDK_IMAGE_CLEANUP_DIRS} - do - [ ! -d ${IMAGE_ROOTFS}/$dir ] || mv ${IMAGE_ROOTFS}/$dir ${IMAGE_ROOTFS}/.$dir - done -} - -license_create_manifest() { - : -} - -EXPORT_FUNCTIONS do_rootfs -addtask rootfs before do_build after do_install diff --git a/meta-arago-distro/recipes-core/images/arago-image.inc b/meta-arago-distro/recipes-core/images/arago-image.inc index d00c1f70..5bb3a8a9 100644 --- a/meta-arago-distro/recipes-core/images/arago-image.inc +++ b/meta-arago-distro/recipes-core/images/arago-image.inc @@ -19,7 +19,6 @@ export IMAGE_BASENAME = "arago-image" IMAGE_LINGUAS = "" -TOOLCHAIN_HOST_TASK:append = " nativesdk-buildtools-perl-dummy" SDK_PACKAGE_ARCHS += "buildtools-dummy-${SDKPKGSUFFIX}" BAD_RECOMMENDATIONS += " \ diff --git a/meta-arago-distro/recipes-core/images/tisdk-core-bundle.bb b/meta-arago-distro/recipes-core/images/tisdk-core-bundle.bb deleted file mode 100644 index bf7ed2d4..00000000 --- a/meta-arago-distro/recipes-core/images/tisdk-core-bundle.bb +++ /dev/null @@ -1,19 +0,0 @@ -SUMMARY = "Installer package for TI SDK - NOT for direct use on target" - -DESCRIPTION = "This creates an installer including all the default images\ - recommended including source, binaries, filesystems, etc.\ - for TI SDK. This is meant to be used on the host system.\ -" - -require tisdk-core-bundle.inc - -DEPLOY_SPL_NAME:omapl138 = "" -DEPLOY_SPL_NAME:k3 = "tispl.bin tiboot3.bin" - -DEPLOY_IMAGES_NAME:k3 = "bl31.bin bl32.bin bl31.bin.unsigned bl32.bin.unsigned" -DEPLOY_IMAGES_NAME:append:am65xx = " sysfw.itb" -DEPLOY_IMAGES_NAME:append:j721e = " sysfw.itb" -DEPLOY_IMAGES_NAME:append:am65xx-evm = " sysfw-am65x-gp-evm.itb sysfw-am65x_sr2-gp-evm.itb" - -ARAGO_TISDK_IMAGE ?= "tisdk-core-bundle" -export IMAGE_BASENAME = "${ARAGO_TISDK_IMAGE}" diff --git a/meta-arago-distro/recipes-core/images/tisdk-core-bundle.inc b/meta-arago-distro/recipes-core/images/tisdk-core-bundle.inc deleted file mode 100644 index c7bd9629..00000000 --- a/meta-arago-distro/recipes-core/images/tisdk-core-bundle.inc +++ /dev/null @@ -1,39 +0,0 @@ -# This include is for the common setting used to build TISDK images. These images -# include both host and target side content. -LICENSE = "MIT" - -IMAGE_FSTYPES = "tar.xz" -IMAGE_NAME_SUFFIX = "" - -inherit tisdk-bundle - -COMPATIBLE_MACHINE = "omapl138|ti33x|ti43x|omap-a15|k3" - -# List of packages to remove from the host package. This is usually due to -# licensing issues and unneeded dependencies. -HOST_CLEANUP_PACKAGES = "" -TOOLCHAIN_CLEANUP_PACKAGES = "libgnutls-dev libgnutls-extra26 libgnutls-openssl27 libtasn1-dev" - -# Set DTB filters for each machine. Use "unknown" by default to avoid -# picking up DTB files for devices with no DTB support. -DTB_FILTER = "unknown" -DTB_FILTER:ti33x = "am335x" -DTB_FILTER:dra7xx-evm = "dra7" -DTB_FILTER:am57xx-evm = "am57xx" -DTB_FILTER:am57xx-hs-evm = "${DTB_FILTER:am57xx-evm}" -DTB_FILTER:ti43x = "am43" -DTB_FILTER:omapl138 = "da850" -DTB_FILTER:am65xx = "am65" -DTB_FILTER:j721e = "j721e" -DTB_FILTER:j7200 = "j7200" -DTB_FILTER:j721s2 = "j721s2" - -# List of target side images to build for the SDK -TARGET_IMAGES = "tisdk-base-image tisdk-default-image tisdk-thinlinux-image tisdk-bootstrap-image" - -TISDK_TOOLCHAIN = "${@bb.utils.contains('DISTRO_FEATURES','opengl','meta-toolchain-arago-tisdk','meta-toolchain-arago-tisdk-server',d)}" -TOOLCHAIN_SUFFIX = "${@bb.utils.contains('DISTRO_FEATURES','opengl','-tisdk','-tisdk-server',d)}" - -IMAGE_INSTALL = "\ - packagegroup-arago-tisdk-amsdk-sdk-host \ -" diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-gst-sdk-target.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-gst-sdk-target.bb deleted file mode 100644 index 845cc7ff..00000000 --- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-gst-sdk-target.bb +++ /dev/null @@ -1,28 +0,0 @@ -DESCRIPTION = "Task to build and install header and libs in sdk" -LICENSE = "MIT" -PR = "r15" - -PACKAGE_ARCH = "${MACHINE_ARCH}" - -inherit packagegroup - -GSTREAMER_DEPS = " \ - gstreamer1.0-dev \ - gstreamer1.0-plugins-base-dev \ - gstreamer1.0-plugins-good-dev \ - gstreamer1.0-plugins-bad-dev \ - gstreamer1.0-libav-dev \ -" - -GSTREAMER_DSP = " \ - ${@['','gstreamer1.0-plugins-dsp66-dev'][oe.utils.all_distro_features(d, 'opencl', True, False) and bb.utils.contains('MACHINE_FEATURES', 'dsp', True, False, d)]} \ -" - -# gstreamer1.0-plugins-hevc-dev -GSTREAMER_DEPS:append:dra7xx = " \ - ${GSTREAMER_DSP} \ -" - -RDEPENDS:${PN} = " \ - ${GSTREAMER_DEPS} \ -" diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons-sdk-target.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons-sdk-target.bb deleted file mode 100644 index 0cd1b540..00000000 --- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons-sdk-target.bb +++ /dev/null @@ -1,76 +0,0 @@ -DESCRIPTION = "Task to install headers and libraries related to addons into the SDK" -LICENSE = "MIT" -PR = "r44" - -PACKAGE_ARCH = "${MACHINE_ARCH}" - -inherit packagegroup - -UTILS = " \ - libdrm-dev \ - open62541-dev \ - open62541-staticdev \ - python3-numpy \ -" - -UTILS:append:ti33x = " can-utils-dev" -UTILS:append:ti43x = " can-utils-dev" -UTILS:append:dra7xx = " can-utils-dev \ - elfutils-dev \ - elfutils-staticdev \ -" -UTILS:append:k3 = "\ - can-utils-dev \ - ti-rpmsg-char-dev \ - ti-rpmsg-char-staticdev \ -" - -EXTRA_LIBS = "" -EXTRA_LIBS:append:dra7xx = " libulm-dev \ - libulm-staticdev \ - gdbserver-c6x-dev \ -" - -PDM_ANOMALY_PKG_DEV = "\ - ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'pdm-anomaly-detection-dev', '', d)} \ -" - - -EXTRA_PACKAGES = "" -#EXTRA_PACKAGES:append:ti33x = " \ -# arm-compute-library-dev \ -# tensorflow-lite-dev \ -# tensorflow-lite-staticdev \ -# ${PDM_ANOMALY_PKG_DEV} \ -#" -#EXTRA_PACKAGES:append:ti43x = " \ -# arm-compute-library-dev \ -# tensorflow-lite-dev \ -# tensorflow-lite-staticdev \ -# ${PDM_ANOMALY_PKG_DEV} \ -#" -#EXTRA_PACKAGES:append:omap-a15 = " \ -# arm-compute-library-dev \ -# tensorflow-lite-dev \ -# tensorflow-lite-staticdev \ -# ${PDM_ANOMALY_PKG_DEV} \ -#" -#EXTRA_PACKAGES:append:am65xx = " arm-compute-library-dev \ -# tensorflow-lite-dev \ -# tensorflow-lite-staticdev \ -# ${PDM_ANOMALY_PKG_DEV} \ -#" - -IPCDEV = " \ - ti-ipc-dev \ - ti-ipc-staticdev \ -" - -EXTRA_PACKAGES:append:omap-a15 = " ${IPCDEV}" -EXTRA_PACKAGES:append:omapl138 = " ${IPCDEV}" - -RDEPENDS:${PN} = "\ - ${UTILS} \ - ${EXTRA_LIBS} \ - ${EXTRA_PACKAGES} \ -" diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-amsdk-sdk-host.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-amsdk-sdk-host.bb deleted file mode 100644 index 1a43d0ef..00000000 --- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-amsdk-sdk-host.bb +++ /dev/null @@ -1,18 +0,0 @@ -DESCRIPTION = "Task to install additional scripts and applications into the SDK" -LICENSE = "MIT" -PR = "r30" - -PACKAGE_ARCH = "${MACHINE_ARCH}" - -inherit packagegroup - -EXTRA_FILES = "" -EXTRA_FILES:ti43x = "tisdk-uenv" -EXTRA_FILES:omap-a15 = "tisdk-readme tisdk-uenv" -EXTRA_FILES:k3 = "tisdk-readme tisdk-uenv" - -RDEPENDS:${PN} = "\ - ti-tisdk-setup \ - ${EXTRA_FILES} \ - tisdk-install \ -" diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-connectivity-sdk-target.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-connectivity-sdk-target.bb deleted file mode 100644 index 7f5e9c2e..00000000 --- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-connectivity-sdk-target.bb +++ /dev/null @@ -1,27 +0,0 @@ -DESCRIPTION = "Task to install wireless headers and libraries into the SDK" -LICENSE = "MIT" -PR = "r9" - -PACKAGE_ARCH = "${MACHINE_ARCH}" - -inherit packagegroup - -BLUETOOTH_STACK = "\ - bluez5-dev \ -" - -CONNECTIVITY_RDEPENDS = "" - -CONNECTIVITY_RDEPENDS:ti33x = "\ - wpa-supplicant-dev \ - ${BLUETOOTH_STACK} \ -" - -CONNECTIVITY_RDEPENDS:ti43x = "\ - wpa-supplicant-dev \ - ${BLUETOOTH_STACK} \ -" - -RDEPENDS:${PN} = "\ - ${CONNECTIVITY_RDEPENDS} \ -" diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-crypto-sdk-target.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-crypto-sdk-target.bb deleted file mode 100644 index ff72c007..00000000 --- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-crypto-sdk-target.bb +++ /dev/null @@ -1,14 +0,0 @@ -DESCRIPTION = "Task to install crypto dev packages in SDK" -LICENSE = "MIT" -PR = "r8" - -PACKAGE_ARCH = "${MACHINE_ARCH}" - -inherit packagegroup - -CRYPTO_API = "cryptodev-module-dev" - -RDEPENDS:${PN} = "\ - openssl-dev \ - ${CRYPTO_API} \ -" diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-graphics-sdk-target.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-graphics-sdk-target.bb deleted file mode 100644 index acb06558..00000000 --- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-graphics-sdk-target.bb +++ /dev/null @@ -1,15 +0,0 @@ -SUMMARY = "Task to install graphics packages on sdk target" -LICENSE = "MIT" -PR = "r10" - -PACKAGE_ARCH = "${MACHINE_ARCH}" - -inherit packagegroup - -RDEPENDS:${PN} = "\ - libegl-dev \ - libdrm-dev \ - wayland-dev \ - weston-dev \ - ${@bb.utils.contains('MACHINE_FEATURES', 'gc320', 'ti-gc320-libs-dev', '', d)} \ -" diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-gtk-sdk-target.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-gtk-sdk-target.bb deleted file mode 100644 index 030583e3..00000000 --- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-gtk-sdk-target.bb +++ /dev/null @@ -1,11 +0,0 @@ -DESCRIPTION = "Task to install Gtk dev packages in SDK" -LICENSE = "MIT" -PR = "r2" - -PACKAGE_ARCH = "${MACHINE_ARCH}" - -inherit packagegroup - -RDEPENDS:${PN} = "\ - gtk+3-dev \ -" diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia-sdk-target.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia-sdk-target.bb deleted file mode 100644 index 62bcc0ea..00000000 --- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia-sdk-target.bb +++ /dev/null @@ -1,30 +0,0 @@ -DESCRIPTION = "Task to build and install header and libs into sdk" -LICENSE = "MIT" -PR = "r12" - -PACKAGE_ARCH = "${MACHINE_ARCH}" - -inherit packagegroup - -BARCODE_PKG = "" -#BARCODE_PKG = " \ -# ${@['','barcode-roi-dev'][oe.utils.all_distro_features(d, 'opencv', True, False) and bb.utils.contains('MACHINE_FEATURES', 'dsp', True, False, d)]} \ -#" - -MULTIMEDIA = "" - -# ${@['','qt-opencv-opencl-opengl-multithreaded-dev'][oe.utils.all_distro_features(d, 'opencv opencl opengl', True, False) and bb.utils.contains('MACHINE_FEATURES', 'gpu dsp', True, False, d)]} -MULTIMEDIA:append:dra7xx = " \ - hevc-arm-decoder-dev \ - hevc-arm-decoder-staticdev \ -" - -MULTIMEDIA:append:ti33x = " ${BARCODE_PKG}" -MULTIMEDIA:append:ti43x = " ${BARCODE_PKG}" -MULTIMEDIA:append:omap-a15 = " ${BARCODE_PKG}" -MULTIMEDIA:append:am65xx = " ${BARCODE_PKG}" - -RDEPENDS:${PN} = "\ - ${MULTIMEDIA} \ - packagegroup-arago-gst-sdk-target \ -" diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-opencl-sdk-target.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-opencl-sdk-target.bb deleted file mode 100644 index b660fcb4..00000000 --- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-opencl-sdk-target.bb +++ /dev/null @@ -1,22 +0,0 @@ -DESCRIPTION = "Task to install headers and libraries of OpenCL/MP and related components" -LICENSE = "MIT" -PR = "r2" - -PACKAGE_ARCH = "${MACHINE_ARCH}" - -inherit packagegroup features_check - -REQUIRED_DISTRO_FEATURES = "opencl" - -UTILS = " \ - opencl-staticdev \ - ${@oe.utils.all_distro_features(d, 'openmp', 'openmpacc-dev')} \ -" - -UTILS:append:dra7xx = " \ - ${@oe.utils.all_distro_features(d, 'openmp', 'linalg-dev')} \ -" - -RDEPENDS:${PN} = "\ - ${UTILS} \ -" diff --git a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-toolchain-tisdk-target.bb b/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-toolchain-tisdk-target.bb deleted file mode 100644 index cdf54ecc..00000000 --- a/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-toolchain-tisdk-target.bb +++ /dev/null @@ -1,28 +0,0 @@ -DESCRIPTION = "Task to build and install header and libs into the sdk" -LICENSE = "MIT" -PR = "r14" - -PACKAGE_ARCH = "${MACHINE_ARCH}" - -inherit packagegroup - -TISDK_TOOLCHAIN_BASE_TARGET = "\ - packagegroup-arago-standalone-sdk-target \ - packagegroup-arago-tisdk-multimedia-sdk-target \ -" - -TISDK_TOOLCHAIN_EXTRA_TARGET = "\ - packagegroup-arago-tisdk-connectivity-sdk-target \ - packagegroup-arago-tisdk-crypto-sdk-target \ -" -TISDK_TOOLCHAIN_EXTRA_TARGET:omapl138 = "" - -RDEPENDS:${PN} = "\ - ${@bb.utils.contains('DISTRO_FEATURES','opengl','packagegroup-arago-qte-toolchain-target','',d)} \ - ${@bb.utils.contains('DISTRO_FEATURES','opengl','packagegroup-arago-tisdk-gtk-sdk-target','',d)} \ - ${TISDK_TOOLCHAIN_BASE_TARGET} \ - ${TISDK_TOOLCHAIN_EXTRA_TARGET} \ - ${@bb.utils.contains('DISTRO_FEATURES','opengl','packagegroup-arago-tisdk-graphics-sdk-target','',d)} \ - ${@['','packagegroup-arago-tisdk-opencl-sdk-target'][oe.utils.all_distro_features(d, 'opencl', True, False) and bb.utils.contains('MACHINE_FEATURES', 'dsp', True, False, d)]} \ - packagegroup-arago-tisdk-addons-sdk-target \ -" diff --git a/meta-arago-distro/recipes-tisdk/ocl-rtos/opencl-examples-rtos_git.bbappend b/meta-arago-distro/recipes-tisdk/ocl-rtos/opencl-examples-rtos_git.bbappend deleted file mode 100644 index f7acb63b..00000000 --- a/meta-arago-distro/recipes-tisdk/ocl-rtos/opencl-examples-rtos_git.bbappend +++ /dev/null @@ -1,6 +0,0 @@ -PR:append = ".arago0" - -CM_NAME = "OpenCL" -CM_VERSION = "${PV}" -CM_ROOT_DIR = "opencl_rtos_${RELEASE_TARGET}_${@'${PV}'.replace('.', '_')}" -CM_DESCRIPTION = "OpenCL is a framework for writing programs that execute across heterogeneous systems" diff --git a/meta-arago-distro/recipes-tisdk/oe-layersetup/oe-layersetup.bb b/meta-arago-distro/recipes-tisdk/oe-layersetup/oe-layersetup.bb deleted file mode 100644 index 1600b679..00000000 --- a/meta-arago-distro/recipes-tisdk/oe-layersetup/oe-layersetup.bb +++ /dev/null @@ -1,13 +0,0 @@ -DESCRIPTION = "Package that contains a script to setup oe-core development environment" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" - -PR = "r1" - -inherit allarch - -BRANCH ?= "master" -SRCREV = "e58f941784fb45fd826779a45b33973e6342700f" -SRC_URI = "git://git.ti.com/git/git/arago-project/oe-layersetup.git;protocol=https;branch=${BRANCH}" - -S = "${WORKDIR}/git" diff --git a/meta-arago-distro/recipes-tisdk/ti-tisdk-setup/ti-tisdk-setup.bb b/meta-arago-distro/recipes-tisdk/ti-tisdk-setup/ti-tisdk-setup.bb deleted file mode 100644 index e000e8c7..00000000 --- a/meta-arago-distro/recipes-tisdk/ti-tisdk-setup/ti-tisdk-setup.bb +++ /dev/null @@ -1,59 +0,0 @@ -DESCRIPTION = "Package containing scripts to setup the development host and target board" -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://setup.sh;beginline=3;endline=31;md5=fc4b04a33df6d892c9f4d4a9d92b945e" - -PR = "r47" - -BRANCH ?= "master" -SRCREV = "eae21af9be4e7a0028045cc3e4038fe2157a266d" -SRC_URI = "git://git.ti.com/git/arago-project/tisdk-setup-scripts.git;protocol=https;branch=${BRANCH}" - -S = "${WORKDIR}/git" - -PACKAGE_ARCH = "${MACHINE_ARCH}" - -SDCARD_SCRIPT = " create-sdcard.sh" - -SETUP_SCRIPTS = " common.sh \ - setup-host-check.sh \ - setup-minicom.sh \ - setup-package-install.sh \ - setup-targetfs-nfs.sh \ - setup-tftp.sh \ - add-to-group.sh \ - create-ubifs.sh \ - ${SDCARD_SCRIPT} \ -" - -UBOOT_ENV:omapl138 = "setup-uboot-env-am18x.sh" -UBOOT_ENV:ti33x = "setup-uboot-env-am335x.sh" -UBOOT_ENV:ti43x = "setup-uboot-env-am43x.sh" -UBOOT_ENV:omap5-evm = "setup-uboot-env-omap5.sh" -UBOOT_ENV:am57xx-evm = "setup-uboot-env-am57xx-evm.sh" -UBOOT_ENV:k3 = "setup-uboot-env-am65x.sh" -UBOOT_ENV = "setup-uboot-unknown.sh" - -do_install () { - install -m 0755 ${S}/setup.sh ${D}/ - - install -d ${D}/bin - for script in ${SETUP_SCRIPTS} - do - install -m 0755 ${S}/${script} ${D}/bin - done - - install -m 0755 ${S}/${UBOOT_ENV} ${D}/bin/setup-uboot-env.sh - - if [ -z "${MKUBIFS_ARGS}" -o -z "${UBINIZE_ARGS}" ] - then - # UBIFS not supported - rm "${D}/bin/create-ubifs.sh" - else - sed -i -e "s|__MKUBIFS_ARGS__|${MKUBIFS_ARGS}|" \ - -e "s|__UBINIZE_ARGS__|${UBINIZE_ARGS}|" \ - "${D}/bin/create-ubifs.sh" - fi -} - -FILES:${PN} += "setup.sh" -RDEPENDS:${PN} += "bash" diff --git a/meta-arago-distro/recipes-tisdk/tisdk-install/tisdk-install/sdk-install.sh b/meta-arago-distro/recipes-tisdk/tisdk-install/tisdk-install/sdk-install.sh deleted file mode 100644 index d195d51e..00000000 --- a/meta-arago-distro/recipes-tisdk/tisdk-install/tisdk-install/sdk-install.sh +++ /dev/null @@ -1,129 +0,0 @@ -#!/bin/sh - -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -# Process command line... -while [ $# -gt 0 ]; do - case $1 in - --install_dir) - shift; - install_dir=$1; - ;; - *) - shift; - ;; - esac -done - -if [ "x$install_dir" = "x" ]; then - # Verify that the script is being called within untar SDK directory - if [ ! -d "$PWD/board-support" -a ! -f "$PWD/Rules.make" ]; then - echo "Script must be called within untarred sdk directory" - exit 1 - else - install_dir="$PWD" - fi -fi - -# Get full path to SDK directory -cd "$install_dir" -install_dir="$PWD" -cd - - -if [ ! -d $install_dir ]; then - echo "Installation directory does not exist" - exit 1 -fi - -# Remove any .svn directories that were packaged by the sourceipks -rm -rf `find $install_dir -name ".svn"` - - -# Update Rules.make variables -sed -i -e s=__SDK__INSTALL_DIR__=$install_dir= $install_dir/Rules.make - -# Find the linux directory name -linux=`find $install_dir/board-support -maxdepth 1 -name "linux*"` -linux=`basename $linux` -sed -i -e s=__KERNEL_NAME__=$linux= $install_dir/Rules.make - -threads=`cat /proc/cpuinfo | grep -c processor` - -# Create a newline -echo >> $install_dir/Rules.make -# Set optimal value for the make file's -j option -echo "MAKE_JOBS=$threads" >> $install_dir/Rules.make - -cd - - - -# Install toolchain sdk -$install_dir/linux-devkit.sh -y -d $install_dir/linux-devkit - -# Remove toolchain sdk -rm $install_dir/linux-devkit.sh - - -# Update example applications CCS project files - -# Grab some essential variables from environment-setup -REAL_MULTIMACH_TARGET_SYS=`sed -n 's/^export REAL_MULTIMACH_TARGET_SYS=//p' $install_dir/linux-devkit/environment-setup` -TOOLCHAIN_SYS=`sed -n 's/^export TOOLCHAIN_SYS=//p' $install_dir/linux-devkit/environment-setup` -SDK_SYS=`sed -n 's/^export SDK_SYS=//p' $install_dir/linux-devkit/environment-setup` - -# Grab toolchain's GCC version -GCC_VERSION=`ls $install_dir/linux-devkit/sysroots/$SDK_SYS/usr/lib/gcc/$TOOLCHAIN_SYS/` - -TOOLCHAIN_TARGET_INCLUDE_DIR="linux-devkit/sysroots/$REAL_MULTIMACH_TARGET_SYS/usr/include" -TOOLCHAIN_INCLUDE_DIR="linux-devkit/sysroots/$SDK_SYS/usr/lib/gcc/$TOOLCHAIN_SYS/$GCC_VERSION/include" - -SDK_PATH_TARGET="linux-devkit/sysroots/$REAL_MULTIMACH_TARGET_SYS/" - -sed -i -e s=__SDK_PATH_TARGET__=$SDK_PATH_TARGET= $install_dir/Rules.make - -if [ -f "$install_dir/bin/unshallow-repositories.sh" ] -then - sed -i -e s=__SDK_INSTALL_DIR__=$install_dir= $install_dir/bin/unshallow-repositories.sh -fi - -if [ -f "$install_dir/bin/create-ubifs.sh" ] -then - sed -i -e s=__SDK_INSTALL_DIR__=$install_dir= $install_dir/bin/create-ubifs.sh -fi - -# Modify create-sdcard.sh to have user-supplied installation directory -if [ -f "${install_dir}/bin/create-sdcard.sh" ] -then - sed -i -e "s|ti-sdk.*\[0-9\]|${install_dir##*/}|g" ${install_dir}/bin/create-sdcard.sh -fi - -# Update CCS project files using important paths to headers - -find $install_dir/example-applications -type f -exec sed -i "s||$TOOLCHAIN_TARGET_INCLUDE_DIR|g" {} \; -find $install_dir/example-applications -type f -exec sed -i "s||$TOOLCHAIN_INCLUDE_DIR|g" {} \; - - -if [ -f "$install_dir/sdk-install.sh" ]; then - # File is only able to run once so delete it from the SDK - rm "$install_dir/sdk-install.sh" -fi - -echo "Installation completed!" -exit 0 - diff --git a/meta-arago-distro/recipes-tisdk/tisdk-install/tisdk-install_1.0.bb b/meta-arago-distro/recipes-tisdk/tisdk-install/tisdk-install_1.0.bb deleted file mode 100644 index da8ecce0..00000000 --- a/meta-arago-distro/recipes-tisdk/tisdk-install/tisdk-install_1.0.bb +++ /dev/null @@ -1,15 +0,0 @@ -DESCRIPTION = "Contains script to properly extract and update various files" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://../sdk-install.sh;beginline=3;endline=19;md5=4b89903784b8d154cd8b631388da4f0d" - -SRC_URI = "file://sdk-install.sh" - -PR = "r6" - -do_install () { - install -d ${D}/ - install ${WORKDIR}/sdk-install.sh ${D}/sdk-install.sh - -} - -FILES:${PN} = "/*" diff --git a/meta-arago-distro/recipes-tisdk/tisdk-readme/tisdk-readme.bb b/meta-arago-distro/recipes-tisdk/tisdk-readme/tisdk-readme.bb deleted file mode 100644 index 59df0c97..00000000 --- a/meta-arago-distro/recipes-tisdk/tisdk-readme/tisdk-readme.bb +++ /dev/null @@ -1,22 +0,0 @@ -DESCRIPTION = "Package that will install a README file into the SDK prebuilt-binaries directory" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" - -SRC_URI = "\ - file://README \ -" - -PR = "r0" -PV = "1.0" - -PACKAGE_ARCH = "${MACHINE_ARCH}" - -S = "${WORKDIR}" - -do_install () { - install -d ${D}/board-support/prebuilt-images - - install -m 0644 ${S}/README ${D}/board-support/prebuilt-images/ -} - -FILES:${PN} += "board-support/*" diff --git a/meta-arago-distro/recipes-tisdk/tisdk-readme/tisdk-readme/README b/meta-arago-distro/recipes-tisdk/tisdk-readme/tisdk-readme/README deleted file mode 100644 index 873d1e86..00000000 --- a/meta-arago-distro/recipes-tisdk/tisdk-readme/tisdk-readme/README +++ /dev/null @@ -1,22 +0,0 @@ -The files contained in this directory represent the images that were built -as part of the original SDK build and packaging process. They are meant -to serve as a restore and starting point for your development. In order -to use these images with an SD card they should be placed in the appropriate -locations. - -By default these locations are: - -================================================================================ -| FILE | LOCATION | -================================================================================ -| MLO | boot partition -| u-boot.img | boot partition -| uEnv.txt | boot partition -| uImage | /boot directory of the rootfs partition -| *.dtb | /boot directory of the rootfs partition -================================================================================ - -By default the boot loaders are read from the first FAT partition, which is -usually called the "boot" partition. Then the bootloader will look for the -uImage and DTB files in the /boot directory of the EXT partition, which is -usually called the "rootfs" partition. diff --git a/meta-arago-distro/recipes-tisdk/tisdk-readme/tisdk-readme/k3/README b/meta-arago-distro/recipes-tisdk/tisdk-readme/tisdk-readme/k3/README deleted file mode 100644 index 0eb6dd3c..00000000 --- a/meta-arago-distro/recipes-tisdk/tisdk-readme/tisdk-readme/k3/README +++ /dev/null @@ -1,26 +0,0 @@ -The files contained in this directory represent the images that were built -as part of the original SDK build and packaging process. They are meant -to serve as a restore and starting point for your development. In order -to use these images with an SD card they should be placed in the appropriate -locations. - -By default these locations are: - -+-------------+-----------------------------------------+ -| File | Location | -+-------------+-----------------------------------------+ -| tiboot3.bin | boot partition | -| tispl.bin | boot partition | -| u-boot.img | boot partition | -| sysfw.itb | boot partition | -| uEnv.txt | boot partition | -+-------------+-----------------------------------------+ -| Image | /boot directory of the rootfs partition | -| *.dtb | /boot directory of the rootfs partition | -| *.dtbo | /boot directory of the rootfs partition | -+-------------+-----------------------------------------+ - -By default the boot loaders are read from the first FAT partition, which is -usually called the "boot" partition. Then the bootloader will look for the -Image and .dtb .dtbo files in the /boot directory of the ext4 partition, which is -usually called the "rootfs" partition. diff --git a/meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories/unshallow-repositories.sh b/meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories/unshallow-repositories.sh deleted file mode 100755 index 7e578be5..00000000 --- a/meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories/unshallow-repositories.sh +++ /dev/null @@ -1,110 +0,0 @@ -#!/bin/bash - -# Authors: -# Franklin Cooper Jr. -# This distribution contains contributions or derivatives under copyright -# as follows: -# -# Copyright (c) 2015, Texas Instruments Incorporated -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# - Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# - Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# - Neither the name of Texas Instruments nor the names of its -# contributors may be used to endorse or promote products derived -# from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR -# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -install_dir="__SDK_INSTALL_DIR__" - -# Find git binary within the host native bin directory -sdk_git_bin="$install_dir/linux-devkit/sysroots/*86*-linux/usr/bin/git" -sdk_git_bin=`which $sdk_git_bin` - -if [ "$sdk_git_bin" = "" ] -then - echo - echo "Couldn't find the git command within linux-devkit" - echo "Unable to automatically unshallow git repository" - echo "If you have git installed and a version higher than 1.8.0.3 ( git --version)" - echo "You can manually unshallow the Linux git repository by running the below" - echo "command within the SDK's Linux git repository" - echo "git fetch --unshallow" - echo - exit 1 -fi - -linux_dir=`find $install_dir/board-support -maxdepth 1 -name "linux*"` -linux=`basename $linux_dir` - -if [ -f $linux_dir/.git/shallow ] -then - echo - echo "The kernel git repository has been trimmed to reduce the size of the SDK installer" - echo "in a process called \"shallowing\". This process causes the repository to include" - echo "only a small fraction of the entire git history. To retrieve the entire git history" - echo "you must unshallow the repository. This will require internet access and if applicable" - echo "proper git proxy settings to access the original remote repository. This script will" - echo "automatically unshallow the Linux repository for you and retrieve its full history." - echo "Depending on your internet speed this process can take 5+ minutes." - echo "Would you like to continue (y/n)?" - echo - - read -p "[ y ] " continueunshallow - echo - - if [ ! -n "$continueunshallow" ]; then - continueunshallow="y" - fi - - if [ "$continueunshallow" != "y" ]; then - echo "You selected no. Please run script the again when your ready to unshallow the" - echo "repository." - exit 0 - fi - - echo "The unshallowing process has begun. For the first couple of minutes you may not see" - echo "any additional output. This is normal." - - cd $linux_dir - - $sdk_git_bin fetch --unshallow - - if [ "$?" = "0" ] - then - echo - echo "The unshallowing process has been completed. The Linux git repository has been" - echo "fully restored." - else - echo - echo "Error unshallowing git repository. Please check your internet connection and" - echo "your git proxy settings." - fi - - echo - - cd - -else - echo - echo "Kernel git repository is not shallow." - echo "The repository has the full commit history and can be treated as a normal" - echo "git repository." - echo -fi diff --git a/meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories_1.0.bb b/meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories_1.0.bb deleted file mode 100644 index c6ed07ab..00000000 --- a/meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories_1.0.bb +++ /dev/null @@ -1,16 +0,0 @@ -DESCRIPTION = "Contains script to unshallow git repositories" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://../unshallow-repositories.sh;beginline=3;endline=19;md5=234309914fd2cc17f3187bdb2d64553b" - -SRC_URI = "file://unshallow-repositories.sh" - -PR = "r1" - -do_install () { - install -d ${D}/ - install -d ${D}/bin - install -m 0755 ${WORKDIR}/unshallow-repositories.sh ${D}/bin -} - -FILES:${PN} = "/*" -RDEPENDS:${PN} += "bash" 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 deleted file mode 100644 index 859d9eab..00000000 --- a/meta-arago-extras/recipes-core/packagegroups/nativesdk-packagegroup-arago-tisdk-host.bb +++ /dev/null @@ -1,39 +0,0 @@ -SUMMARY = "Host packages for a standalone Arago SDK with TI tools" -PR = "r2" -LICENSE = "MIT" - -inherit packagegroup nativesdk - -PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1" - -TIDL_TOOLS = "" -#TIDL_TOOLS = " \ -# nativesdk-tidl-import \ -# nativesdk-tidl-viewer \ -# nativesdk-tidl-utils \ -#" - -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 \ - ${@oe.utils.all_distro_features(d, "opencl opencv", "${TIDL_TOOLS}")} \ -" - -RDEPENDS:${PN} = "\ - nativesdk-packagegroup-sdk-host \ - ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'nativesdk-wayland-dev', '', d)} \ - nativesdk-python3-distutils \ - nativesdk-python3-numpy \ - nativesdk-git \ - nativesdk-mtd-utils-ubifs \ - ${EXTRA_TI_TOOLS} \ -" - -RDEPENDS:${PN}:remove = "\ - nativesdk-meson \ -"