aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2024-10-29 11:50:04 +0000
committerNick Clifton <nickc@redhat.com>2024-10-29 11:50:04 +0000
commit4a487e028cc9cb253deecd4fc13502b984bdb9f4 (patch)
tree1839d65b44a2b8a251ada3c11f29798662adcc98
parentf4e363cae297ec3e24dec0d95f3d422879f498a3 (diff)
downloadbinutils-4a487e028cc9cb253deecd4fc13502b984bdb9f4.zip
binutils-4a487e028cc9cb253deecd4fc13502b984bdb9f4.tar.gz
binutils-4a487e028cc9cb253deecd4fc13502b984bdb9f4.tar.bz2
Add a target to src-release.sh to crate a binutils release without Gold
-rwxr-xr-xsrc-release.sh33
1 files changed, 25 insertions, 8 deletions
diff --git a/src-release.sh b/src-release.sh
index 0a58c14..97a2f48 100755
--- a/src-release.sh
+++ b/src-release.sh
@@ -363,23 +363,32 @@ gdb_tar_compress()
do_compress $package $ver "$compressors"
}
+GAS_DIRS="bfd gas include libiberty opcodes setup.com makefile.vms zlib"
+gas_release()
+{
+ compressors=$1
+ package=gas
+ tool=gas
+ tar_compress $package $tool "$GAS_DIRS" "$compressors"
+}
+
# The FSF "binutils" release includes gprof and ld.
-BINUTILS_SUPPORT_DIRS="libsframe bfd gas include libiberty libctf opcodes ld elfcpp gold gprof gprofng setup.com makefile.vms cpu zlib"
-binutils_release()
+NO_GOLD_BIN_DIRS="$GAS_DIRS binutils cpu gprof gprofng ld libsframe libctf "
+no_gold_binutils_release()
{
compressors=$1
package=binutils
tool=binutils
- tar_compress $package $tool "$BINUTILS_SUPPORT_DIRS" "$compressors"
+ tar_compress $package $tool "$NO_GOLD_BIN_DIRS" "$compressors"
}
-GAS_SUPPORT_DIRS="bfd include libiberty opcodes setup.com makefile.vms zlib"
-gas_release()
+BINUTILS_DIRS="$NO_GOLD_BIN_DIRS elfcpp gold"
+binutils_release()
{
compressors=$1
- package=gas
- tool=gas
- tar_compress $package $tool "$GAS_SUPPORT_DIRS" "$compressors"
+ package=binutils
+ tool=binutils
+ tar_compress $package $tool "$BINUTILS_DIRS" "$compressors"
}
GDB_SUPPORT_DIRS="libsframe bfd include libiberty libctf opcodes readline sim libdecnumber cpu zlib contrib gnulib gdbsupport gdbserver libbacktrace"
@@ -411,6 +420,12 @@ usage()
echo " -x: Compress with xz"
echo " -z: Compress with zstd"
echo " -r <date>: Create a reproducible tarball using <date> as the mtime"
+ echo "release:"
+ echo " binutils: All the binutils including gold"
+ echo " no_gold_bin: All the binutils except gold"
+ echo " gas: Just the assembler"
+ echo " gdb: All of GDB"
+ echo " sim: Just the simulator"
exit 1
}
@@ -425,6 +440,8 @@ build_release()
gas_release "$compressors";;
gdb)
gdb_release "$compressors";;
+ no_gold_bin)
+ no_gold_binutils_release "$compressors";;
sim)
sim_release "$compressors";;
*)