Skip to content

Various changes and improvements. #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 576 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
576 commits
Select commit Hold shift + click to select a range
e844d30
cache sources and dependencies in test builds.
jwt27 Feb 8, 2020
ab9d491
make sources cache in test builds os-dependent.
jwt27 Feb 8, 2020
5642098
retry if download fails.
jwt27 Feb 8, 2020
96840fa
use custom cache action in test builds.
jwt27 Feb 8, 2020
3b1d2ad
use ::set-env to export variables in workflow script.
jwt27 Feb 9, 2020
50b78bc
clear package caches in test builds and always save a new action cache
jwt27 Feb 9, 2020
a15e055
fix instances where exit is called from a subshell.
jwt27 Feb 9, 2020
9b00198
exit if tar fails
jwt27 Feb 9, 2020
931ac50
test both clean builds and rebuilds.
jwt27 Feb 9, 2020
9329955
run test builds every 6 days.
jwt27 Feb 9, 2020
9fc346a
add 'rebuild if uncached' step in workflow.
jwt27 Feb 9, 2020
c81eff6
don't change prefix for rebuild tests.
jwt27 Feb 9, 2020
2044d20
add patch to prevent overriding CFLAGS in djgpp libc.
jwt27 Feb 10, 2020
4f90e01
copy all executables installed by gcc and binutils from long-name to …
jwt27 Feb 10, 2020
c53d8e0
install mpfr to temporary directory
jwt27 Feb 10, 2020
66aaabb
suppress errors from make zoneinfo.
jwt27 Feb 10, 2020
648ba9d
install info/man files in target directory too.
jwt27 Feb 10, 2020
1ed6ef3
don't test rebuilds for now
jwt27 Feb 10, 2020
c67c109
clone git sources in download/ and link to them from build/
jwt27 Feb 10, 2020
8e573d5
use MAKE_J as alias for 'make -jN -Otarget'
jwt27 Feb 11, 2020
2593440
only use 'make -Otarget' if not running on macos.
jwt27 Feb 11, 2020
f670ba0
set CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET in init.sh
jwt27 Feb 11, 2020
c69cc94
set LDFLAGS for building djgpp
jwt27 Feb 11, 2020
93bfe4e
fix creating manpages directory.
jwt27 Feb 11, 2020
a2a6d0e
test builds: clear git sources before caching
jwt27 Feb 11, 2020
4d4296f
Revert "fix creating manpages directory."
jwt27 Feb 11, 2020
0e6d939
add shebang line in setenv script
jwt27 Feb 12, 2020
4c0a4f2
set default djgpp TARGET to i386-pc-msdosdjgpp.
jwt27 Aug 16, 2018
e55fc3c
change tests builds to i386-pc-msdosdjgpp
jwt27 Feb 12, 2020
a233476
add link-i586 script for *-pc-msdosdjgpp targets
jwt27 Feb 12, 2020
1912cf2
fix link-i586 script
jwt27 Feb 12, 2020
4e1288e
update readme
jwt27 Feb 12, 2020
275fc5f
support loading git sources from tar file.
jwt27 Feb 13, 2020
4a92c0d
debian package system
jwt27 Feb 13, 2020
c04e151
deploy ubuntu ppa.
jwt27 Feb 13, 2020
d01c6f1
pack git sources into tar files.
jwt27 Feb 13, 2020
30a47be
fix package names in debian/control file
jwt27 Feb 13, 2020
04e3347
release ppa for multiple ubuntu versions
jwt27 Feb 13, 2020
7a91f7e
drop ppa support for xenial
jwt27 Feb 13, 2020
8ea9b93
remove binutils-djgpp package for focal
jwt27 Feb 13, 2020
c648e6e
make gcc-djgpp in focal depend on 2.34-3ubuntu1+1.4.
jwt27 Feb 29, 2020
8c29c75
use empty DESTDIR for temporarily installed tools.
jwt27 Feb 29, 2020
2b3f2f9
simplify msys2 pacman command in readme
jwt27 Feb 29, 2020
c4f0a27
run test builds every 14 days.
jwt27 Feb 29, 2020
d522c91
download gcc dependencies separately only if --build-deb is given. us…
jwt27 Feb 29, 2020
ad68184
add lto to default enable-languages option.
jwt27 Feb 29, 2020
a37faf9
add binutils 2.34 for djgpp
jwt27 Mar 10, 2020
da41f14
mv ppa signing key to /tmp
jwt27 Mar 10, 2020
e796232
use if statement to suppress error on deploy
jwt27 Mar 10, 2020
d42ad88
add gcc 9.3.0
jwt27 May 3, 2020
a555bf3
run test builds once a month
jwt27 May 3, 2020
93d9541
patch djgpp gcc 9.3 and binutils 2.34 to use "b" flag for named bss s…
jwt27 May 5, 2020
3cce512
update debian changelog
jwt27 May 5, 2020
ff2cff0
select correct djgpp version when upgrading gcc
jwt27 May 5, 2020
d43c101
patch djgpp ldscript to link .bss.* back in .bss
jwt27 May 5, 2020
bcd9ce3
update readme
jwt27 May 5, 2020
6bb6fd0
drop PPA for disco, launchpad no longer accepts new packages for it
jwt27 May 5, 2020
2bc2f8e
add PPA for Ubuntu Groovy
jwt27 May 6, 2020
f2b1d0d
always rebuild libc when rebuilding gcc
jwt27 May 8, 2020
090e262
add option --no-git-reset
jwt27 May 9, 2020
fac55a6
add gcc 10.1
jwt27 May 8, 2020
050b4a9
add cmake in test build dependencies
jwt27 May 9, 2020
539ae0b
fix syntax error in sed expression
jwt27 May 9, 2020
5d5747c
update readme
jwt27 May 9, 2020
882eb4a
remove patch for gcc 10 which has been merged in djcross-gcc
jwt27 May 25, 2020
15a135d
add gcc 10.2
jwt27 Jul 30, 2020
e6c15f5
add gdb 9.2
jwt27 Jul 30, 2020
98e62e0
configure gdb 8 and earlier to use python2
jwt27 Aug 9, 2020
f33678d
add gdb 10.1
jwt27 Nov 2, 2020
b26a9e6
add binutils 2.35.1
jwt27 Nov 2, 2020
741fe00
add binutils 2.35.1 for djgpp
jwt27 Nov 2, 2020
a89a7ae
disable scheduled test builds
jwt27 Nov 2, 2020
0206bed
remove build status icon
jwt27 Nov 2, 2020
5546cd8
update test build dependencies
jwt27 Nov 2, 2020
b68972d
init gpg homedir before importing key
jwt27 Nov 2, 2020
49bec9c
drop ubuntu eoan build
jwt27 Nov 2, 2020
7a79959
build ppa for ubuntu hirsute (fixes #19)
jwt27 Nov 20, 2020
bff1a18
remove package installation example for mingw32
jwt27 Feb 2, 2021
9a08c72
list python headers dependency for gdb
jwt27 Feb 2, 2021
d2f9bd2
add newlib 4.0.0 and 4.1.0
jwt27 Feb 2, 2021
3ed539e
add binutils 2.35.2 and 2.36
jwt27 Feb 2, 2021
0779c92
add binutils 2.36.1
jwt27 Apr 30, 2021
7f7933c
build ppa for ubuntu impish (fixes #23)
jwt27 Jun 14, 2021
a1e3781
add binutils 2.37
jwt27 Aug 28, 2021
629fcd5
add gcc 10.3.0
jwt27 Nov 10, 2021
fc21542
add gdb 10.2 and 11.1
jwt27 Nov 10, 2021
0d77dc2
fix dead link
jwt27 Nov 10, 2021
0465881
drop ppa for ubuntu groovy
jwt27 Nov 10, 2021
91264c4
build ppa for ubuntu jammy
jwt27 Nov 10, 2021
402ca5a
sync ia16 configure flags with tkchia/build-ia16 (fixes #24)
jwt27 Feb 7, 2022
a4ddcc2
run ubuntu test builds with gcc-11
jwt27 Feb 7, 2022
ff63e88
install help2man in test builds
jwt27 Feb 7, 2022
cb2d293
install python2-dev in test builds
jwt27 Feb 7, 2022
e081c75
add binutils 2.38
jwt27 Feb 15, 2022
9393afd
update pgp key
jwt27 Feb 15, 2022
81da64f
drop PPA for ubuntu hirsute
jwt27 Feb 15, 2022
e57d2cf
update readme
jwt27 Feb 15, 2022
468c285
fix simulavr build
jwt27 Feb 15, 2022
a495750
fix simulavr parallel build
jwt27 Feb 15, 2022
6a4d3df
add avr-libc 2.1.0, avrdude 6.4, avarice 2.14
jwt27 Feb 15, 2022
4f7ba27
fix avarice build
jwt27 Feb 15, 2022
5eb25c0
add gcc 11.1.0, 11.2.0
jwt27 Feb 16, 2022
5e2ceec
add Watt-32 package
jwt27 Mar 9, 2022
9d114d0
include watt32 in test builds
jwt27 Mar 9, 2022
6bab950
install nasm for test builds
jwt27 Mar 9, 2022
6bafae8
rename directory for watt32 errno files
jwt27 Mar 9, 2022
23baa94
patch watt32 makefile to build on windows
jwt27 Mar 9, 2022
9365c63
allow empty CFLAGS_FOR_TARGET
jwt27 Mar 9, 2022
dcc5c09
new and improved method to store installed package versions
jwt27 Mar 10, 2022
066de6b
use forward slashes in gcc specs file
jwt27 Mar 10, 2022
2a480f9
remove specs file before building libc or watt32
jwt27 Mar 10, 2022
8ab4199
fix ownership and permissions of installed files
jwt27 Mar 11, 2022
09f70eb
add binutils as dependency for watt32
jwt27 Mar 11, 2022
6263970
silence identical file warnings
jwt27 Mar 11, 2022
d9dad56
update watt-32 build procedure
jwt27 Mar 11, 2022
ae23004
no need to force a libc rebuild on compiler upgrade
jwt27 Mar 11, 2022
5fe314d
add 'watt32' to 'all'
jwt27 Mar 11, 2022
88de695
use octal umask
jwt27 Mar 11, 2022
427ecff
patch std::errc to use Watt-32 error codes
jwt27 Mar 14, 2022
60df06f
add gcc option -mno-watt to disable Watt-32 include path
jwt27 Mar 15, 2022
69a4e3e
set WATT_ROOT in setenv.cmd with regular slash and no quotes
jwt27 Mar 15, 2022
a8de123
reduce code duplication
jwt27 Mar 16, 2022
329e480
fix typo in specs file
jwt27 Mar 16, 2022
8c5ebaf
compile target libraries with -ffunction-sections -fdata-sections
jwt27 Mar 16, 2022
27eb25f
add debian package for Watt-32
jwt27 Mar 9, 2022
07127cf
always rebuild watt32 tools on non-amd64 or non-linux platforms.
jwt27 Mar 16, 2022
c7ca0f2
remove gcc specs option (doesn't work)
jwt27 Mar 17, 2022
4581cb7
remove merged watt32 patch
jwt27 Mar 17, 2022
a40f150
silence warning on Mac
jwt27 Mar 17, 2022
326af40
add gdb 11.2, 12.1
jwt27 May 2, 2022
71345cc
build PPA for ubuntu kinetic [fixes #26]
jwt27 May 2, 2022
515d0ba
update readme
jwt27 May 2, 2022
dfda7c1
update default gdb version
jwt27 May 16, 2022
4e31477
add gcc 12.1.0
jwt27 May 23, 2022
47ac443
drop --always-make flag for watt32 utils
jwt27 May 23, 2022
e056685
set pkg-config path in setenv script
jwt27 May 23, 2022
d53af9b
list M4 as dependency
jwt27 May 28, 2022
c1e2774
use msys2 perl on mingw-w64 (fixes #27)
jwt27 Aug 11, 2022
9530ad0
Update README.md
May 31, 2022
d7a173f
list dos2unix dependency for fedora/msys2
jwt27 Aug 11, 2022
8c9b990
debian: use separate version numbers for binary packages
jwt27 Aug 15, 2022
f3c4ed9
drop PPA for ubuntu Impish
jwt27 Aug 15, 2022
93e4a35
correct bash path in debian/rules
jwt27 Aug 15, 2022
1732d1a
keep ubuntu release name in binary package version numbers
jwt27 Aug 15, 2022
2b49051
make djgpp-cvs the default version
jwt27 Aug 15, 2022
c890514
enhance setenv script
jwt27 Aug 16, 2022
940d915
add gcc 12.2.0
jwt27 Aug 23, 2022
0d0d5a8
add binutils 2.39
jwt27 Aug 23, 2022
e1e6a87
export {C,CXX}FLAGS_FOR_TARGET
jwt27 Sep 18, 2022
b116866
improve debian package system
jwt27 Sep 17, 2022
cc01ee2
debian: configure gcc with --libexecdir=/usr/lib
jwt27 Sep 18, 2022
a199e7f
debian: add convenience package 'djgpp'
jwt27 Sep 18, 2022
dafe7f3
debian: install documentation in exec-prefix
jwt27 Sep 18, 2022
0d4c453
debian: drop 'extra' packages and install their contents in exec-prefix
jwt27 Sep 19, 2022
97458ce
debian: add convenience package 'djgpp-doc'
jwt27 Sep 19, 2022
78753af
add variable to pass options to all autotools configure scripts
jwt27 Sep 19, 2022
48596c4
debian: set environment vars from dpgk-buildflags
jwt27 Sep 21, 2022
aab3dbc
debian: remove hyphens from package version numbers
jwt27 Sep 21, 2022
2fd53ee
prevent accidentally uploading unreleased packages
jwt27 Sep 24, 2022
7a8152e
debian: move meta-packages to new repo
jwt27 Sep 24, 2022
dbdb0bc
search for libraries in ${EXEC_PREFIX}/local/
jwt27 Sep 24, 2022
210a9a9
debian: remove pgp key before build
jwt27 Sep 24, 2022
e64f107
debian: fix stupid build error
jwt27 Sep 25, 2022
10d9fec
debian: add virtual packages for gcc and libc
jwt27 Sep 28, 2022
20a7874
debian: set architecture for doc packages to 'all'
jwt27 Sep 28, 2022
4de66c2
update go32 stub in binutils to match libc version
jwt27 Nov 20, 2022
ec3d79c
actions: use checkout@v3
jwt27 Dec 5, 2022
fa47c32
build ppa for ubuntu lunar [fixes: #31]
jwt27 Dec 5, 2022
c115432
release debian package v9
jwt27 Dec 5, 2022
35ae864
run test builds with gcc 12
jwt27 Dec 5, 2022
f260f8a
actions: use cache@v3
jwt27 Dec 5, 2022
71a881f
use ccache in test builds
jwt27 Dec 5, 2022
7aceaf1
actions: use GITHUB_PATH
jwt27 Dec 5, 2022
40cbd08
fix gcc specs file path
jwt27 Dec 5, 2022
1ba0f33
actions: fix ccache dir
jwt27 Dec 5, 2022
66720ae
fix stupid typo in readme
jwt27 Dec 17, 2022
e95b543
Add missing nasm dependency
cwwcww Feb 26, 2023
2d331b7
mention dxe3gen 1.0.5
jwt27 Apr 4, 2023
d2bfc4d
list `which` as dependency on fedora [#33]
jwt27 Apr 4, 2023
9a0083b
add gdb 13.1
jwt27 Apr 4, 2023
ae57313
add binutils 2.40
jwt27 Apr 4, 2023
60708b6
list available packages if none are given, without counting options
jwt27 Apr 8, 2023
1629582
add newlib 4.2.0, 4.3.0
jwt27 Apr 8, 2023
ec552ae
add avrdude 7.0
jwt27 Apr 8, 2023
a8aca0e
reword
jwt27 Apr 8, 2023
f3b70ba
rename meta-package 'default' -> 'minimal'
jwt27 Apr 8, 2023
8ecffc5
add 'all'/'minimal' packages for all targets
jwt27 May 18, 2023
ccdf210
build PPA for Ubuntu Mantic
jwt27 May 18, 2023
2ff1d9b
release debian package v10
jwt27 May 18, 2023
857bb1a
update watt32 errno lists
jwt27 Jun 30, 2023
ad50164
add -mtune=pentium in debian build
jwt27 Jul 6, 2023
b78ddaf
install wrapper script for pkg-config
jwt27 Jul 6, 2023
1919e91
mention libc patch
jwt27 Jul 6, 2023
db60756
ensure old specs file is removed before build
jwt27 Jul 10, 2023
a301974
remove unused var BUILD_DXEGEN
jwt27 Jul 20, 2023
1cc8961
build PPA for Ubuntu Noble
jwt27 Oct 29, 2023
9ec3bf7
fix setting CXXFLAGS_FOR_TARGET
jwt27 Oct 29, 2023
4fffc51
add binutils 2.41
jwt27 Oct 29, 2023
7fdf00d
fix building zic.exe
jwt27 Oct 29, 2023
b9a1276
release debian package v11
jwt27 Oct 29, 2023
8895d28
drop PPA for Ubuntu Kinetic
jwt27 Oct 29, 2023
d449b69
use new syntax for workflow outputs
jwt27 Oct 29, 2023
c760da7
pull gcc dependencies from ftpmirror.gnu.org
jwt27 Nov 13, 2023
9fad7f8
update gcc dependencies
jwt27 Nov 13, 2023
c9d5c7d
no need for a separate function here
jwt27 Nov 13, 2023
8dce76c
set 'Architecture: all' for library packages
jwt27 Nov 13, 2023
d11f5b3
export flags variables
jwt27 Dec 30, 2023
e7135d2
define WIN32_LEAN_AND_MEAN on mingw
jwt27 Dec 30, 2023
2705fa2
define WIN32_LEAN_AND_MEAN only while compiling gcc
jwt27 Jan 27, 2024
8a4b8c8
improve package list display, drop duplicates
jwt27 May 30, 2024
bbbf085
remove dummy binutils package files for djgpp
jwt27 May 30, 2024
3906d94
add binutils 2.42
jwt27 May 30, 2024
42f5bbf
add gdb 13.2, 14.1, 14.2
jwt27 May 30, 2024
46503a7
install gmp/mpfr for test builds
jwt27 Jun 1, 2024
e164c92
add gcc 13.1, 13.2, 14.1
jwt27 Jun 22, 2024
2eb4c42
fix avarice build on recent gcc versions
jwt27 Jun 22, 2024
8a29ed4
copy go32stub patch to newer binutils versions
jwt27 Jul 16, 2024
7431354
add gdb 15.1
jwt27 Jul 18, 2024
204615e
bump default gdb version
jwt27 Jul 23, 2024
8e5069d
fix gdb 8.2.1 build error (implicit declaration of wcwidth())
jwt27 Aug 17, 2024
544bd03
add binutils 2.43
jwt27 Aug 17, 2024
f1e7f7f
release debian package v12
jwt27 Aug 17, 2024
6679961
ubuntu PPA: drop lunar, drop mantic, add oracular
jwt27 Aug 17, 2024
f3ec351
use --with-build-sysroot when installing via DESTDIR
jwt27 Aug 18, 2024
4908191
bump sed version for macos
jwt27 Aug 18, 2024
2ee298e
gdb patch: Do not assume ELF in dwarf2/read.c
jwt27 Aug 22, 2024
8cf32b6
add binutils 2.43.1
jwt27 Sep 23, 2024
f47868a
set gdb 15.1 as default for djgpp
jwt27 Sep 23, 2024
26d1d3a
add gcc 14.2.0
jwt27 Sep 23, 2024
106759c
fix gcc 14.2 patch
jwt27 Sep 23, 2024
a3e6011
release debian package v13
jwt27 Sep 23, 2024
a3b048e
add Build-Depends: libgmp-dev, libmpfr-dev
jwt27 Sep 23, 2024
2192cc7
update workflow actions
jwt27 Sep 23, 2024
830e757
build gmp/mpfr/mpc/isl libs separately
jwt27 Sep 23, 2024
4415a89
CI: fix ccache
jwt27 Sep 24, 2024
75ea0c6
CI: silence "already installed" warnings from brew
jwt27 Sep 24, 2024
5845b1c
CI: remove unused brew packages
jwt27 Sep 24, 2024
3fdaf08
use package version files for static libs
jwt27 Sep 24, 2024
83e2972
djgpp: drop libemu
jwt27 Sep 26, 2024
30cf4f4
CI: remove 'rebuild' workflow
jwt27 Sep 26, 2024
63f8ce9
add gdb 15.2
jwt27 Oct 2, 2024
4216a9c
djgpp: re-enable libemu build
jwt27 Apr 1, 2025
3356840
add gdb 16.1
jwt27 Apr 1, 2025
7a39c42
add gdb 16.2
jwt27 Apr 1, 2025
7606bc4
add binutils 2.44
jwt27 Apr 1, 2025
dbd3a9a
remove references to python2
jwt27 Apr 1, 2025
d9f4066
add gdb 16.3
jwt27 May 28, 2025
947a42f
add libemu.a back in debian package
jwt27 May 28, 2025
ce5c4b4
build PPA for ubuntu Plucky
jwt27 May 28, 2025
9f68e32
add go32stub patch for binutils 2.44
jwt27 May 28, 2025
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
Prev Previous commit
Next Next commit
use package version files for static libs
  • Loading branch information
jwt27 committed Sep 24, 2024
commit 3fdaf087d11733c825b03a8e98c685566504bd20
3 changes: 2 additions & 1 deletion ia16/gcc
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
GCC_VERSION="ia16"
ISL_VERSION=0.15

GCC_GIT="https://github.com/tkchia/gcc-ia16.git::gcc-6_3_0-ia16-tkchia"

GCC_CONFIGURE_OPTIONS="--disable-plugin
--enable-lto
--disable-libstdcxx-dual-abi
${GCC_CONFIGURE_OPTIONS}"

source lib/isl-0.15
1 change: 1 addition & 0 deletions lib/gmp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source lib/gmp-6.3.0
2 changes: 2 additions & 0 deletions lib/gmp-6.3.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
GMP_VERSION=6.3.0
GMP_ARCHIVE="http://ftpmirror.gnu.org/gnu/gmp/gmp-${GMP_VERSION}.tar.xz"
1 change: 1 addition & 0 deletions lib/isl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source lib/isl-0.24
2 changes: 2 additions & 0 deletions lib/isl-0.15
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ISL_VERSION=0.15
ISL_ARCHIVE="http://gcc.gnu.org/pub/gcc/infrastructure/isl-${ISL_VERSION}.tar.bz2"
2 changes: 2 additions & 0 deletions lib/isl-0.24
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ISL_VERSION=0.24
ISL_ARCHIVE="http://gcc.gnu.org/pub/gcc/infrastructure/isl-${ISL_VERSION}.tar.bz2"
1 change: 1 addition & 0 deletions lib/mpc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source lib/mpc-1.3.1
2 changes: 2 additions & 0 deletions lib/mpc-1.3.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
MPC_VERSION=1.3.1
MPC_ARCHIVE="http://ftpmirror.gnu.org/gnu/mpc/mpc-${MPC_VERSION}.tar.gz"
1 change: 1 addition & 0 deletions lib/mpfr
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source lib/mpfr-4.2.1
2 changes: 2 additions & 0 deletions lib/mpfr-4.2.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
MPFR_VERSION=4.2.1
MPFR_ARCHIVE="http://ftpmirror.gnu.org/gnu/mpfr/mpfr-${MPFR_VERSION}.tar.xz"
4 changes: 0 additions & 4 deletions script/build-tools.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
TMPINST="${BASE}/build/tmpinst"
mkdir -p "$TMPINST"
export PATH="${TMPINST}/bin:$PATH"

cd "${BASE}/build/" || exit 1

# build GNU sed if needed.
Expand Down
53 changes: 20 additions & 33 deletions script/check-deps-and-confirm.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
if [ -z ${IGNORE_DEPENDENCIES} ]; then
for DEP in ${DEPS}; do
case $DEP in
djgpp) [ -z "$(get_version djgpp)" ] && add_pkg djgpp ;;
newlib) [ -z "$(get_version newlib)" ] && add_pkg newlib ;;
avr-libc) [ -z "$(get_version avr-libc)" ] && add_pkg avr-libc ;;
binutils) [ -z "$(get_version binutils)" ] && add_pkg binutils ;;
gcc) [ -z "$(get_version gcc)" ] && add_pkg gcc ;;
gdb) [ -z "$(get_version gdb)" ] && add_pkg gdb ;;
esac
if [ -z "$IGNORE_DEPENDENCIES" ]; then
for DEP in $DEPS; do
[ -z "$(get_version "$DEP")" ] && add_pkg "$DEP"
done
fi

LIBDEPS=''

if [ ! -z "$GCC_VERSION" ] || [ ! -z "$GDB_VERSION" ]; then
LIBDEPS+=' gmp mpfr'
fi

if [ ! -z "$GCC_VERSION" ]; then
LIBDEPS+=' mpc isl'
fi

for DEP in $LIBDEPS; do
VERSION_VAR="${DEP^^}_VERSION"
if [ -z "${!VERSION_VAR}" ]; then
source "lib/$DEP" || exit 1
fi
done

if [ ! -z ${GCC_VERSION} ] && [ -z ${DJCROSS_GCC_ARCHIVE} ] && [ "${DJCROSS_METHOD}" == 'djcross' ]; then
DJCROSS_GCC_ARCHIVE="${DJGPP_DOWNLOAD_BASE}/djgpp/rpms/djcross-gcc-${GCC_VERSION}/djcross-gcc-${GCC_VERSION}.tar.bz2"
# djcross-gcc-X.XX-tar.* maybe moved from /djgpp/rpms/ to /djgpp/deleted/rpms/ directory.
Expand All @@ -22,29 +32,6 @@ case $TARGET in
*) unset DJCROSS_GCC_ARCHIVE OLD_DJCROSS_GCC_ARCHIVE ;;
esac

if [ ! -z "$GCC_VERSION" ] || [ ! -z "$GDB_VERSION" ]; then
GMP_VERSION="${GMP_VERSION:-6.3.0}"
MPFR_VERSION="${MPFR_VERSION:-4.2.1}"
fi

if [ ! -z "$GCC_VERSION" ]; then
MPC_VERSION="${MPC_VERSION:-1.3.1}"
ISL_VERSION="${ISL_VERSION:-0.24}"
fi

if [ ! -z "$GMP_VERSION" ]; then
GMP_ARCHIVE="http://ftpmirror.gnu.org/gnu/gmp/gmp-${GMP_VERSION}.tar.xz"
fi
if [ ! -z "$MPFR_VERSION" ]; then
MPFR_ARCHIVE="http://ftpmirror.gnu.org/gnu/mpfr/mpfr-${MPFR_VERSION}.tar.xz"
fi
if [ ! -z "$MPC_VERSION" ]; then
MPC_ARCHIVE="http://ftpmirror.gnu.org/gnu/mpc/mpc-${MPC_VERSION}.tar.gz"
fi
if [ ! -z "$ISL_VERSION" ]; then
ISL_ARCHIVE="http://gcc.gnu.org/pub/gcc/infrastructure/isl-${ISL_VERSION}.tar.bz2"
fi

# check GNU sed is installed or not.
# It is for OSX, which doesn't ship with GNU sed.
if ! sed --version 2>/dev/null | grep "GNU sed" > /dev/null ;then
Expand Down
3 changes: 3 additions & 0 deletions script/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ unset INSTALL
umask 022

BASE=`pwd`
TMPINST="${BASE}/build/tmpinst"
mkdir -p "$TMPINST"
export PATH="${TMPINST}/bin:$PATH"

# number of parallel build threads
if nproc > /dev/null 2>&1 ; then
Expand Down