mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-09-21 02:51:04 +02:00
updated build components
biutils-2.40, mpfr-4.2.0, mpc-1.3.1, isl-0.25, nasm-2.16.01 added new direct download links for isl library
This commit is contained in:
parent
46ef3e91fe
commit
777e573f95
@ -27,15 +27,21 @@ set -u # exit with error if unbound variables
|
|||||||
# GCC toolchain source version
|
# GCC toolchain source version
|
||||||
# here we can change source versions of tools
|
# here we can change source versions of tools
|
||||||
#
|
#
|
||||||
export BINUTILS_VERSION=${BINUTILS_VERSION:-binutils-2.39}
|
export BINUTILS_VERSION=${BINUTILS_VERSION:-binutils-2.40}
|
||||||
export GCC_VERSION=${GCC_VERSION:-12.2.0}
|
export GCC_VERSION=${GCC_VERSION:-12.2.0}
|
||||||
|
|
||||||
# Version of libraries are from ./contrib/download_prerequisites in gcc source directory
|
# Version of libraries are from ./contrib/download_prerequisites in gcc source directory
|
||||||
export GMP_VERSION=${GMP_VERSION:-gmp-6.2.1}
|
export GMP_VERSION=${GMP_VERSION:-gmp-6.2.1}
|
||||||
export MPFR_VERSION=${MPFR_VERSION:-mpfr-4.1.0}
|
export MPFR_VERSION=${MPFR_VERSION:-mpfr-4.2.0}
|
||||||
export MPC_VERSION=${MPC_VERSION:-mpc-1.2.1}
|
export MPC_VERSION=${MPC_VERSION:-mpc-1.3.1}
|
||||||
export ISL_VERSION=${ISL_VERSION:-isl-0.24}
|
|
||||||
|
|
||||||
|
# isl-0.25 compatibility requirement is set to 10.14
|
||||||
|
OSXVER="`/usr/bin/sw_vers -productVersion | cut -d '.' -f1,2`"
|
||||||
|
if [[ ${OSXVER} < 10.14 ]]; then
|
||||||
|
export ISL_VERSION=${ISL_VERSION:-isl-0.24}
|
||||||
|
else
|
||||||
|
export ISL_VERSION=${ISL_VERSION:-isl-0.25}
|
||||||
|
fi
|
||||||
#https://github.com/Meinersbur/isl/archive/refs/tags/isl-0.24.tar.gz
|
#https://github.com/Meinersbur/isl/archive/refs/tags/isl-0.24.tar.gz
|
||||||
#https://netbsd.pkgs.org/9/netbsd-amd64/isl-0.24.tgz.html
|
#https://netbsd.pkgs.org/9/netbsd-amd64/isl-0.24.tgz.html
|
||||||
#https://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/9.1/All/isl-0.24.tgz
|
#https://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/9.1/All/isl-0.24.tgz
|
||||||
@ -141,10 +147,10 @@ function mountRamDisk() {
|
|||||||
|
|
||||||
# Download #
|
# Download #
|
||||||
DownloadSource () {
|
DownloadSource () {
|
||||||
if [[ ! -f ${DIR_DOWNLOADS}/${ISL_VERSION}.tar.xz ]]; then
|
# if [[ ! -f ${DIR_DOWNLOADS}/${ISL_VERSION}.tar.xz ]]; then
|
||||||
echo "Status: ${ISL_VERSION} not found."
|
# echo "Status: ${ISL_VERSION} not found."
|
||||||
cp -v ${ISL_VERSION}.tar.xz ${DIR_DOWNLOADS}/
|
# cp -v ${ISL_VERSION}.tar.xz ${DIR_DOWNLOADS}/
|
||||||
fi
|
# fi
|
||||||
cd $DIR_DOWNLOADS
|
cd $DIR_DOWNLOADS
|
||||||
if [[ ! -f ${DIR_DOWNLOADS}/${GMP_VERSION}.tar.xz ]]; then
|
if [[ ! -f ${DIR_DOWNLOADS}/${GMP_VERSION}.tar.xz ]]; then
|
||||||
echo "Status: ${GMP_VERSION} not found."
|
echo "Status: ${GMP_VERSION} not found."
|
||||||
@ -164,14 +170,15 @@ DownloadSource () {
|
|||||||
mv download.tmp ${MPC_VERSION}.tar.gz
|
mv download.tmp ${MPC_VERSION}.tar.gz
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if [[ ! -f ${DIR_DOWNLOADS}/${ISL_VERSION}.tar.xz ]]; then
|
if [[ ! -f ${DIR_DOWNLOADS}/${ISL_VERSION}.tar.xz ]]; then
|
||||||
# echo "Status: ${ISL_VERSION} not found."
|
echo "Status: ${ISL_VERSION} not found."
|
||||||
|
curl -k -f -o download.tmp --remote-name https://libisl.sourceforge.io/${ISL_VERSION}.tar.xz || exit 1
|
||||||
# curl -o download.tmp --remote-name http://isl.gforge.inria.fr/${ISL_VERSION}.tar.xz || exit 1
|
# curl -o download.tmp --remote-name http://isl.gforge.inria.fr/${ISL_VERSION}.tar.xz || exit 1
|
||||||
# curl -o download.tmp --remote-name https://github.com/Meinersbur/isl/archive/refs/tags/${ISL_VERSION}.tar.gz || exit 1
|
# curl -o download.tmp --remote-name https://github.com/Meinersbur/isl/archive/refs/tags/${ISL_VERSION}.tar.gz || exit 1
|
||||||
# curl -o download.tmp --remote-name https://codeload.github.com/Meinersbur/isl/tar.gz/refs/tags/isl-0.24
|
# curl -o download.tmp --remote-name https://codeload.github.com/Meinersbur/isl/tar.gz/refs/tags/isl-0.24
|
||||||
# curl -o download.tmp --remote-name https://github.com/CloverHackyColor/CloverBootloader/releases/download/5140/${ISL_VERSION}.tar.xz || exit 1
|
# curl -o download.tmp --remote-name https://github.com/CloverHackyColor/CloverBootloader/releases/download/5140/${ISL_VERSION}.tar.xz || exit 1
|
||||||
# mv download.tmp ${ISL_VERSION}.tar.xz
|
mv download.tmp ${ISL_VERSION}.tar.xz
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
if [[ ! -f ${DIR_DOWNLOADS}/${BINUTILS_VERSION}.tar.xz ]]; then
|
if [[ ! -f ${DIR_DOWNLOADS}/${BINUTILS_VERSION}.tar.xz ]]; then
|
||||||
echo "Status: ${BINUTILS_VERSION} not found."
|
echo "Status: ${BINUTILS_VERSION} not found."
|
||||||
@ -282,7 +289,7 @@ CompileLibs () {
|
|||||||
|
|
||||||
rm -rf "${DIR_BUILD}/$ARCH-mpfr"
|
rm -rf "${DIR_BUILD}/$ARCH-mpfr"
|
||||||
mkdir -p "${DIR_BUILD}/$ARCH-mpfr" && cd "${DIR_BUILD}/$ARCH-mpfr"
|
mkdir -p "${DIR_BUILD}/$ARCH-mpfr" && cd "${DIR_BUILD}/$ARCH-mpfr"
|
||||||
curl -L https://www.mpfr.org/${MPFR_VERSION}/allpatches | patch -N -Z -p1 --directory="${MPFR_DIR}"
|
# curl -L https://www.mpfr.org/${MPFR_VERSION}/allpatches | patch -N -Z -p1 --directory="${MPFR_DIR}"
|
||||||
echo "- ${MPFR_VERSION} configure..."
|
echo "- ${MPFR_VERSION} configure..."
|
||||||
"${MPFR_DIR}"/configure --prefix=$PREFIX --with-gmp=$PREFIX > $DIR_LOGS/mpfr.$ARCH.configure.log.txt 2>&1
|
"${MPFR_DIR}"/configure --prefix=$PREFIX --with-gmp=$PREFIX > $DIR_LOGS/mpfr.$ARCH.configure.log.txt 2>&1
|
||||||
echo "- ${MPFR_VERSION} make..."
|
echo "- ${MPFR_VERSION} make..."
|
||||||
@ -356,7 +363,7 @@ CompileBinutils () {
|
|||||||
# Extract the tarball
|
# Extract the tarball
|
||||||
local BINUTILS_DIR=$(ExtractTarball "${BINUTILS_VERSION}.tar.xz")
|
local BINUTILS_DIR=$(ExtractTarball "${BINUTILS_VERSION}.tar.xz")
|
||||||
|
|
||||||
# Binutils build
|
# Binutils build --host=${BUILDARCH}-apple-darwin${BUILDREV}
|
||||||
rm -rf "$BUILD_BINUTILS_DIR"
|
rm -rf "$BUILD_BINUTILS_DIR"
|
||||||
mkdir -p "$BUILD_BINUTILS_DIR" && cd "$BUILD_BINUTILS_DIR"
|
mkdir -p "$BUILD_BINUTILS_DIR" && cd "$BUILD_BINUTILS_DIR"
|
||||||
echo "- ${BINUTILS_VERSION} configure..."
|
echo "- ${BINUTILS_VERSION} configure..."
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# Nasm source version
|
# Nasm source version
|
||||||
# here we can change source versions of tools
|
# here we can change source versions of tools
|
||||||
#
|
#
|
||||||
export NASM_VERSION=${NASM_VERSION:-2.15.05}
|
export NASM_VERSION=${NASM_VERSION:-2.16.01}
|
||||||
|
|
||||||
# Change PREFIX if you want nasm installed on different place
|
# Change PREFIX if you want nasm installed on different place
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user