mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-18 01:05:24 +01:00
binutils-2.41: various regenerations
This commit is contained in:
parent
385cd87684
commit
c83aea05f3
3 changed files with 184 additions and 107 deletions
|
|
@ -24,7 +24,7 @@ c5807850a377e4bb9aa4121d9781d145bdd80327626a9419630a75ce2c8d9c71 automake-1.9.6
|
||||||
7db49c9b024821d82d15afc0db2b1af8d89700101495a9cbadf471813ba5fa55 bc-1.07.1_0.tar.bz2
|
7db49c9b024821d82d15afc0db2b1af8d89700101495a9cbadf471813ba5fa55 bc-1.07.1_0.tar.bz2
|
||||||
3be27e61642ea7d3d4d50a396ab0316ee66b3c469cd38a0a7600e92a9d5022d2 binutils-2.30_0.tar.bz2
|
3be27e61642ea7d3d4d50a396ab0316ee66b3c469cd38a0a7600e92a9d5022d2 binutils-2.30_0.tar.bz2
|
||||||
43bed356bf52b3d52ef62b63adbeb3bbd1e763e93d0ffd3edb5c75354842f171 binutils-2.41_0.tar.bz2
|
43bed356bf52b3d52ef62b63adbeb3bbd1e763e93d0ffd3edb5c75354842f171 binutils-2.41_0.tar.bz2
|
||||||
7808e5290bf530cd7068e91642def059bc3341b628630d1fb2600590477187db binutils-2.41_1.tar.bz2
|
33e192d498f8fb3015a6b5407f06946f1e1dfd575911377c4201bd4611c72a3f binutils-2.41_1.tar.bz2
|
||||||
fa047f6dd4595be1bf8a9cc6ff492357f02fefa3bf1ad965c8c50c8e79a52478 bison-2.3_0.tar.bz2
|
fa047f6dd4595be1bf8a9cc6ff492357f02fefa3bf1ad965c8c50c8e79a52478 bison-2.3_0.tar.bz2
|
||||||
81554c867db75101422797d227dd76c8a12c87246393126542ff92a0b97db6c1 bison-3.4.1_0.tar.bz2
|
81554c867db75101422797d227dd76c8a12c87246393126542ff92a0b97db6c1 bison-3.4.1_0.tar.bz2
|
||||||
f7437edc081071cc3ecd3384abf4c63f33183858b8cae6b4ac3105c66f88b3b6 bison-3.4.1_1.tar.bz2
|
f7437edc081071cc3ecd3384abf4c63f33183858b8cae6b4ac3105c66f88b3b6 bison-3.4.1_1.tar.bz2
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# SPDX-FileCopyrightText: 2022 Dor Askayo <dor.askayo@gmail.com>
|
# SPDX-FileCopyrightText: 2022 Dor Askayo <dor.askayo@gmail.com>
|
||||||
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
||||||
# SPDX-FileCopyrightText: 2021 Paul Dersey <pdersey@gmail.com>
|
# SPDX-FileCopyrightText: 2021 Paul Dersey <pdersey@gmail.com>
|
||||||
# SPDX-FileCopyrightText: 2023 fosslinux <fosslinux@aussies.space>
|
# SPDX-FileCopyrightText: 2023,2025 fosslinux <fosslinux@aussies.space>
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
|
@ -11,10 +11,85 @@ src_prepare() {
|
||||||
|
|
||||||
# Remove unused generated files
|
# Remove unused generated files
|
||||||
rm etc/Makefile.in etc/configure
|
rm etc/Makefile.in etc/configure
|
||||||
rm zlib/aclocal.m4 zlib/configure
|
|
||||||
|
|
||||||
# Remove gprofng
|
# Remove unused parts
|
||||||
rm -r gprofng
|
rm -r gprofng zlib
|
||||||
|
|
||||||
|
# Rebuild bison files
|
||||||
|
touch -- */*.y
|
||||||
|
rm binutils/arparse.c binutils/arparse.h binutils/defparse.c \
|
||||||
|
binutils/defparse.h binutils/mcparse.c binutils/mcparse.h \
|
||||||
|
binutils/rcparse.c binutils/rcparse.h binutils/sysinfo.c \
|
||||||
|
binutils/sysinfo.h gas/config/bfin-parse.c gas/config/bfin-parse.h \
|
||||||
|
gas/config/loongarch-parse.c gas/config/loongarch-parse.h \
|
||||||
|
gas/config/m68k-parse.c gas/config/rl78-parse.c \
|
||||||
|
gas/config/rl78-parse.h gas/config/rx-parse.c gas/config/rx-parse.h \
|
||||||
|
gas/itbl-parse.c gas/itbl-parse.h gold/yyscript.c gold/yyscript.h \
|
||||||
|
intl/plural.c ld/deffilep.c ld/deffilep.h ld/ldgram.c ld/ldgram.h
|
||||||
|
|
||||||
|
# Rebuild flex generated files
|
||||||
|
touch -- */*.l */*/*.l
|
||||||
|
rm binutils/arlex.c binutils/deflex.c binutils/syslex.c \
|
||||||
|
gas/config/bfin-lex.c gas/config/loongarch-lex.c gas/itbl-lex.c \
|
||||||
|
ld/ldlex.c
|
||||||
|
|
||||||
|
# Remove prebuilt docs
|
||||||
|
find . -type f -name '*.info*' \
|
||||||
|
-not -wholename './binutils/sysroff.info' \
|
||||||
|
-delete
|
||||||
|
find . -type f \( -name '*.1' -or -name '*.man' \) -delete
|
||||||
|
rm libiberty/functions.texi
|
||||||
|
|
||||||
|
# Remove gettext translation files
|
||||||
|
find . -type f -name '*.gmo' -delete
|
||||||
|
|
||||||
|
# Remove pregenerated opcodes files
|
||||||
|
rm opcodes/i386-init.h opcodes/i386-tbl.h opcodes/i386-mnem.h \
|
||||||
|
opcodes/ia64-asmtab.c opcodes/z8k-opc.h opcodes/aarch64-asm-2.c \
|
||||||
|
opcodes/aarch64-opc-2.c opcodes/aarch64-dis-2.c \
|
||||||
|
opcodes/msp430-decode.c opcodes/rl78-decode.c opcodes/rx-decode.c
|
||||||
|
rm $(grep -l 'MACHINE GENERATED' opcodes/*.c opcodes/*.h)
|
||||||
|
|
||||||
|
# Various other blobs/generated headers
|
||||||
|
rm ld/emultempl/*.o_c
|
||||||
|
rm gprof/bsd_callg_bl.c gprof/flat_bl.c gprof/fsf_callg_bl.c
|
||||||
|
rm bfd/libcoff.h bfd/libbfd.h bfd/go32stub.h bfd/bfd-in2.h
|
||||||
|
|
||||||
|
# Generated testsuite stuff (xz-style attack)
|
||||||
|
rm libsframe/testsuite/libsframe.decode/DATA* \
|
||||||
|
ld/testsuite/ld-x86-64/*.obj.bz2 ld/testsuite/ld-sh/arch/*.s \
|
||||||
|
ld/testsuite/ld-sh/arch/arch_expected.txt \
|
||||||
|
ld/testsuite/ld-i386/pr27193a.o.bz2 \
|
||||||
|
gas/testsuite/gas/xstormy16/allinsn.sh \
|
||||||
|
gas/testsuite/gas/tic4x/opcodes.s gas/testsuite/gas/sh/arch/*.s \
|
||||||
|
gas/testsuite/gas/sh/arch/arch_expected.txt \
|
||||||
|
binutils/testsuite/binutils-all/x86-64/pr22451.o.bz2 \
|
||||||
|
binutils/testsuite/binutils-all/x86-64/pr26808.dwp.bz2 \
|
||||||
|
binutils/testsuite/binutils-all/x86-64/pr27708.exe.bz2 \
|
||||||
|
binutils/testsuite/binutils-all/nfp/*.nffw \
|
||||||
|
binutils/testsuite/binutils-all/pr26112.o.bz2 \
|
||||||
|
binutils/testsuite/binutils-all/pr26160.dwp.bz2
|
||||||
|
|
||||||
|
# Regenerate crc table in libiberty/crc32.c
|
||||||
|
cd libiberty
|
||||||
|
sed -n '/^ #include <stdio.h>/,/^ \}$/p' crc32.c > crcgen.c
|
||||||
|
gcc -o crcgen crcgen.c
|
||||||
|
sed '/crc_v3\.txt/{n; q}' crc32.c > crc32.c.new
|
||||||
|
./crcgen >> crc32.c.new
|
||||||
|
sed '1,/^};$/d' crc32.c >> crc32.c.new
|
||||||
|
mv crc32.c.new crc32.c
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
# bfd-in2.h is required to run autoreconf, but we don't have it yet
|
||||||
|
cd bfd
|
||||||
|
cp configure.ac configure.ac.bak
|
||||||
|
sed -i "s/bfd-in3.h:bfd-in2.h //" configure.ac
|
||||||
|
AUTOPOINT=true ACLOCAL=aclocal-1.15 AUTOMAKE=automake-1.15 autoreconf-2.69 -fi
|
||||||
|
./configure
|
||||||
|
make headers
|
||||||
|
mv configure.ac.bak configure.ac
|
||||||
|
make distclean
|
||||||
|
cd ..
|
||||||
|
|
||||||
# Regenerate autoconf
|
# Regenerate autoconf
|
||||||
for dir in bfd binutils gas gold gprof intl ld libctf libiberty libsframe opcodes; do
|
for dir in bfd binutils gas gold gprof intl ld libctf libiberty libsframe opcodes; do
|
||||||
|
|
@ -22,55 +97,18 @@ src_prepare() {
|
||||||
AUTOPOINT=true ACLOCAL=aclocal-1.15 AUTOMAKE=automake-1.15 autoreconf-2.69 -fi
|
AUTOPOINT=true ACLOCAL=aclocal-1.15 AUTOMAKE=automake-1.15 autoreconf-2.69 -fi
|
||||||
cd ..
|
cd ..
|
||||||
done
|
done
|
||||||
|
rm Makefile.in # autogen
|
||||||
ACLOCAL=aclocal-1.15 autoreconf-2.69 -fi
|
ACLOCAL=aclocal-1.15 autoreconf-2.69 -fi
|
||||||
|
|
||||||
# Regenerate directories with Makefile.am only
|
# Rebuild dependencies in libiberty/Makefile.in
|
||||||
pushd gold
|
cd libiberty
|
||||||
automake-1.15 -fai testsuite/Makefile
|
./configure --enable-maintainer-mode
|
||||||
popd
|
make maint-deps
|
||||||
|
make distclean
|
||||||
# Rebuild bison files
|
cd ..
|
||||||
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/rcparse.c binutils/rcparse.h
|
|
||||||
rm binutils/sysinfo.c binutils/sysinfo.h
|
|
||||||
rm gas/config/bfin-parse.c gas/config/bfin-parse.h
|
|
||||||
rm gas/config/loongarch-parse.c gas/config/loongarch-parse.h
|
|
||||||
rm gas/config/m68k-parse.c gas/config/rl78-parse.c
|
|
||||||
rm gas/config/rl78-parse.h gas/config/rx-parse.c
|
|
||||||
rm gas/config/rx-parse.h gas/itbl-parse.c
|
|
||||||
rm gas/itbl-parse.h gold/yyscript.c
|
|
||||||
rm gold/yyscript.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/config/bfin-lex.c gas/config/loongarch-lex.c gas/itbl-lex.c
|
|
||||||
rm ld/ldlex.c
|
|
||||||
|
|
||||||
# Remove prebuilt texinfo files
|
|
||||||
find . -type f -name '*.info*' \
|
|
||||||
-not -wholename './binutils/sysroff.info' \
|
|
||||||
-delete
|
|
||||||
|
|
||||||
# Remove pregenerated opcodes files
|
|
||||||
rm opcodes/i386-init.h opcodes/i386-tbl.h opcodes/i386-mnem.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)
|
|
||||||
|
|
||||||
rm libiberty/functions.texi
|
|
||||||
|
|
||||||
# Regenerate MeP sections
|
# Regenerate MeP sections
|
||||||
./bfd/mep-relocs.pl
|
./bfd/mep-relocs.pl
|
||||||
|
|
||||||
# Manpages
|
|
||||||
find . -type f \( -name '*.1' -or -name '*.man' \) -delete
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# SPDX-FileCopyrightText: 2022 Dor Askayo <dor.askayo@gmail.com>
|
# SPDX-FileCopyrightText: 2022 Dor Askayo <dor.askayo@gmail.com>
|
||||||
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
||||||
# SPDX-FileCopyrightText: 2021 Paul Dersey <pdersey@gmail.com>
|
# SPDX-FileCopyrightText: 2021 Paul Dersey <pdersey@gmail.com>
|
||||||
# SPDX-FileCopyrightText: 2023 fosslinux <fosslinux@aussies.space>
|
# SPDX-FileCopyrightText: 2023,2025 fosslinux <fosslinux@aussies.space>
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
|
@ -10,7 +10,92 @@ src_prepare() {
|
||||||
|
|
||||||
# Remove unused generated files
|
# Remove unused generated files
|
||||||
rm etc/Makefile.in etc/configure
|
rm etc/Makefile.in etc/configure
|
||||||
rm zlib/aclocal.m4 zlib/configure
|
|
||||||
|
# Remove unused parts
|
||||||
|
rm -r zlib
|
||||||
|
|
||||||
|
# intl/ Makefile is a bit broken because of new gettext
|
||||||
|
sed -i 's/@USE_INCLUDED_LIBINTL@/no/' intl/Makefile.in
|
||||||
|
|
||||||
|
# There is no way to add -all-static to libtool LDFLAGS (such a thing doesn't exist)
|
||||||
|
# -all-static is required for static binaries with libtool
|
||||||
|
sed -i 's:\(--mode=link $(CCLD)\):\1 -all-static:' {bfd,binutils,opcodes,ld,libctf,gas,gprof}/Makefile.in
|
||||||
|
|
||||||
|
# Rebuild bison files
|
||||||
|
touch -- */*.y
|
||||||
|
rm binutils/arparse.c binutils/arparse.h binutils/defparse.c \
|
||||||
|
binutils/defparse.h binutils/mcparse.c binutils/mcparse.h \
|
||||||
|
binutils/rcparse.c binutils/rcparse.h binutils/sysinfo.c \
|
||||||
|
binutils/sysinfo.h gas/config/bfin-parse.c gas/config/bfin-parse.h \
|
||||||
|
gas/config/loongarch-parse.c gas/config/loongarch-parse.h \
|
||||||
|
gas/config/m68k-parse.c gas/config/rl78-parse.c \
|
||||||
|
gas/config/rl78-parse.h gas/config/rx-parse.c gas/config/rx-parse.h \
|
||||||
|
gas/itbl-parse.c gas/itbl-parse.h gold/yyscript.c gold/yyscript.h \
|
||||||
|
intl/plural.c ld/deffilep.c ld/deffilep.h ld/ldgram.c ld/ldgram.h
|
||||||
|
|
||||||
|
# Rebuild flex generated files
|
||||||
|
touch -- */*.l */*/*.l
|
||||||
|
rm binutils/arlex.c binutils/deflex.c binutils/syslex.c \
|
||||||
|
gas/config/bfin-lex.c gas/config/loongarch-lex.c gas/itbl-lex.c \
|
||||||
|
ld/ldlex.c
|
||||||
|
|
||||||
|
# Remove prebuilt docs
|
||||||
|
find . -type f -name '*.info*' \
|
||||||
|
-not -wholename './binutils/sysroff.info' \
|
||||||
|
-delete
|
||||||
|
find . -type f \( -name '*.1' -or -name '*.man' \) -delete
|
||||||
|
rm libiberty/functions.texi
|
||||||
|
|
||||||
|
# Remove gettext translation files
|
||||||
|
find . -type f -name '*.gmo' -delete
|
||||||
|
|
||||||
|
# Remove pregenerated opcodes files
|
||||||
|
rm opcodes/i386-init.h opcodes/i386-tbl.h opcodes/i386-mnem.h \
|
||||||
|
opcodes/ia64-asmtab.c opcodes/z8k-opc.h opcodes/aarch64-asm-2.c \
|
||||||
|
opcodes/aarch64-opc-2.c opcodes/aarch64-dis-2.c \
|
||||||
|
opcodes/msp430-decode.c opcodes/rl78-decode.c opcodes/rx-decode.c
|
||||||
|
rm $(grep -l 'MACHINE GENERATED' opcodes/*.c opcodes/*.h)
|
||||||
|
|
||||||
|
# Various other blobs/generated headers
|
||||||
|
rm ld/emultempl/*.o_c
|
||||||
|
rm gprof/bsd_callg_bl.c gprof/flat_bl.c gprof/fsf_callg_bl.c
|
||||||
|
rm bfd/libcoff.h bfd/libbfd.h bfd/go32stub.h bfd/bfd-in2.h
|
||||||
|
|
||||||
|
# Generated testsuite stuff (xz-style attack)
|
||||||
|
rm libsframe/testsuite/libsframe.decode/DATA* \
|
||||||
|
ld/testsuite/ld-x86-64/*.obj.bz2 ld/testsuite/ld-sh/arch/*.s \
|
||||||
|
ld/testsuite/ld-sh/arch/arch_expected.txt \
|
||||||
|
ld/testsuite/ld-i386/pr27193a.o.bz2 \
|
||||||
|
gas/testsuite/gas/xstormy16/allinsn.sh \
|
||||||
|
gas/testsuite/gas/tic4x/opcodes.s gas/testsuite/gas/sh/arch/*.s \
|
||||||
|
gas/testsuite/gas/sh/arch/arch_expected.txt \
|
||||||
|
binutils/testsuite/binutils-all/x86-64/pr22451.o.bz2 \
|
||||||
|
binutils/testsuite/binutils-all/x86-64/pr26808.dwp.bz2 \
|
||||||
|
binutils/testsuite/binutils-all/x86-64/pr27708.exe.bz2 \
|
||||||
|
binutils/testsuite/binutils-all/nfp/*.nffw \
|
||||||
|
binutils/testsuite/binutils-all/pr26112.o.bz2 \
|
||||||
|
binutils/testsuite/binutils-all/pr26160.dwp.bz2
|
||||||
|
|
||||||
|
# Regenerate crc table in libiberty/crc32.c
|
||||||
|
cd libiberty
|
||||||
|
sed -n '/^ #include <stdio.h>/,/^ \}$/p' crc32.c > crcgen.c
|
||||||
|
gcc -o crcgen crcgen.c
|
||||||
|
sed '/crc_v3\.txt/{n; q}' crc32.c > crc32.c.new
|
||||||
|
./crcgen >> crc32.c.new
|
||||||
|
sed '1,/^};$/d' crc32.c >> crc32.c.new
|
||||||
|
mv crc32.c.new crc32.c
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
# bfd-in2.h is required to run autoreconf, but we don't have it yet
|
||||||
|
cd bfd
|
||||||
|
cp configure.ac configure.ac.bak
|
||||||
|
sed -i "s/bfd-in3.h:bfd-in2.h //" configure.ac
|
||||||
|
AUTOPOINT=true ACLOCAL=aclocal-1.15 AUTOMAKE=automake-1.15 autoreconf-2.69 -fi
|
||||||
|
./configure
|
||||||
|
make headers
|
||||||
|
mv configure.ac.bak configure.ac
|
||||||
|
make distclean
|
||||||
|
cd ..
|
||||||
|
|
||||||
# Regenerate top-level (autogen + autotools)
|
# Regenerate top-level (autogen + autotools)
|
||||||
autogen Makefile.def
|
autogen Makefile.def
|
||||||
|
|
@ -22,66 +107,20 @@ src_prepare() {
|
||||||
ACLOCAL=aclocal-1.15 AUTOMAKE=automake-1.15 autoreconf-2.69 -fi
|
ACLOCAL=aclocal-1.15 AUTOMAKE=automake-1.15 autoreconf-2.69 -fi
|
||||||
cd ..
|
cd ..
|
||||||
done
|
done
|
||||||
|
cd gprofng
|
||||||
|
# there is no libtool in gprofng, and libtoolize fails
|
||||||
|
LIBTOOLIZE=true ACLOCAL=aclocal-1.15 AUTOMAKE=automake-1.15 autoreconf-2.69 -fi
|
||||||
|
cd ..
|
||||||
|
|
||||||
# Regenerate directories with Makefile.am only
|
# Rebuild dependencies in libiberty/Makefile.in
|
||||||
pushd gold
|
cd libiberty
|
||||||
automake-1.15 -fai testsuite/Makefile
|
./configure --enable-maintainer-mode
|
||||||
popd
|
make maint-deps
|
||||||
pushd gprofng
|
make distclean
|
||||||
automake-1.15 -fai doc/Makefile
|
cd ..
|
||||||
automake-1.15 -fai gp-display-html/Makefile
|
|
||||||
automake-1.15 -fai src/Makefile
|
|
||||||
popd
|
|
||||||
|
|
||||||
# intl/ Makefile is a bit broken because of new gettext
|
|
||||||
sed -i 's/@USE_INCLUDED_LIBINTL@/no/' intl/Makefile.in
|
|
||||||
|
|
||||||
# There is no way to add -all-static to libtool LDFLAGS (such a thing doesn't exist)
|
|
||||||
# -all-static is required for static binaries with libtool
|
|
||||||
sed -i 's:\(--mode=link $(CCLD)\):\1 -all-static:' {bfd,binutils,opcodes,ld,libctf,gas,gprof}/Makefile.in
|
|
||||||
|
|
||||||
# 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/rcparse.c binutils/rcparse.h
|
|
||||||
rm binutils/sysinfo.c binutils/sysinfo.h
|
|
||||||
rm gas/config/bfin-parse.c gas/config/bfin-parse.h
|
|
||||||
rm gas/config/loongarch-parse.c gas/config/loongarch-parse.h
|
|
||||||
rm gas/config/m68k-parse.c gas/config/rl78-parse.c
|
|
||||||
rm gas/config/rl78-parse.h gas/config/rx-parse.c
|
|
||||||
rm gas/config/rx-parse.h gas/itbl-parse.c
|
|
||||||
rm gas/itbl-parse.h gold/yyscript.c
|
|
||||||
rm gold/yyscript.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/config/bfin-lex.c gas/config/loongarch-lex.c gas/itbl-lex.c
|
|
||||||
rm ld/ldlex.c
|
|
||||||
|
|
||||||
# Remove prebuilt texinfo files
|
|
||||||
find . -type f -name '*.info*' \
|
|
||||||
-not -wholename './binutils/sysroff.info' \
|
|
||||||
-delete
|
|
||||||
|
|
||||||
# Remove pregenerated opcodes files
|
|
||||||
rm opcodes/i386-init.h opcodes/i386-tbl.h opcodes/i386-mnem.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)
|
|
||||||
|
|
||||||
rm libiberty/functions.texi
|
|
||||||
|
|
||||||
# Regenerate MeP sections
|
# Regenerate MeP sections
|
||||||
./bfd/mep-relocs.pl
|
./bfd/mep-relocs.pl
|
||||||
|
|
||||||
# Manpages
|
|
||||||
find . -type f \( -name '*.1' -or -name '*.man' \) -delete
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue