Browse Source
Merge pull request #12 from lat9nq/focal-update
Update gcc, gnu binutils, boost for linux-fresh upgrade
__refs_pull_13_head
liamwhite
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with
59 additions and
12 deletions
-
BIN
binutils/binutils-2.40-focal.tar.xz
-
binutils/build.sh
-
binutils/docker.sh
-
BIN
boost/boost-1_81_0.tar.xz
-
boost/build.sh
-
boost/docker.sh
-
gcc/build_gcc.sh
-
gcc/docker.sh
-
BIN
gcc/gcc-12.2.0-ubuntu.tar.xz.aa
-
BIN
gcc/gcc-12.2.0-ubuntu.tar.xz.ab
-
BIN
gcc/gcc-12.2.0-ubuntu.tar.xz.ac
-
BIN
gcc/gcc-12.2.0-ubuntu.tar.xz.ad
|
|
|
@ -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. |
|
|
|
@ -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 |
|
|
|
@ -1,5 +1,5 @@ |
|
|
|
#!/bin/bash |
|
|
|
|
|
|
|
set -e |
|
|
|
# This script is meant to make it easy to build a package using a Docker container. |
|
|
|
|
|
|
|
# Run this from the same directory as source directory |
|
|
|
@ -7,7 +7,7 @@ |
|
|
|
THIS=$(readlink -e $0) |
|
|
|
USER_ID=`id -u` |
|
|
|
GROUP_ID=`id -g` |
|
|
|
VERSION=1_79_0 |
|
|
|
VERSION=1_81_0 |
|
|
|
PKG_NAME=boost |
|
|
|
|
|
|
|
mkdir -p $PKG_NAME-$VERSION |
|
|
|
|
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
#!/bin/bash |
|
|
|
set -e |
|
|
|
|
|
|
|
THIS=$(readlink -e $0) |
|
|
|
PKG_NAME=$1 |
|
|
|
|
|
|
|
@ -1,19 +1,25 @@ |
|
|
|
#!/bin/bash |
|
|
|
set -e |
|
|
|
|
|
|
|
# This script is meant to make it easy to build GCC using a Docker container. |
|
|
|
|
|
|
|
# Run this from the same directory as gcc source directory |
|
|
|
# Recommended to clone GCC with: |
|
|
|
# git clone --depth 1 -b "releases/gcc-11.3.0" git://gcc.gnu.org/git/gcc.git |
|
|
|
|
|
|
|
THIS=$(readlink -e $0) |
|
|
|
USER_ID=`id -u` |
|
|
|
GROUP_ID=`id -g` |
|
|
|
VERSION=11.3.0 |
|
|
|
VERSION=12.2.0 |
|
|
|
|
|
|
|
if [ ! -d gcc ]; then |
|
|
|
git clone --depth 1 -b "releases/gcc-$VERSION" git://gcc.gnu.org/git/gcc.git |
|
|
|
else |
|
|
|
cd gcc |
|
|
|
sudo git clean -fxd |
|
|
|
git restore :/ |
|
|
|
cd .. |
|
|
|
fi |
|
|
|
|
|
|
|
mkdir -p gcc-$VERSION |
|
|
|
mkdir -p gcc-$VERSION | true |
|
|
|
|
|
|
|
docker run -v $(pwd):/src -w /src -u root -t debian:test /bin/bash /src/docker.sh $VERSION |
|
|
|
docker run -v $(pwd):/src -w /src -u root -t yuzuemu/build-environments:linux-fresh /bin/bash /src/docker.sh $VERSION |
|
|
|
|
|
|
|
cp -v $THIS gcc-$VERSION/ |
|
|
|
tar cv gcc-$VERSION | xz -T0 -c | split --bytes=90MB - gcc-$VERSION.tar.xz. |
|
|
|
@ -1,12 +1,13 @@ |
|
|
|
#!/bin/bash |
|
|
|
set -e |
|
|
|
|
|
|
|
THIS=$(readlink -e $0) |
|
|
|
|
|
|
|
mkdir build |
|
|
|
cd build |
|
|
|
mkdir gcc/build |
|
|
|
cd gcc/build |
|
|
|
/src/gcc/configure --enable-languages=c,c++ --disable-multilib |
|
|
|
make -j$(nproc) |
|
|
|
|
|
|
|
mkdir gcc-$1 |
|
|
|
mkdir gcc-$1 | true |
|
|
|
make -j$(nproc) install DESTDIR=/src/gcc-$1 |
|
|
|
cp $THIS /src/gcc-$1 |