summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@gmail.com>2024-01-04 17:45:14 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2024-01-10 13:21:45 +0100
commit4e497682ddfac0552da520b328ba1f1d51ee9d89 (patch)
tree1743eb0c276fd179ff81e247dfd64bba84ed57cb /etc
parentaea952933058d1f71173f142fc1ec55a14849f48 (diff)
downloadbootstrappable-toolchain-4e497682ddfac0552da520b328ba1f1d51ee9d89.tar.gz
stage-0/binutils: Bootstrap via proper Justbuild target
Diffstat (limited to 'etc')
-rw-r--r--etc/repos.json2
-rw-r--r--etc/scripts/TARGETS1
-rwxr-xr-xetc/scripts/bootstrap-ar.sh50
3 files changed, 0 insertions, 53 deletions
diff --git a/etc/repos.json b/etc/repos.json
index cc85614..267aa49 100644
--- a/etc/repos.json
+++ b/etc/repos.json
@@ -1,7 +1,6 @@
{ "main": "gcc-latest-musl+tools"
, "repositories":
{ "patches": {"repository": {"type": "file", "path": "etc/patches"}}
- , "scripts": {"repository": {"type": "file", "path": "etc/scripts"}}
, "imports": {"repository": {"type": "file", "path": "etc/imports"}}
, "defaults": {"repository": {"type": "file", "path": "etc/defaults"}}
, "bootstrap": {"repository": {"type": "file", "path": "src/bootstrap"}}
@@ -273,7 +272,6 @@
{ "rules": "rules/stage-0"
, "busybox": "stage-0/busybox"
, "make": "stage-0/make"
- , "scripts": "scripts"
}
}
, "stage-0/gcc":
diff --git a/etc/scripts/TARGETS b/etc/scripts/TARGETS
deleted file mode 100644
index a3f7fa0..0000000
--- a/etc/scripts/TARGETS
+++ /dev/null
@@ -1 +0,0 @@
-{"bootstrap-ar": {"type": "install", "deps": ["bootstrap-ar.sh"]}}
diff --git a/etc/scripts/bootstrap-ar.sh b/etc/scripts/bootstrap-ar.sh
deleted file mode 100755
index 609b0d1..0000000
--- a/etc/scripts/bootstrap-ar.sh
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/sh
-
-set -eu
-
-SRCDIR=$1
-
-( cd ${SRCDIR}
-
- export CC=${CC:-cc}
- export LD=${LD:-${CC}}
- export AR=true
- export RANLIB=true
- export MAKE=${MAKE:-make}
- export CFLAGS="${CFLAGS:-} -I."
-
- AR_SRCS="
- binutils/ar.c
- binutils/arparse.c
- binutils/arlex.c
- binutils/arsup.c
- binutils/not-ranlib.c
- binutils/rename.c
- binutils/binemul.c
- binutils/emul_vanilla.c
- binutils/bucomm.c
- binutils/version.c
- binutils/filemode.c
- "
-
- # fake dlfcn.h in order to disable dynamic loads during configure
- echo '#error fail here' > dlfcn.h
-
- # configure and build object files for bfd, libiberty, zlib, and libsframe
- ./configure --prefix=/ --disable-nls --enable-gprofng=no --disable-werror --enable-deterministic-archives --without-zstd
- ${MAKE} MAKEINFO=true all-binutils || true
-
- export CFLAGS="${CFLAGS} -DDEFAULT_AR_DETERMINISTIC=1 -Dbin_dummy_emulation="bin_vanilla_emulation" -Iinclude -Ibfd "
-
- # build archiver object files
- NUM=0
- for SRC in ${AR_SRCS}; do
- # use short object file name to keep final command line short
- ${CC} ${CFLAGS} -c ${SRC} -o ${NUM}.o
- NUM=$((${NUM}+1))
- done
-
- ${CC} ${CFLAGS} -o ar $(ls *.o bfd/*.o libiberty/*.o zlib/*.o libsframe/*.o | LC_ALL=C sort) -ldl
-)
-
-mv ${SRCDIR}/ar .