mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-15 07:45:24 +01:00
Upgrade to binutils 2.24:
* Move libtool 2.2.4 before binutils. * Remove libtool 1.4. * Switch from binutils 2.14 to 2.24.
This commit is contained in:
parent
7ce844e89a
commit
3b90aae529
16 changed files with 178 additions and 444 deletions
107
sysa/binutils-2.24/binutils-2.24.sh
Executable file
107
sysa/binutils-2.24/binutils-2.24.sh
Executable file
|
|
@ -0,0 +1,107 @@
|
|||
# SPDX-FileCopyrightText: 2022 Dor Askayo <dor.askayo@gmail.com>
|
||||
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
||||
# SPDX-FileCopyrightText: 2021 Paul Dersey <pdersey@gmail.com>
|
||||
# SPDX-FileCopyrightText: 2023 fosslinux <fosslinux@aussies.space>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Remove unused generated files
|
||||
rm etc/Makefile.in etc/configure
|
||||
|
||||
# Regenerate files
|
||||
for dir in bfd binutils gas gold gprof intl ld libiberty opcodes; do
|
||||
cd $dir
|
||||
AUTOPOINT=true ACLOCAL=aclocal-1.11 AUTOMAKE=automake-1.11 autoreconf-2.64 -fi
|
||||
cd ..
|
||||
done
|
||||
|
||||
ACLOCAL=aclocal-1.11 autoreconf-2.64 -fi
|
||||
|
||||
# Rebuild bison files
|
||||
touch -- */*.y
|
||||
rm binutils/arparse.c binutils/arparse.h
|
||||
rm binutils/defparse.c binutils/defparse.h
|
||||
rm binutils/mcparse.c binutils/mcparse.h
|
||||
rm binutils/nlmheader.c binutils/nlmheader.h
|
||||
rm binutils/rcparse.c binutils/rcparse.h
|
||||
rm binutils/sysinfo.c binutils/sysinfo.h
|
||||
rm gas/bfin-parse.c gas/bfin-parse.h
|
||||
rm gas/m68k-parse.c gas/rl78-parse.c
|
||||
rm gas/rl78-parse.h gas/rx-parse.c
|
||||
rm gas/rx-parse.h gas/itbl-parse.c
|
||||
rm gas/itbl-parse.h intl/plural.c
|
||||
rm ld/deffilep.c ld/deffilep.h
|
||||
rm ld/ldgram.c ld/ldgram.h
|
||||
|
||||
# Rebuild flex generated files
|
||||
touch -- */*.l */*/*.l
|
||||
rm binutils/arlex.c binutils/deflex.c binutils/syslex.c
|
||||
rm gas/bfin-lex.c gas/itbl-lex.c
|
||||
rm ld/ldlex.c
|
||||
|
||||
# Remove prebuilt texinfo files
|
||||
rm bfd/doc/bfd.info binutils/doc/binutils.info
|
||||
rm etc/configure.info etc/standards.info
|
||||
rm gas/doc/as.info gprof/gprof.info ld/ld.info
|
||||
|
||||
# Remove pregenerated opcodes files
|
||||
rm opcodes/i386-init.h opcodes/i386-tbl.h
|
||||
rm opcodes/ia64-asmtab.c
|
||||
rm opcodes/z8k-opc.h
|
||||
rm opcodes/aarch64-asm-2.c opcodes/aarch64-opc-2.c opcodes/aarch64-dis-2.c
|
||||
rm $(grep -l 'MACHINE GENERATED' opcodes/*.c opcodes/*.h)
|
||||
|
||||
# Regenerate MeP sections
|
||||
./bfd/mep-relocs.pl
|
||||
|
||||
# Manpages
|
||||
rm */*.1 */*/*.1 */*/*.man
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
for dir in intl libiberty opcodes bfd binutils gas gprof ld; do
|
||||
cd $dir
|
||||
|
||||
LD="true" AR="tcc -ar" RANLIB="true" CC="tcc" ./configure \
|
||||
--disable-nls \
|
||||
--enable-deterministic-archives \
|
||||
--build=i386-unknown-linux-gnu \
|
||||
--host=i386-unknown-linux-gnu \
|
||||
--target=i386-unknown-linux-gnu \
|
||||
--program-prefix="" \
|
||||
--prefix="${PREFIX}" \
|
||||
--libdir="${LIBDIR}" \
|
||||
--with-sysroot= \
|
||||
--srcdir=.
|
||||
cd ..
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
make -C bfd headers
|
||||
for dir in libiberty bfd; do
|
||||
make -C $dir MAKEINFO=true
|
||||
done
|
||||
make -C opcodes i386-gen
|
||||
for dir in opcodes binutils gas gprof ld; do
|
||||
make -C $dir MAKEINFO=true
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
for dir in libiberty bfd opcodes binutils gas gprof ld; do
|
||||
make -C $dir tooldir=${PREFIX} MAKEINFO=true DESTDIR="${DESTDIR}" install
|
||||
done
|
||||
|
||||
# Create triplet symlinks
|
||||
local olddir=$PWD
|
||||
cd "${DESTDIR}${PREFIX}/bin"
|
||||
for f in *; do
|
||||
ln -s "${PREFIX}/bin/${f}" "i386-unknown-linux-musl-${f}"
|
||||
done
|
||||
cd "$olddir"
|
||||
}
|
||||
1
sysa/binutils-2.24/sources
Normal file
1
sysa/binutils-2.24/sources
Normal file
|
|
@ -0,0 +1 @@
|
|||
https://mirrors.kernel.org/gnu/binutils/binutils-2.24.tar.bz2 e5e8c5be9664e7f7f96e0d09919110ab5ad597794f5b1809871177a0f0f14137
|
||||
Loading…
Add table
Add a link
Reference in a new issue