mirror of
https://github.com/yuzu-emu/ext-linux-bin.git
synced 2024-12-22 08:55:27 +00:00
binutils: Add 2.40 package for focal
This commit is contained in:
parent
24748656a5
commit
07f3774409
BIN
binutils/binutils-2.40-focal.tar.xz
Normal file
BIN
binutils/binutils-2.40-focal.tar.xz
Normal file
Binary file not shown.
23
binutils/build.sh
Normal file
23
binutils/build.sh
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# This script is meant to make it easy to build GNU binutils using a Docker container.
|
||||
|
||||
THIS=$(readlink -e $0)
|
||||
USER_ID=`id -u`
|
||||
GROUP_ID=`id -g`
|
||||
VERSION=2.40
|
||||
UBUNTU=focal
|
||||
|
||||
PKG=binutils-${VERSION}
|
||||
OUT=$PKG-$UBUNTU
|
||||
|
||||
wget -nc https://ftp.gnu.org/gnu/binutils/$PKG.tar.xz
|
||||
tar xf $PKG.tar.xz
|
||||
|
||||
mkdir -p $OUT | true
|
||||
|
||||
docker run -v $(pwd):/src -w /src -u root -t yuzuemu/build-environments:linux-fresh /bin/bash /src/docker.sh $VERSION $UBUNTU
|
||||
|
||||
cp -v $THIS $OUT
|
||||
tar cv $OUT | xz -T0 -c | split --bytes=90MB - $OUT.tar.xz.
|
16
binutils/docker.sh
Normal file
16
binutils/docker.sh
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
THIS=$(readlink -e $0)
|
||||
VERSION=$1
|
||||
UBUNTU=$2
|
||||
|
||||
OUT=/src/binutils-$VERSION-$UBUNTU
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
/src/binutils-$VERSION/configure
|
||||
make -j$(nproc)
|
||||
|
||||
make -j$(nproc) install DESTDIR=$OUT
|
||||
cp $THIS $OUT
|
Loading…
Reference in a new issue