diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-05-28 16:26:39 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-28 16:26:39 +0200 |
commit | 246dd93fe9eb5388ded1e127e9e2a0b1e6806211 (patch) | |
tree | c33ad8a2b1da85fbaf10841c0cbf6037cfa6858d /Ports/binutils | |
parent | 631894279b07f86695f2758bea1a0b44a5c0dcad (diff) | |
download | serenity-246dd93fe9eb5388ded1e127e9e2a0b1e6806211.zip |
Ports: Add GNU binutils.
Diffstat (limited to 'Ports/binutils')
-rwxr-xr-x | Ports/binutils/binutils.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Ports/binutils/binutils.sh b/Ports/binutils/binutils.sh new file mode 100755 index 0000000000..91a08eb152 --- /dev/null +++ b/Ports/binutils/binutils.sh @@ -0,0 +1,31 @@ +#!/bin/sh +PORT_DIR=binutils +function fetch() { + # Canonical repository: + # run_fetch_git "http://sourceware.org/git/binutils-gdb.git" + + # Much faster mirror (though unofficial): + run_fetch_git "https://github.com/bminor/binutils-gdb.git" + + # FIXME: It would probably be better to build from a tarball. + run_command git reset --hard binutils-2_32 + + # Add the big binutils patch (same one used by toolchain.) + run_patch $SERENITY_ROOT/Toolchain/Patches/binutils.patch -p1 +} +function configure() { + run_configure_autotools \ + --target=i686-pc-serenity \ + --with-sysroot=/ \ + --with-build-sysroot=$SERENITY_ROOT/Root \ + --disable-werror \ + --disable-gdb \ + --disable-nls +} +function build() { + run_make +} +function install() { + run_make_install DESTDIR="$SERENITY_ROOT"/Root +} +source ../.port_include.sh |