forked from flavioc/cross-hurd
-
Notifications
You must be signed in to change notification settings - Fork 1
/
vars.sh
105 lines (99 loc) · 2.85 KB
/
vars.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
. ./config.sh
export AR=gar
export SCRIPT_DIR=$PWD
export SYSTEM=$PWD/tmp
export ROOT=/cross-tools
export SYS_ROOT=/tools
export TARGET=$CPU-pc-gnu
export HOST="$(echo $MACHTYPE | sed "s/$(echo $MACHTYPE | cut -d- -f2)/cross/g")"
export PATH=$ROOT/bin:$PATH
# You can change the GCC version here.
export CC="$HOST_MACHINE"-gcc
export CXX="$HOST_MACHINE"-g++
if [ ! -z "$CCACHE_DIRECTORY" ]; then
export PATH=$CCACHE_DIRECTORY:$PATH
fi
# Package versions.
BINUTILS_VERSION=2.37
GCC_VERSION=11.2.0
FLEX_VERSION=2.6.4
ZLIB_VERSION=1.2.11
BASH_VERSION=5.1.16
COREUTILS_VERSION=8.32
# e2fsprogs 1.45.4 is failing due to something with sys/mount.h in configure
E2FSPROGS_VERSION=1.44.1
PKGCONFIGLITE_VERSION=0.28-1
LIBUUID_VERSION=1.0.3
UTIL_LINUX_VERSION=2.36
GRUB_VERSION=2.04
# Shadow 4.7 is failing due to sys/prctl.h missing
SHADOW_VERSION=4.6
SED_VERSION=4.7
GMP_VERSION=6.2.1
MPFR_VERSION=4.1.0
MPC_VERSION=1.2.0
NCURSES_VERSION=6.2
# 8.1: checking what tgetent() returns for an unknown terminal... configure: error: failed to compile test program.
VIM_BASE_VERSION=74
VIM_VERSION=7.4
GPG_ERROR_VERSION=1.38
GCRYPT_VERSION=1.8.7
MAKE_VERSION=4.3
GREP_VERSION=3.6
GAWK_VERSION=5.1.0
# Mach, Hurd and Glibc are all taken from the Git repository.
BINUTILS_SRC=binutils-"$BINUTILS_VERSION"
BINUTILS_PKG="${BINUTILS_SRC}.tar.bz2"
GCC_SRC=gcc-"$GCC_VERSION"
GCC_PKG="$GCC_SRC".tar.gz
GNUMACH_SRC=gnumach
GNUMIG_SRC=mig
HURD_SRC=hurd
GLIBC_SRC=glibc
GLIBC_TAG=master
FLEX_SRC=flex-"$FLEX_VERSION"
FLEX_PKG="$FLEX_SRC".tar.gz
ZLIB_SRC=zlib-"$ZLIB_VERSION"
ZLIB_PKG="$ZLIB_SRC".tar.gz
BASH_SRC=bash-"$BASH_VERSION"
BASH_PKG="$BASH_SRC".tar.gz
COREUTILS_SRC=coreutils-"$COREUTILS_VERSION"
COREUTILS_PKG="$COREUTILS_SRC".tar.xz
E2FSPROGS_SRC=e2fsprogs-"$E2FSPROGS_VERSION"
E2FSPROGS_PKG="$E2FSPROGS_SRC".tar.gz
PKGCONFIGLITE_SRC=pkg-config-lite-"$PKGCONFIGLITE_VERSION"
PKGCONFIGLITE_PKG="$PKGCONFIGLITE_SRC".tar.gz
LIBUUID_SRC=libuuid-"$LIBUUID_VERSION"
LIBUUID_PKG="$LIBUUID_SRC".tar.gz
UTIL_LINUX_SRC=util-linux-"$UTIL_LINUX_VERSION"
UTIL_LINUX_PKG="$UTIL_LINUX_SRC".tar.gz
GRUB_SRC=grub-"$GRUB_VERSION"
GRUB_PKG="$GRUB_SRC".tar.gz
SHADOW_SRC=shadow-"$SHADOW_VERSION"
SHADOW_PKG="$SHADOW_SRC".tar.xz
SED_SRC=sed-"$SED_VERSION"
SED_PKG="$SED_SRC".tar.xz
GMP_SRC=gmp-"$GMP_VERSION"
GMP_PKG="${GMP_SRC}".tar.bz2
MPFR_SRC=mpfr-"$MPFR_VERSION"
MPFR_PKG="${MPFR_SRC}".tar.bz2
MPC_SRC=mpc-"$MPC_VERSION"
MPC_PKG="${MPC_SRC}".tar.gz
NCURSES_SRC=ncurses-"$NCURSES_VERSION"
NCURSES_PKG="${NCURSES_SRC}".tar.gz
VIM_SRC=vim-"$VIM_VERSION"
VIM_PKG="$VIM_SRC".tar.bz2
GPG_ERROR_SRC=libgpg-error-"$GPG_ERROR_VERSION"
GPG_ERROR_PKG=${GPG_ERROR_SRC}.tar.bz2
GCRYPT_SRC=libgcrypt-"$GCRYPT_VERSION"
GCRYPT_PKG=${GCRYPT_SRC}.tar.bz2
MAKE_SRC=make-"$MAKE_VERSION"
MAKE_PKG=${MAKE_SRC}.tar.gz
GREP_SRC=grep-"$GREP_VERSION"
GREP_PKG=${GREP_SRC}.tar.xz
GAWK_SRC=gawk-"$GAWK_VERSION"
GAWK_PKG=${GAWK_SRC}.tar.xz
print_info ()
{
echo "* $*"
}