Move to the Yocto SDK target
cover Move to the Yocto SDK target
From: Randolph Sapp <[email protected]>
The old arago-sdk build target has been broken and unloved for far too long. Let's drop it in favor of the Yocto Standard SDK build target.
This cleans up an awful lot of dead logic and fixes a rather annoying warning that's been bothering me for a while now.
More info about the Standard SDK target can be found here:
https://docs.yoctoproject.org/sdk-manual/appendix-obtain.html#building-an-sdk-installer
There's probably some unreachable recipes in this layer and meta-ti now. I did not take the time to check that. I believe a full recipe audit is in order anyway.
Randolph Sapp (3):
all: remove all external toolchain stuff
all: remove all external toolchain logic
all: remove all legacy arago-sdk build recipes
.../classes/tisdk-bundle.bbclass | 928 ------------------ meta-arago-distro/conf/distro/arago.conf | 13 - .../distro/include/branding-processor-sdk.inc | 2 - .../conf/distro/include/toolchain-arm.inc | 118 --- .../distro/include/toolchain-external.inc | 4 - .../conf/distro/include/toolchain-gcc.inc | 41 - .../distro/include/toolchain-internal.inc | 4 - .../recipes-core/images/arago-image.inc | 1 - .../recipes-core/images/tisdk-core-bundle.bb | 19 - .../recipes-core/images/tisdk-core-bundle.inc | 39 - .../external-arm-secondary-sdk-toolchain.bb | 4 - .../meta/external-arm-toolchain.bbappend | 36 - .../meta/meta-toolchain-arago-tisdk-server.bb | 7 - .../meta/meta-toolchain-arago-tisdk.bb | 6 - .../meta/meta-toolchain-arago-tisdk.inc | 8 - .../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 - .../packagegroup-cross-canadian.bbappend | 10 - .../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 - .../meta/external-arm-bfd-version.inc | 8 - .../meta/external-arm-sdk-toolchain.bb | 131 --- .../meta/external-arm-toolchain.bbappend | 73 -- .../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 - ...nativesdk-packagegroup-arago-tisdk-host.bb | 39 - 44 files changed, 2626 deletions(-) delete mode 100644 meta-arago-distro/classes/tisdk-bundle.bbclass delete mode 100644 meta-arago-distro/conf/distro/include/toolchain-arm.inc 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/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/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/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-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-core/packagegroups/packagegroup-cross-canadian.bbappend 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/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 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 delete mode 100644 meta-arago-extras/recipes-core/packagegroups/nativesdk-packagegroup-arago-tisdk-host.bb
Signature · 1 line
2.40.1
PATCH 1/3 all: remove all external toolchain stuff
From: Randolph Sapp <[email protected]>
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.
--- .../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
meta-arago-distro/conf/distro/include/toolchain-arm.inc deleted +0 -118
@@ -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
meta-arago-distro/recipes-core/meta/external-arm-secondary-sdk-toolchain.bb deleted +0 -4
@@ -1,4 +0,0 @@ -TARGET_ARCH := "${SECONDARY_TARGET_ARCH}" -MACHINEOVERRIDES := "${SECONDARY_TARGET_ARCH}" - -require recipes-core/meta/external-arm-sdk-toolchain.bb
meta-arago-distro/recipes-core/meta/external-arm-toolchain.bbappend deleted +0 -36
@@ -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 -}
meta-arago-distro/recipes-core/packagegroups/packagegroup-cross-canadian.bbappend deleted +0 -10
@@ -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)} \ -"
meta-arago-extras/recipes-core/meta/external-arm-bfd-version.inc deleted +0 -8
@@ -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)}"
meta-arago-extras/recipes-core/meta/external-arm-sdk-toolchain.bb deleted +0 -131
131 lines not on this page · raw message
meta-arago-extras/recipes-core/meta/external-arm-toolchain.bbappend deleted +0 -73
73 lines not on this page · raw message
Signature · 1 line
2.40.1
Re: [meta-arago][master][PATCH 1/3] all: remove all external toolchain stuff
Quoted 6 lines · On 5/22/23 1:38 PM, [email protected] wrote:
From: Randolph Sapp <[email protected]>
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.
Another reason was for speeding builds on build farms which could avoid re-builing the toolchain each time.
These days it is probably not worth the uncertaintay around mismatched build tools, but at the time this was all neato stuff:
https://elinux.org/images/c/c8/ExternalToolchainsInYocto.pdf
Oh well,
Re: [meta-arago][master][PATCH 1/3] all: remove all external toolchain stuff
Quoted 11 lines · Andrew Davis
Quoted 6 lines · On 5/22/23 1:38 PM, [email protected] wrote:
From: Randolph Sapp <[email protected]>
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.
Another reason was for speeding builds on build farms which could avoid re-builing the toolchain each time.
Quoted 8 lines
These days it is probably not worth the uncertaintay around mismatched build tools, but at the time this was all neato stuff:
https://elinux.org/images/c/c8/ExternalToolchainsInYocto.pdf
Oh well,
Acked-by Andrew Davis <[email protected]>
Cool, but excessive and a source for issues where clients are using build tools different from ours... Ultimately this needed to be culled in favor of the yocto standard anyway.
Also, speeding up builds should be a moot point. Sstate cache still applies to these host tools so long as the host env doesn't change too much, and build containers should prevent that.
Re: [meta-arago][master][PATCH 1/3] all: remove all external toolchain stuff
Quoted 21 lines · Randolph Sapp via lists.yoctoproject.org
Quoted 11 lines · Andrew Davis
Quoted 6 lines · On 5/22/23 1:38 PM, [email protected] wrote:
From: Randolph Sapp <[email protected]>
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.
Another reason was for speeding builds on build farms which could avoid re-builing the toolchain each time.
Quoted 8 lines
These days it is probably not worth the uncertaintay around mismatched build tools, but at the time this was all neato stuff:
https://elinux.org/images/c/c8/ExternalToolchainsInYocto.pdf
Oh well,
Acked-by Andrew Davis <[email protected]>
Quoted 7 lines
Cool, but excessive and a source for issues where clients are using build tools different from ours... Ultimately this needed to be culled in favor of the yocto standard anyway.
Also, speeding up builds should be a moot point. Sstate cache still applies to these host tools so long as the host env doesn't change too much, and build containers should prevent that.
Build speed wasn't the main reason for prebuilt toolchains.
It was exactly because nobody was using Yocto-built toolchains back then and everyone, including internal TI developers and customers, were using prebuilt toolchains - first from CodeSourcery, then from Linaro and then from Arm.
And the reasons were - trust, reproducibility and technical support. If you build your toolchain from sources, you have to support it yourself - answer customer's questions and fix possible bugs. And 3rd-party toolchains had that covered. While Yocto didn't have a track record of a stable mature toolchain, as I mentioned few of the shortcomings in my presentation linked above...
Signature · 1 line
Denys
PATCH 2/3 all: remove all external toolchain logic
In reply to [email protected]From: Randolph Sapp <[email protected]>
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
--- 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
meta-arago-distro/conf/distro/arago.conf +0 -13
@@ -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"
meta-arago-distro/conf/distro/include/branding-processor-sdk.inc +0 -2
@@ -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"
meta-arago-distro/conf/distro/include/toolchain-external.inc deleted +0 -4
@@ -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}"
meta-arago-distro/conf/distro/include/toolchain-gcc.inc deleted +0 -41
41 lines not on this page · raw message
meta-arago-distro/conf/distro/include/toolchain-internal.inc deleted +0 -4
@@ -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}"
meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk-server.bb deleted +0 -7
@@ -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"
meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.bb deleted +0 -6
@@ -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"
meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.inc deleted +0 -8
@@ -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 -}
meta-arago-extras/recipes-core/meta/meta-toolchain-arago-qte.bb deleted +0 -54
54 lines not on this page · raw message
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0 -360
360 lines not on this page · raw message
meta-arago-extras/recipes-core/meta/nativesdk-buildtools-perl-dummy.bbappend deleted +0 -23
@@ -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 \ -"
meta-arago-extras/recipes-core/packagegroups/nativesdk-packagegroup-arago-qte-toolchain-host.bb deleted +0 -11
@@ -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 \ - "
Signature · 1 line
2.40.1
Re: [meta-arago][master][PATCH 2/3] all: remove all external toolchain logic
Quoted 8 lines · On 5/22/23 1:38 PM, [email protected] wrote:
From: Randolph Sapp <[email protected]>
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
How is this patch logically different from the one before, should they be squashed?
Or are you saying these are the parts that are still needed for Arago/TI SDK? If so would it make more sence to have patch 3/3 first? I'm guessing there are some circular dependancies given we build the SDK with the toolchain then we package the toolchain in the SDK.. Maybe squash all three?
Andrew
Quoted 643 lines
Signed-off-by Randolph Sapp <[email protected]>--- 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.bbmeta-arago-distro/conf/distro/arago.conf +0
-13@@ -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"meta-arago-distro/conf/distro/include/branding-processor-sdk.inc +0
-2@@ -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"meta-arago-distro/conf/distro/include/toolchain-external.inc deleted +0
-4@@ -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}"meta-arago-distro/conf/distro/include/toolchain-gcc.inc deleted +0
-41@@ -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}"meta-arago-distro/conf/distro/include/toolchain-internal.inc deleted +0
-4@@ -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}"meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk-server.bb deleted +0
-7@@ -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"meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.bb deleted +0
-6@@ -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"meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.inc deleted +0
-8@@ -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 -}meta-arago-extras/recipes-core/meta/meta-toolchain-arago-qte.bb deleted +0
-54@@ -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;) -}meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-360@@ -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 <<EOF - -# Append environment subscripts -if [ -d "\$OECORE_TARGET_SYSROOT/environment-setup.d" ]; then - for envfile in \$OECORE_TARGET_SYSROOT/environment-setup.d/*.sh; do - . \$envfile - done -fi -if [ -d "\$OECORE_NATIVE_SYSROOT/environment-setup.d" ]; then - for envfile in \$OECORE_NATIVE_SYSROOT/environment-setup.d/*.sh; do - . \$envfile - done -fi -EOF - -} - -SDK_POSTPROCESS_COMMAND:prepend = "arago_sdk_fixup; " - -arago_sdk_fixup () { - # Remove broken .la files - for i in `find ${SDK_OUTPUT}/${SDKPATH} -name \*.la`; do - rm -f $i - done - - cleanup_toolchain_packages - - # Do some extra setup work due to new structure - mkdir -p "${SDK_OUTPUT}/${SDKPATHNATIVE}${prefix_nativesdk}/lib/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}" - if [ "${TOOLCHAIN_TYPE}" = "internal" ]; then - lexec="${SDK_OUTPUT}/${SDKPATHNATIVE}${prefix_nativesdk}/libexec/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}/gcc/${TOOLCHAIN_SYS}" - else - lexec="${SDK_OUTPUT}/${SDKPATHNATIVE}${prefix_nativesdk}/libexec/gcc/${TOOLCHAIN_SYS}" - fi - tcv=`ls -1 $lexec|head -1` - [ -e ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/lib/$tcv ] || ln -s . ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/lib/$tcv - [ -e ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/usr/lib/$tcv ] || ln -s . ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/usr/lib/$tcv - [ -e ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/lib/${TOOLCHAIN_SYS} ] || ln -s . ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/lib/${TOOLCHAIN_SYS} - [ -e ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/usr/lib/${TOOLCHAIN_SYS} ] || ln -s . ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/usr/lib/${TOOLCHAIN_SYS} - tcpath="${SDK_OUTPUT}/${SDKPATHNATIVE}${prefix_nativesdk}/${TOOLCHAIN_SYS}" - mkdir -p $tcpath - ( cd $tcpath; \ - ln -s ${SDKTARGETSYSROOT}/include include; \ - if [ "${TOOLCHAIN_BRAND}" != "arago" ]; then \ - mkdir -p libc; \ - cd libc; \ - fi; \ - mkdir -p usr; \ - ln -s ${SDKTARGETSYSROOT}/lib lib; \ - ln -s ${SDKTARGETSYSROOT}/usr/lib usr/lib; \ - ln -s ${SDKTARGETSYSROOT}/usr/include usr/include; \ - ) -} - -fakeroot create_sdk_files() { - toolchain_create_sdk_env_script ${SDK_OUTPUT}/${SDKPATH}/environment-setup - - cp ${COREBASE}/scripts/relocate_sdk.py ${SDK_OUTPUT}/${SDKPATH}/ - - # Replace the ##DEFAULT_INSTALL_DIR## with the correct pattern. - # Escape special characters like '+' and '.' in the SDKPATH - escaped_sdkpath=$(echo ${SDKPATH} |sed -e "s:[\+\.]:\\\\\\\\\0:g") - sed -i -e "s:##DEFAULT_INSTALL_DIR##:$escaped_sdkpath:" ${SDK_OUTPUT}/${SDKPATH}/relocate_sdk.py -} - -# Remove undesired packages that may be pulled into the toolchain by -dev -# package dependencies. This is usually GPLv3 components. -cleanup_toolchain_packages() { - if [ "${TOOLCHAIN_CLEANUP_PACKAGES}" != "" ] - then - # Clean up the native side of the toolchain - opkg_dir="${SDK_OUTPUT}/${SDKPATHNATIVE}" - opkg_conf="${SDK_OUTPUT}/etc/opkg-sdk.conf" - opkg -o $opkg_dir -f $opkg_conf --force-depends remove ${TOOLCHAIN_CLEANUP_PACKAGES} - - # Clean up the target side of the toolchain - opkg_dir="${SDK_OUTPUT}/${SDKTARGETSYSROOT}" - opkg_conf="${opkg_dir}/etc/opkg/opkg.conf" - opkg -o $opkg_dir -f $opkg_conf --force-depends remove ${TOOLCHAIN_CLEANUP_PACKAGES} - - # Clean up empty directories from cleaned up packages - find ${SDK_OUTPUT} -depth -type d -empty -print0 | xargs -r0 /bin/rmdir - fi -} - -fakeroot archive_sdk() { - # Package it up - mkdir -p ${SDKDEPLOYDIR} - cd ${SDK_OUTPUT}/${SDKPATH} - tar --owner=root --group=root -c . | xz ${SDK_XZ_OPTIONS} > ${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 <dir>]" - echo " -y Automatic yes to all prompts" - echo " -d <dir> Install the SDK to <dir>" - 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} -}meta-arago-extras/recipes-core/meta/nativesdk-buildtools-perl-dummy.bbappend deleted +0
-23@@ -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 \ -"meta-arago-extras/recipes-core/packagegroups/nativesdk-packagegroup-arago-qte-toolchain-host.bb deleted +0
-11@@ -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 \ - "
Re: [meta-arago][master][PATCH 2/3] all: remove all external toolchain logic
Quoted 13 lines · Andrew Davis
Quoted 8 lines · On 5/22/23 1:38 PM, [email protected] wrote:
From: Randolph Sapp <[email protected]>
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_sdkHow is this patch logically different from the one before, should they be squashed?
Quoted 7 lines
Or are you saying these are the parts that are still needed for Arago/TI SDK? If so would it make more sence to have patch 3/3 first? I'm guessing there are some circular dependancies given we build the SDK with the toolchain then we package the toolchain in the SDK.. Maybe squash all three?
Andrew
Ha, to be entirely frank, I went on an rm spree prior to assessing recipe needs. This and the previous patch should probably come after patch 3 to prevent bisect issues.
Quoted 730 lines
Quoted 730 lines
Signed-off-by Randolph Sapp <[email protected]>---
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.bbmeta-arago-distro/conf/distro/arago.conf +0
-0@@ -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']}"
meta-arago-distro/conf/distro/arago.conf +0
-2-# Toolchain should be selected by setting TOOLCHAIN_BRAND in local.conf -# Set some sane defaults, in case someone forgets to set them inlocal.conf
meta-arago-distro/conf/distro/arago.conf +0
-4-TC_SANE_DEFAULT ?= "arm" -TOOLCHAIN_TYPE ?= "internal" -TOOLCHAIN_TYPE:omapl138 = "internal" -TOOLCHAIN_BRAND ?="${@[d.getVar('TC_SANE_DEFAULT'),'gcc'][d.getVar('TOOLCHAIN_TYPE') == 'internal']}"
meta-arago-distro/conf/distro/arago.conf +0
-4- -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"
meta-arago-distro/conf/distro/arago.conf +0
-0@@ -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-libavcommercial_faad2non-commercial_netperf"meta-arago-distro/conf/distro/arago.conf +0
-3- -# Do not package own copy of perl into devkit, rely on host one -ASSUME_PROVIDED += "nativesdk-perl"meta-arago-distro/conf/distro/include/branding-processor-sdk.inc +0
-2@@ -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"meta-arago-distro/conf/distro/include/toolchain-external.inc deleted +0
-4@@ -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}"meta-arago-distro/conf/distro/include/toolchain-gcc.inc deleted +0
-5@@ -1,41 +0,0 @@ -# Select internal gcc toolchain to be built from sources -TCMODE = "default" -TCLIBC = "glibc" - -LIBCEXTENSION = "${@['', '-gnu'][(d.getVar('ABIEXTENSION') or '') !='']}"
meta-arago-distro/conf/distro/include/toolchain-gcc.inc deleted +0
-6- -# 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}"
meta-arago-distro/conf/distro/include/toolchain-gcc.inc deleted +0
-28- -# 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}"meta-arago-distro/conf/distro/include/toolchain-internal.inc deleted +0
-1@@ -1,4 +0,0 @@ -# No special handling is required for locating the internaltoolchain, just re-use existing vars
meta-arago-distro/conf/distro/include/toolchain-internal.inc deleted +0
-3-TOOLCHAIN_PATH ?= "${STAGING_BINDIR_TOOLCHAIN}" -TOOLCHAIN_SYSPATH ?= "${TOOLCHAIN_PATH}/${TARGET_SYS}" -EXTERNAL_TOOLCHAIN = "${TOOLCHAIN_PATH}"meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk-server.bb deleted +0
-1---a/meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk-server.bb +++
/dev/nullmeta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk-server.bb deleted +0
-7@@ -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"meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.bb deleted +0
-6@@ -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"meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.inc deleted +0
-2@@ -1,8 +0,0 @@ -TOOLCHAIN_TARGET_TASK ?= "packagegroup-arago-toolchain-tisdk-target" -TOOLCHAIN_CLEANUP_PACKAGES ?= "libgnutls-dev libgnutls-extra26libgnutls-openssl27 libtasn1-dev coreutils"
meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.inc deleted +0
-5- -INC_PR = "r5" - -toolchain_create_sdk_env_script:append() { - echo -e 'export PS1="\[\\e[32;1m\][linux-devkit]\[\\e[0m\]:\w> "'Quoted 1 line
Quoted 1 line
$script
meta-arago-distro/recipes-core/meta/meta-toolchain-arago-tisdk.inc deleted +0
-1-}meta-arago-extras/recipes-core/meta/meta-toolchain-arago-qte.bb deleted +0
-14@@ -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 'exportPATH=$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 properlymeta-arago-extras/recipes-core/meta/meta-toolchain-arago-qte.bb deleted +0
-2- -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;)meta-arago-extras/recipes-core/meta/meta-toolchain-arago-qte.bb deleted +0
-1-}meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-6@@ -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}"
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-11-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 adeployable 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 ' exportSDK_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 'exportCONFIG_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}"' >>$scriptmeta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-31- - # Borrowed from oe-core/meta/classes/toolchain-scripts.bbclass - cat >> $script <<EOF - -# Append environment subscripts -if [ -d "\$OECORE_TARGET_SYSROOT/environment-setup.d" ]; then - for envfile in \$OECORE_TARGET_SYSROOT/environment-setup.d/*.sh; do - . \$envfile - done -fi -if [ -d "\$OECORE_NATIVE_SYSROOT/environment-setup.d" ]; then - for envfile in \$OECORE_NATIVE_SYSROOT/environment-setup.d/*.sh; do - . \$envfile - done -fi -EOF - -} - -SDK_POSTPROCESS_COMMAND:prepend = "arago_sdk_fixup; " - -arago_sdk_fixup () { - # Remove broken .la files - for i in `find ${SDK_OUTPUT}/${SDKPATH} -name \*.la`; do - rm -f $i - done - - cleanup_toolchain_packages - - # Do some extra setup work due to new structure - mkdir -p"${SDK_OUTPUT}/${SDKPATHNATIVE}${prefix_nativesdk}/lib/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}"
- if [ "${TOOLCHAIN_TYPE}" = "internal" ]; then
- lexec="${SDK_OUTPUT}/${SDKPATHNATIVE}${prefix_nativesdk}/libexec/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}/gcc/${TOOLCHAIN_SYS}" - else
-
lexec="${SDK_OUTPUT}/${SDKPATHNATIVE}${prefix_nativesdk}/libexec/gcc/${TOOLCHAIN_SYS}"
- fi
- tcv=ls -1 $lexec|head -1
- [ -e ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/lib/$tcv ] || ln -s .
${SDK_OUTPUT}/${SDKTARGETSYSROOT}/lib/$tcv
- [ -e ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/usr/lib/$tcv ] || ln -s . ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/usr/lib/$tcv
- [ -e ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/lib/${TOOLCHAIN_SYS} ] ||
ln -s . ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/lib/${TOOLCHAIN_SYS}
- [ -e ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/usr/lib/${TOOLCHAIN_SYS} ]|| ln -s . ${SDK_OUTPUT}/${SDKTARGETSYSROOT}/usr/lib/${TOOLCHAIN_SYS} -tcpath="${SDK_OUTPUT}/${SDKPATHNATIVE}${prefix_nativesdk}/${TOOLCHAIN_SYS}" - mkdir -p $tcpath
- ( cd $tcpath; \
- ln -s ${SDKTARGETSYSROOT}/include include; \
- if [ "${TOOLCHAIN_BRAND}" != "arago" ]; then \
- mkdir -p libc; \
- cd libc; \
- fi; \
- mkdir -p usr; \
- ln -s ${SDKTARGETSYSROOT}/lib lib; \
- ln -s ${SDKTARGETSYSROOT}/usr/lib usr/lib; \
- ln -s ${SDKTARGETSYSROOT}/usr/include usr/include; \
- )meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-4-} - -fakeroot create_sdk_files() { - toolchain_create_sdk_env_script${SDK_OUTPUT}/${SDKPATH}/environment-setup
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-7- - cp ${COREBASE}/scripts/relocate_sdk.py ${SDK_OUTPUT}/${SDKPATH}/ - - # Replace the ##DEFAULT_INSTALL_DIR## with the correct pattern. - # Escape special characters like '+' and '.' in the SDKPATH - escaped_sdkpath=$(echo ${SDKPATH} |sed -e "s:[\+\.]:\\\\\\\\\0:g") - sed -i -e "s:##DEFAULT_INSTALL_DIR##:$escaped_sdkpath:"
${SDK_OUTPUT}/${SDKPATH}/relocate_sdk.pymeta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-12-} - -# Remove undesired packages that may be pulled into the toolchain by -dev -# package dependencies. This is usually GPLv3 components. -cleanup_toolchain_packages() { - if [ "${TOOLCHAIN_CLEANUP_PACKAGES}" != "" ] - then - # Clean up the native side of the toolchain - opkg_dir="${SDK_OUTPUT}/${SDKPATHNATIVE}" - opkg_conf="${SDK_OUTPUT}/etc/opkg-sdk.conf" - opkg -o $opkg_dir -f $opkg_conf --force-depends remove${TOOLCHAIN_CLEANUP_PACKAGES}
-
- # Clean up the target side of the toolchain
- opkg_dir="${SDK_OUTPUT}/${SDKTARGETSYSROOT}"
- opkg_conf="${opkg_dir}/etc/opkg/opkg.conf"
- opkg -o $opkg_dir -f $opkg_conf --force-depends remove ${TOOLCHAIN_CLEANUP_PACKAGES}
-
- # Clean up empty directories from cleaned up packages - find ${SDK_OUTPUT} -depth -type d -empty -print0 | xargs -r0/bin/rmdir
- fimeta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-7-} - -fakeroot archive_sdk() { - # Package it up - mkdir -p ${SDKDEPLOYDIR} - cd ${SDK_OUTPUT}/${SDKPATH} - tar --owner=root --group=root -c . | xz ${SDK_XZ_OPTIONS} >${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.${SDK_ARCHIVE_TYPE}
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-7-} - -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/")meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-22- -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 <dir>]"
- echo " -y Automatic yes to all prompts" - echo " -d <dir> Install the SDK to <dir>"
- 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
- ;;
- esacmeta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-7-done - -if [ $verbose = 1 ] ; then - set -x -fi - -printf "Enter target directory for SDK (default:$DEFAULT_INSTALL_DIR): "
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-16-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) containsspaces. Abort!"
- exit 1meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-4-fi - -if [ -e "$target_sdk_dir/environment-setup*" ]; then - echo "The directory \"$target_sdk_dir\" already contains a SDKfor this architecture."
- printf "If you continue, existing files will be overwritten! Proceed[y/N]?"meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-4- - default_answer="n" -else - printf "You are about to install the SDK to \"$target_sdk_dir\".Proceed[Y/n]?"
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-17- - 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'thave rights)
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-4-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 1meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-15- - # 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
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-7-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 findld-linux.so. Abort!"
- exit 1meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-3-fi -executable_files=$($SUDO_EXEC find $native_sysroot -type f -perm /111 -exec file '{}' \;| grep "\(executable\|dynamically linked\|static-pielinked\)" | cut -f 1 -d ':')
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-8- -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.shmeta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-10-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"meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-4- -# 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
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-3-done - -# find out all perl scripts in $native_sysroot and modify themreplacing the
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-2-# host perl with SDK perl. -for perl_script in $($SUDO_EXEC find $native_sysroot -type f -execgrep "^#!.*perl" -l '{}' \;); do
- $SUDO_EXEC sed -i -e "s:^#! */usr/bin/perl.*:#!/usr/bin/envperl:g" -e \
- "s:/usr/bin/perl:/usr/bin/envperl:g" $perl_scriptmeta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-5-done - -echo done - -# delete the relocating script, so that user is forced to re-run theinstaller
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-3-# 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
meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-10-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}Quoted 1 line
Quoted 1 line
${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.shmeta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb deleted +0
-4- - # delete the old tarball, we don't need it anymore - rm ${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.${SDK_ARCHIVE_TYPE} -}meta-arago-extras/recipes-core/meta/nativesdk-buildtools-perl-dummy.bbappend deleted +0
-1---a/meta-arago-extras/recipes-core/meta/nativesdk-buildtools-perl-dummy.bbappend +++
/dev/nullmeta-arago-extras/recipes-core/meta/nativesdk-buildtools-perl-dummy.bbappend deleted +0
-23@@ -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 \ -"meta-arago-extras/recipes-core/packagegroups/nativesdk-packagegroup-arago-qte-toolchain-host.bb deleted +0
-1---a/meta-arago-extras/recipes-core/packagegroups/nativesdk-packagegroup-arago-qte-toolchain-host.bb +++
/dev/nullmeta-arago-extras/recipes-core/packagegroups/nativesdk-packagegroup-arago-qte-toolchain-host.bb deleted +0
-11@@ -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 \ - "
PATCH 3/3 all: remove all legacy arago-sdk build recipes
In reply to [email protected]From: Randolph Sapp <[email protected]>
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.
--- .../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
meta-arago-distro/classes/tisdk-bundle.bbclass deleted +0 -928
@@ -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_<feature> 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 " -<HTML> -<HEAD> -<TITLE> -${MACHINE} TISDK ${SDK_VERSION} Installation Summary -</TITLE> -</HEAD> -<BODY> -<h1><CENTER> ${MACHINE} TISDK ${SDK_VERSION} Software Manifest </CENTER></h1> -<h2><CENTER> `date +"%B %d, %Y"` </CENTER></h2> -<h2><b><u>Legend (explanation of the fields in the Manifest Table below)</u></b></h2> -<table border=1 width=45%> -<tr> - <td>Software Name</td> - <td>The name of the application or files</td> -</tr> -<tr> - <td>Version</td> - <td>Version of the application or files</td> -</tr> -<tr> - <td>License Type</td> - <td>Type 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.</td> -</tr> -<tr> - <td>Location</td> - <td>The directory name and path on the media (or in an archive) where the Package is located.</td> -</tr> -<tr> - <td>Delivered As</td> - <td>This 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.</td> -</tr> -<tr> - <td>Modified by TI</td> - <td>This 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.</td> -</tr> -<tr> - <td>Obtained from</td> - <td>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 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.</td> -</tr> -</table> - - -<h2><b>DISCLAIMERS</b></h2> -<h2><u>Export Control Classification Number (ECCN)</u></h2> -<p> -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. -</p> - -<h2><u>Links in the Manifest</u></h2> -<p> -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. -</p> - -<h2><u>Open Source License References</u></h2> -<p> -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. -</p> - -<h2><b>Export Information</b></h2> -<p> -ECCN for Software included in this release: Publicly Available -</p> - -<p> -ECCN for Technology (e.g., user documentation, specifications) included in this release: Publicly Available -</p> - -<h2><b>Manifest</b></h2> -<p> -See Legend above for a description of the columns and possible values. -</p> -" > ${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 <table> end with the end keyword, </table> 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 <table> down to </table> 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. ---> - -<directives> -Version = .1.0. -Sep = .|. -Tool=.Word. -</directives> - -<-- ** 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 " -<h2>Credits</h2> - -<h2>Licenses</h2> -<p>Licenses can be found in the \"docs/licenses\" directory of the SDK install directory</p> - -<h2><u><b>GCC RUNTIME LIBRARY EXCEPTION</b></u></h2> -<p>Version 3.1, 31 March 2009</p> - -<p>Copyright © 2009 Free Software Foundation, Inc. <a href=\"http://fsf.org/\">http://fsf.org/</a></p> - -<p>Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.</p> - -<p>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.</p> - -<p>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.</p> - -<h3><b>0. Definitions.</b></h3> -<p>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.</p> - -<p>"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.</p> - -<p>"GPL-compatible Software" is software whose conditions of propagation, modification and use would permit combination with GCC in accord with the license of GCC.</p> - -<p>"GPL-compatible Software" is software whose conditions of propagation, modification and use would permit combination with GCC in accord with the license of GCC.</p> - -<p>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.</p> - -<p>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.</p> - -<h3><b>1. Grant of Additional Permission.</b></h3> -<p>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.</p> - -<h3><b>2. No Weakening of GCC Copyleft.</b></h3> -<p>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.</p> - -<hr> -<right> <i><font color=grey>Auto generated by TISDK installer on `date`</i> </right></font> -</body> -</html> - -" >> ${SW_MANIFEST_FILE} - - -cat >> ${SW_MANIFEST_TEXT} << 'EOF' -<Credits> - -</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. - -</licenses> -EOF - -} - -sw_manifest_table_header() { - echo " -<h2><u>$1</u></h2> -<p>$2</p> -" >> ${SW_MANIFEST_FILE} - - cat >> ${SW_MANIFEST_TEXT} << EOF -<table> -<thead> -attribute = "Public" -name = "$1" -description = "$2" -</thead> - -EOF -} - -sw_manifest_table_footer() { - if [ ! -z $1 ]; then - cat >> ${SW_MANIFEST_TEXT} << EOF -<Footnotes> -$1 -</footnotes> -EOF - fi - cat >> ${SW_MANIFEST_TEXT} << EOF -</table> - -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 " -<table border=1 cellspacing=1 cellpadding=1 width=80%> -<tr bgcolor=#c0c0c0 color=white> - <td><b>Software Name</b></td> - <td><b>Version</b></td> - <td><b>License</b></td> - <td><b>Location</b></td> - <td><b>Delivered As</b></td> - <td><b>Modified by TI</b></td> - <td><b>Obtained from</b></td> -</tr> -" >> ${SW_MANIFEST_FILE} - -cat >> ${SW_MANIFEST_TEXT} << EOF -<tbody> -<!-- Software Name -| Version -| License Type -| Delivered As -| Modified by TI -| Location -| Obtained from --> - -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""<a href=$s>$s</a>";; - esac - done - - if [ "$extra_files" = "1" ] - then - source="$source"" <br>Files from:<br><a href=https://git.yoctoproject.org/meta-arago>https://git.yoctoproject.org/meta-arago</a><br><a href=https://git.yoctoproject.org/meta-ti>https://git.yoctoproject.org/meta-ti</a>" - fi - - case "$package" in - task-*) - continue ;; - *-source*) - delivered_as="Source" - ;; - *) - delivered_as="Binary" - ;; - esac - -echo " -<tr> - <td>${package} </td> - <td>${version}</td> - <td $highlight>${license}</td> - <td>${location}</td> - <td>${delivered_as}</td> - <td>${modified}</td> - <td>${source}</td> -</tr> -" >> ${SW_MANIFEST_FILE} - -cat >> ${SW_MANIFEST_TEXT} << EOF -| ${package} | ${version} | ${license} | ${delivered_as} | ${modified} | ${location} | ${source} -EOF - done - - echo "</table><br><br>" >> ${SW_MANIFEST_FILE} - -cat >> ${SW_MANIFEST_TEXT} << EOF -</tbody> - -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
meta-arago-distro/recipes-core/images/arago-image.inc +0 -1
@@ -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 += " \
meta-arago-distro/recipes-core/images/tisdk-core-bundle.bb deleted +0 -19
@@ -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}"
meta-arago-distro/recipes-core/images/tisdk-core-bundle.inc deleted +0 -39
@@ -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 \ -"
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-gst-sdk-target.bb deleted +0 -28
@@ -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} \ -"
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons-sdk-target.bb deleted +0 -76
76 lines not on this page · raw message
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-amsdk-sdk-host.bb deleted +0 -18
@@ -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 \ -"
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-connectivity-sdk-target.bb deleted +0 -27
@@ -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} \ -"
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-crypto-sdk-target.bb deleted +0 -14
@@ -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} \ -"
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-graphics-sdk-target.bb deleted +0 -15
@@ -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)} \ -"
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-gtk-sdk-target.bb deleted +0 -11
@@ -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 \ -"
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-multimedia-sdk-target.bb deleted +0 -30
@@ -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 \ -"
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-opencl-sdk-target.bb deleted +0 -22
@@ -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} \ -"
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-toolchain-tisdk-target.bb deleted +0 -28
@@ -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 \ -"
meta-arago-distro/recipes-tisdk/ocl-rtos/opencl-examples-rtos_git.bbappend deleted +0 -6
@@ -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"
meta-arago-distro/recipes-tisdk/oe-layersetup/oe-layersetup.bb deleted +0 -13
@@ -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"
meta-arago-distro/recipes-tisdk/ti-tisdk-setup/ti-tisdk-setup.bb deleted +0 -59
59 lines not on this page · raw message
meta-arago-distro/recipes-tisdk/tisdk-install/tisdk-install/sdk-install.sh deleted +0 -129
129 lines not on this page · raw message
meta-arago-distro/recipes-tisdk/tisdk-install/tisdk-install_1.0.bb deleted +0 -15
@@ -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} = "/*"
meta-arago-distro/recipes-tisdk/tisdk-readme/tisdk-readme.bb deleted +0 -22
@@ -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/*"
meta-arago-distro/recipes-tisdk/tisdk-readme/tisdk-readme/README deleted +0 -22
@@ -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.
meta-arago-distro/recipes-tisdk/tisdk-readme/tisdk-readme/k3/README deleted +0 -26
@@ -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.
meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories/unshallow-repositories.sh deleted +0 -110
110 lines not on this page · raw message
meta-arago-distro/recipes-tisdk/unshallow-repositories/unshallow-repositories_1.0.bb deleted +0 -16
@@ -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"
meta-arago-extras/recipes-core/packagegroups/nativesdk-packagegroup-arago-tisdk-host.bb deleted +0 -39
@@ -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 \ -"
Signature · 1 line
2.40.1
Re: [meta-arago][master][PATCH 3/3] all: remove all legacy arago-sdk build recipes
Quoted 6 lines · On 5/22/23 1:38 PM, [email protected] wrote:
From: Randolph Sapp <[email protected]>
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:
Quoted 8 lines
bitbake tisdk-default-image -c
populate_sdkFor more info about the SDK build targets see:
https://docs.yoctoproject.org/sdk-manual/appendix-obtain.html#building-an-sdk-installerThere's probably still more that can be cleaned up, but I'll leave that to the more experienced.
Some documentation around this will need cleaned up next cycle. Plus there are parts of the Processor/Auto/EdgeAI SDK layers that live on top of this layer that use some of this, they will have to switch to the Yocto Standard SDK now.
Not a blocker, just a heads up.
Re: [meta-arago][master][PATCH 3/3] all: remove all legacy arago-sdk build recipes
Quoted 12 lines · Andrew Davis
Quoted 11 lines · On 5/22/23 1:38 PM, [email protected] wrote:
From: Randolph Sapp <[email protected]>
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_sdkFor more info about the SDK build targets see:
https://docs.yoctoproject.org/sdk-manual/appendix-obtain.html#building-an-sdk-installer
Quoted 7 lines
Quoted 3 lines
There's probably still more that can be cleaned up, but I'll leave that to the more experienced.
Some documentation around this will need cleaned up next cycle. Plus there are parts of the Processor/Auto/EdgeAI SDK layers that live on top of this layer that use some of this, they will have to switch to the Yocto Standard SDK now.
1. This cleanup was already in the pipeline, but was planned after the product SDKs (Processor/Auto/EdgeAI) adopttion of Kirkstone baseline with 9.x release.
2. Please stop calling something "the Yocto Standard SDK" - both flows are quite standard. While meta-toolchain was there earlier, it's still a supported and very standard flow. In some cases it is still necessary and preferred. Sure, "populate_sdk" is easier for a single image, as the SDK then matches that image. But if you need an SDK that doesn't depend on an image, or need to cover multiple images, then meta-toolchain is still the way to go. Even OE-Core has meta-toolchain for backward compatibility - it just builds the SDK with the toolchain in it. And meta-qt5 extends that to build its SDK/toolchain with Qt tools. Then AGL defines whole bunch of *-crosssdk recipes that are basically meta-toolchain variants for different purposes with different content. And so on - many layers still use the old flow and it's still very standard. But don't get me wrong - I'm all for simplifying it and removing all the customization cruft that got accumulated in 15 years of Arago! Maybe a bit more surgical and gradual and with a proper description though? :)
3. Have you tested the new SDK and ensured that all use cases are working as expected? Specifically with multiconfig and multiple architectures?
Signature · 1 line
Denys
Re: [EXTERNAL] Re: [meta-arago][master][PATCH 3/3] all: remove all legacy arago-sdk build recipes
Quoted 2 lines · Denys Dmytriyenko
2. Please stop calling something "the Yocto Standard SDK" - both flows are quite standard.
They literally refer to that build target as the Standard SDK, as apposed to the Extensible SDK. Info at the linked docs in the patch and here for your viewing pleasure. Don't get angry at me for the naming convention.
https://docs.yoctoproject.org/sdk-manual/intro.html#esdk-introduction