From 376a289777fcd33465cec5c2e5db35523fa3265a Mon Sep 17 00:00:00 2001 From: Chris Packham Date: Wed, 15 Jun 2022 21:51:25 +1200 Subject: Add option to build toolchain tarball Add TARBALL_RESULT option that will produce a tarball of the final toolchain to make it easier to deploy the toolchain to other machines. The implementation uses `find | sort` instead of `tar --sort` because this was introduced in GNU Tar v1.28, which is not available in some LTS Linux distributions. This is a variation of the command recommended here: https://wiki.debian.org/ReproducibleBuilds/FileOrderInTarballs Closes #1262 Signed-off-by: Chris Packham --- config/global/paths.in | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'config') diff --git a/config/global/paths.in b/config/global/paths.in index 82ee4b39..e4cf7024 100644 --- a/config/global/paths.in +++ b/config/global/paths.in @@ -137,3 +137,31 @@ config STRIP_TARGET_TOOLCHAIN_EXECUTABLES An install-strip make target is provided that installs stripped executables, and may install libraries with unneeded or debugging sections stripped. + +config TARBALL_RESULT + bool + depends on EXPERIMENTAL + prompt "Create binary toolchain tarball" + default n + help + Create tarball of the final binary toolchain. + +if TARBALL_RESULT + +config TARBALL_RESULT_DIR + string + depends on TARBALL_RESULT + prompt "Output directory" + default "${CT_TOP_DIR}" + help + Directory where tarball will be created. + +config TARBALL_RESULT_FILENAME + string + depends on TARBALL_RESULT + prompt "Output filename" + default "toolchain${CT_TOOLCHAIN_PKGVERSION:+-${CT_TOOLCHAIN_PKGVERSION}}-${CT_HOST:+HOST-${CT_HOST}-}${CT_TARGET}" + help + Filename for toolchain tarball, without extension. + +endif -- cgit v1.2.3