summaryrefslogtreecommitdiff
path: root/tools/dep_builders
diff options
context:
space:
mode:
authordzwdz2023-08-14 18:51:07 +0200
committerdzwdz2023-08-14 18:51:07 +0200
commit642b5fb0007b64c77d186fcb018d571152ee1d47 (patch)
tree1c466461f3602d306be309a053edae558ef2568e /tools/dep_builders
parent8050069c57b729c18c19b1a03ab6e4bf63b4735e (diff)
reorganization: first steps
Diffstat (limited to 'tools/dep_builders')
-rwxr-xr-xtools/dep_builders/binutils27
-rwxr-xr-xtools/dep_builders/dl9
-rwxr-xr-xtools/dep_builders/gcc31
3 files changed, 0 insertions, 67 deletions
diff --git a/tools/dep_builders/binutils b/tools/dep_builders/binutils
deleted file mode 100755
index 42dd04b..0000000
--- a/tools/dep_builders/binutils
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-set -eu
-
-# ensure that we're in the repo root
-if [ ! -d .git ]; then
- echo please cd to the repo\'s main directory
- exit
-fi
-
-export PREFIX="$(pwd)/toolchain/prefix/"
-export PATH="$(pwd)/toolchain/prefix/bin/:$PATH"
-BUILDDIR="$(pwd)/toolchain/binutils-build/"
-SYSROOT="$(pwd)/sysroot/"
-mkdir -p $PREFIX
-mkdir -p $BUILDDIR
-
-cd $BUILDDIR
-
-../binutils/configure \
- --target=x86_64-camellia \
- --prefix="$PREFIX" \
- --with-sysroot="$SYSROOT" \
- --disable-nls \
- --disable-werror
-mkdir -p gas/doc/ # stupid workaround for the broken build
-make -j4
-make install
diff --git a/tools/dep_builders/dl b/tools/dep_builders/dl
deleted file mode 100755
index 8cfeebc..0000000
--- a/tools/dep_builders/dl
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-# downloads a file to toolchain/cache unless it's already present there
-
-mkdir -p toolchain/cache
-OUT="toolchain/cache/$(basename $1)"
-
-[ -e "$OUT" ] && exit
-echo "downloading $1..."
-curl "$1" > $OUT
diff --git a/tools/dep_builders/gcc b/tools/dep_builders/gcc
deleted file mode 100755
index 0a37541..0000000
--- a/tools/dep_builders/gcc
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-set -eu
-
-# ensure that we're in the repo root
-if [ ! -d .git ]; then
- echo please cd to the repo\'s main directory
- exit
-fi
-
-export PREFIX="$(pwd)/toolchain/prefix/"
-export PATH="$(pwd)/toolchain/prefix/bin/:$PATH"
-BUILDDIR="$(pwd)/toolchain/gcc-build/"
-SYSROOT="$(pwd)/sysroot/"
-mkdir -p $PREFIX
-mkdir -p $BUILDDIR
-
-cd $BUILDDIR
-
-../gcc/configure \
- --target=x86_64-camellia \
- --prefix="$PREFIX" \
- --with-sysroot="$SYSROOT" \
- --enable-languages=c,c++ \
- --enable-default-pie \
- --disable-nls \
- --disable-gcov \
- --disable-werror
-make -j4 all-gcc
-make -j4 all-target-libgcc
-make install-gcc
-make install-target-libgcc