commit: 21096f6ff23fe198cefa9bf8422aad4040facdf3
parent 6a6c5acf1c1e87b74181fe4cfa37ecf39964e744
Author: Paul Dersey <pdersey@gmail.com>
Date: Wed, 24 Feb 2021 09:38:10 -0500
start binutils
Diffstat:
5 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/SHA256SUMS.sources b/SHA256SUMS.sources
@@ -3,6 +3,7 @@ f0611136bee505811e9ca11ca7ac188ef5323a8e2ef19cffd3edb3cf08fd791e autoconf-2.13.
534e99b61b81e79327b6d08f1a3edb0755ac246e1249009b0e1bf5887b60d7a9 autoconf-2.52.tar.gz
503cdc2b0992a4309545d17f462cb15f99bb57b7161dfc4082b2e7188f2bcc0f automake-1.4-p6.tar.gz
ba03d412998cc54bd0b0f2d6c32100967d3137098affdc2d32e6e7c11b163fe4 bash-2.05b.tar.gz
+e20bdd49a0fb317959b410c1fe81269a620ec21207045d8a37cadea621be4b59 binutils-2.14.tar.bz2
7007fc89c216fbfaff5525359b02a7e5b612694df5168c74673f67055f015095 bison-3.4.1.tar.gz
ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269 bzip2-1.0.8.tar.gz
c25b36b8af6e0ad2a875daf4d6196bd0df28a62be7dd252e5f99a4d5d7288d95 coreutils-5.0.tar.bz2
diff --git a/rootfs.sh b/rootfs.sh
@@ -213,6 +213,9 @@ get_file https://ftp.gnu.org/gnu/autoconf/autoconf-2.13.tar.gz
# autoconf 2.12
get_file https://ftp.gnu.org/gnu/autoconf/autoconf-2.12.tar.gz
+# binutils 2.14
+get_file https://ftp.gnu.org/gnu/binutils/binutils-2.14.tar.bz2
+
# General cleanup
find tmp -name .git -exec rm -rf \;
diff --git a/sysa/binutils-2.14/binutils-2.14.sh b/sysa/binutils-2.14/binutils-2.14.sh
@@ -0,0 +1,24 @@
+# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
+#
+# SPDX-License-Identifier: GPL-3.0-or-later
+
+src_configure() {
+ # TODO: use autoconf to regenerate configure
+
+ AR="tcc -ar" RANLIB="true" CC="tcc -D __GLIBC_MINOR__=6" \
+ ./configure \
+ --disable-nls \
+ --disable-shared \
+ --disable-werror \
+ --build=i386-unknown-linux \
+ --host=i386-unknown-linux \
+ --target=i386-unknown-linux \
+ --with-sysroot=/after \
+ --disable-64-bit-bfd
+
+ # TODO: Find a way to avoid these hacks
+ sed -i '/#undef pid_t/d' libiberty/config.in
+ sed -i '/#undef uintptr_t/d' libiberty/config.in
+ sed -i 's/C_alloca/alloca/g' libiberty/alloca.c
+ sed -i 's/C_alloca/alloca/g' include/libiberty.h
+}
diff --git a/sysa/binutils-2.14/checksums b/sysa/binutils-2.14/checksums
diff --git a/sysa/run.sh b/sysa/run.sh
@@ -79,4 +79,6 @@ build autoconf-2.13
build autoconf-2.12
+build binutils-2.14
+
echo "Bootstrapping completed."