buildtools-extended-tarball
cover buildtools-extended-tarball
As certain distros--such as CentOS7--age, we are increasingly fighting for instance the ancient version of gcc on the host. As we look forward to a plan to create an LTS release, we need to have a mechanism to continue to build components 2+ years into the future. While this can be done with containers (YOCTO #13643), a less invasive approach is to extend the existing buildtools-tarball to also include gcc and other essential tools.
The current work-in-progress adds the nativesdk equivalent of build- essentials, but this has not been tested on the autobuilder yet and tools provided by binutils, such as ar and ld, do not appear to be properly symlinked in the resulting sdk.
If your organization cares about CentOS7 support, please test and comment on this patch set.
The patches can also be found at:
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=timo/buildtools-13714
Tim Orling (2):
nativesdk-buildtools-perl-dummy: add dependencies for autoconf and
automake
buildtools-extended-tarball: add recipe with build-essentials
.../meta/buildtools-extended-tarball.bb | 32 +++++++++++++++++++ .../meta/nativesdk-buildtools-perl-dummy.bb | 3 ++ 2 files changed, 35 insertions(+) create mode 100644 meta/recipes-core/meta/buildtools-extended-tarball.bb
Signature · 1 line
2.20.1
RFC PATCH 1/2 nativesdk-buildtools-perl-dummy: add dependencies for autoconf and automake
* For buildtools-extended-tarball, where we are adding all of build-essentials to the nativesdk, we need additional perl modules for autoconf and automake.
--- meta/recipes-core/meta/nativesdk-buildtools-perl-dummy.bb | 3 +++ 1 file changed, 3 insertions(+)
meta/recipes-core/meta/nativesdk-buildtools-perl-dummy.bb +3 -0
@@ -15,12 +15,15 @@ DUMMYPROVIDES_PACKAGES = "\ nativesdk-perl-module-file-find \ nativesdk-perl-module-file-glob \ nativesdk-perl-module-file-path \ + nativesdk-perl-module-file-spec \ 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-thread-queue \ nativesdk-perl-module-threads \ + nativesdk-perl-module-warnings \ " DUMMYPROVIDES = "\
Signature · 1 line
2.20.1
RFC PATCH 2/2 buildtools-extended-tarball: add recipe with build-essentials
In reply to Tim Orling* For some aging distros, such as CentOS 7, the native version of gcc is simply too ancient and is a constant source of headaches for moving forward.
* Add an extended version of buildtools-tarball which adds all of build-essential, so that the host is now modernized and capable of compiling the latest versions of components.
Fixes [YOCTO #13714]
--- .../meta/buildtools-extended-tarball.bb | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 meta/recipes-core/meta/buildtools-extended-tarball.bb
meta/recipes-core/meta/buildtools-extended-tarball.bb new file +32 -0
@@ -0,0 +1,32 @@ +require recipes-core/meta/buildtools-tarball.bb + +DESCRIPTION = "SDK type target for building a standalone tarball containing build-essentials, python3, chrpath, \ + make, git and tar. The tarball can be used to run bitbake builds on systems which don't meet the \ + usual version requirements and have ancient compilers." +SUMMARY = "Standalone tarball for running builds on systems with inadequate software and ancient compilers" +LICENSE = "MIT" + +# Add nativesdk equivalent of build-essentials +TOOLCHAIN_HOST_TASK += "\ + nativesdk-automake \ + nativesdk-autoconf \ + nativesdk-binutils \ + nativesdk-binutils-symlinks \ + nativesdk-cpp \ + nativesdk-cpp-symlinks \ + nativesdk-gcc \ + nativesdk-gcc-symlinks \ + nativesdk-g++ \ + nativesdk-g++-symlinks \ + nativesdk-gettext \ + nativesdk-libatomic \ + nativesdk-libgcc \ + nativesdk-libstdc++ \ + nativesdk-libstdc++-dev \ + nativesdk-libtool \ + nativesdk-pkgconfig \ + " + +TOOLCHAIN_OUTPUTNAME = "${SDK_ARCH}-buildtools-extended-nativesdk-standalone-${DISTRO_VERSION}" + +SDK_TITLE = "Extended Build tools"
Signature · 1 line
2.20.1