diff options
author | dzwdz | 2023-08-14 18:51:07 +0200 |
---|---|---|
committer | dzwdz | 2023-08-14 18:51:07 +0200 |
commit | 642b5fb0007b64c77d186fcb018d571152ee1d47 (patch) | |
tree | 1c466461f3602d306be309a053edae558ef2568e /contrib/dep_builders/binutils | |
parent | 8050069c57b729c18c19b1a03ab6e4bf63b4735e (diff) |
reorganization: first steps
Diffstat (limited to 'contrib/dep_builders/binutils')
-rwxr-xr-x | contrib/dep_builders/binutils | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/contrib/dep_builders/binutils b/contrib/dep_builders/binutils new file mode 100755 index 0000000..42dd04b --- /dev/null +++ b/contrib/dep_builders/binutils @@ -0,0 +1,27 @@ +#!/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 |