summaryrefslogtreecommitdiff
path: root/scripts/0600-build-target-gdb.sh
blob: 85184ded4530fb99cc7aaecb8f822295723958fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/env bash

set -e

PATH=/opt/bootstrap/bin:/opt/toolchain/bin:$PATH

mkdir -p /toolchain/gdb/.build && cd /toolchain/gdb

tar xf /downloads/gdb-$GDB_VERSION.tar.xz

cd .build

../gdb-$GDB_VERSION/configure \
  --prefix=/opt/toolchain \
  --target=$TARGET

make -j$(nproc) all-gdb
make install-strip-gdb