summaryrefslogtreecommitdiff
path: root/Ports/binutils
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-28 16:26:39 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-28 16:26:39 +0200
commit246dd93fe9eb5388ded1e127e9e2a0b1e6806211 (patch)
treec33ad8a2b1da85fbaf10841c0cbf6037cfa6858d /Ports/binutils
parent631894279b07f86695f2758bea1a0b44a5c0dcad (diff)
downloadserenity-246dd93fe9eb5388ded1e127e9e2a0b1e6806211.zip
Ports: Add GNU binutils.
Diffstat (limited to 'Ports/binutils')
-rwxr-xr-xPorts/binutils/binutils.sh31
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