Skip to content

Commit 39e7017

Browse files
committed
Update to GCC 10.2 / binutils 2.33
1 parent 245588a commit 39e7017

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

build.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ mkdir ${BUILD}
99
mkdir ${INSTALL}
1010
root=$(pwd)
1111
cores=4
12-
VERSION_BINUTILS="2.32"
13-
VERSION_GCC="9.2.0"
12+
#VERSION_BINUTILS="2.33"
13+
VERSION_GCC="10.2.0"
1414
VERSION_LIBC="2.0.0"
1515

1616
# Get sources
17-
wget -q "https://dl.bintray.com/osx-cross/avr-patches/avr-binutils-${VERSION_BINUTILS}-size.patch" &
17+
wget -q "https://dl.bintray.com/osx-cross/avr-patches/avr-binutils-2.33-size.patch" &
1818
wget -q "https://dl.bintray.com/osx-cross/avr-patches/avr-libc-${VERSION_LIBC}-atmega168pb.patch" &
19-
wget -qO- "https://ftp.gnu.org/gnu/binutils/binutils-${VERSION_BINUTILS}.tar.bz2" | tar xj --directory ${SRC} &
19+
wget -qO- "https://ftp.gnu.org/gnu/binutils/binutils-2.33.1.tar.bz2" | tar xj --directory ${SRC} &
2020
wget -qO- "https://ftp.gnu.org/gnu/gcc/gcc-${VERSION_GCC}/gcc-${VERSION_GCC}.tar.xz" | tar xJ --directory ${SRC} &
2121
wget -qO- "https://download.savannah.gnu.org/releases/avr-libc/avr-libc-${VERSION_LIBC}.tar.bz2" | tar xj --directory ${SRC} &
2222
wait
2323

2424
# Build binutils first
25-
cd ${SRC}/binutils-${VERSION_BINUTILS}
25+
cd ${SRC}/binutils-2.33.1
2626
# patch size file
27-
patch -g 0 -f -p0 -i ../../avr-binutils-${VERSION_BINUTILS}-size.patch
27+
patch -g 0 -f -p0 -i ../../avr-binutils-2.33-size.patch
2828
mkdir build && cd build
2929
# configure and make
3030
../configure --prefix=${INSTALL}/avr-binutils/ --target=avr --disable-nls --disable-werror
@@ -58,5 +58,5 @@ make install -j${cores}
5858

5959
cd ${root}
6060
rm -r build src
61-
rm avr-binutils-${VERSION_BINUTILS}-size.patch
61+
rm avr-binutils-2.33-size.patch
6262
rm avr-libc-${VERSION_LIBC}-atmega168pb.patch

0 commit comments

Comments
 (0)