Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions toolchains/n64/packages/toolchain-mips64/build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#! /bin/sh

# These versions are the ones used on the old buildbot
BINUTILS_VERSION=2.19.1
GCC_VERSION=4.4.2
NEWLIB_VERSION=1.17.0
# GCC has been upgraded from 4.4.2 to 4.9.4 to support C++11
# Binutils has been upgraded from 2.19.1 to 2.25 to support DWARF v4
# Newlib has been upgraded from 1.17.0 to 1.19.0 for compatibility with newer GCC
BINUTILS_VERSION=2.25
GCC_VERSION=4.9.4
NEWLIB_VERSION=1.19.0

# This package is inspired by dc-chain scripts for KallistiOS. Credits go to them.

Expand All @@ -23,7 +26,7 @@ export PATH="${PATH}:${prefix}/bin"
# Binutils
do_http_fetch binutils "https://ftp.gnu.org/gnu/binutils/binutils-${BINUTILS_VERSION}.tar.bz2" 'tar xjf'

CFLAGS="-fcommon -std=gnu89" CXXFLAGS="-fcommon" \
CFLAGS="-fcommon -std=gnu89" CXXFLAGS="-fcommon -std=gnu++11" \
./configure --target=${target} --prefix="${prefix}" --disable-werror
do_make
do_make install
Expand All @@ -32,7 +35,6 @@ cd ..

# GCC...
do_http_fetch gcc "https://ftp.gnu.org/gnu/gcc/gcc-${GCC_VERSION}/gcc-${GCC_VERSION}.tar.bz2" 'tar xjf'
do_patch gcc

# Do off tree build
GCC_DIR=$(pwd)
Expand All @@ -43,7 +45,7 @@ cd ..
mkdir gcc-build-stage1
cd gcc-build-stage1

CFLAGS="-fcommon -std=gnu89" CXXFLAGS="-fcommon" \
CFLAGS="-fcommon -std=gnu89" CXXFLAGS="-fcommon -std=gnu++11" \
"${GCC_DIR}"/configure \
--target=${target} \
--prefix="${prefix}" \
Expand All @@ -62,7 +64,7 @@ cd ..
# Newlib
do_http_fetch newlib "ftp://sourceware.org/pub/newlib/newlib-${NEWLIB_VERSION}.tar.gz" 'tar xzf'

CFLAGS_FOR_BUILD="-fcommon -std=gnu89" CXXFLAGS_FOR_BUILD="-fcommon" \
CFLAGS_FOR_BUILD="-fcommon -std=gnu89" CXXFLAGS_FOR_BUILD="-fcommon -std=gnu++11" \
CC_FOR_TARGET="${prefix}/bin/${target}-gcc" ./configure \
--target=${target} \
--prefix="${prefix}" \
Expand All @@ -77,7 +79,7 @@ cd ..
mkdir gcc-build-stage2
cd gcc-build-stage2

CFLAGS="-fcommon -std=gnu89" CXXFLAGS="-fcommon" \
CFLAGS="-fcommon -std=gnu89" CXXFLAGS="-fcommon -std=gnu++11" \
"${GCC_DIR}"/configure \
--target=${target} \
--prefix="${prefix}" \
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

17 changes: 17 additions & 0 deletions toolchains/n64/packages/ucon64/patches/fix-install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
diff -Naur ucon64-2.2.2-src-orig/src/install.sh ucon64-2.2.2-src/src/install.sh
--- ucon64-2.2.2-src-orig/src/install.sh 2021-04-19 19:03:53.000000000 +0100
+++ ucon64-2.2.2-src/src/install.sh 2022-11-30 16:26:21.315533698 +0000
@@ -19,11 +19,8 @@
if [ $OSTYPE == cygwin -o $OSTYPE == msys ]; then
cp -p ucon64 "$DESTDIR"
else
-sudo bash -c "
-chown root ucon64
-chmod 4755 ucon64
-cp -p ucon64 \"$DESTDIR\"
-"
+install -d "$DESTDIR"
+install -c -m 755 "./ucon64" "$DESTDIR/ucon64"
fi
if [ ! -e "$HOME/.ucon64" ]; then
mkdir "$HOME/.ucon64"