-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from ckormanyos/build_avr_libc
Build avr libc
- Loading branch information
Showing
10 changed files
with
116 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
ckormanyos/avr-gcc-build | ||
================== | ||
|
||
This repository is work in progress. | ||
--- | ||
**NOTE** | ||
|
||
It is intended to provide shell scripts to build `avr-gcc`. | ||
`ckormanyos/avr-gcc-build` (this repository) is work in progress. | ||
|
||
At the moment, the script stops after completing the build of `binutils`. | ||
|
||
--- | ||
|
||
<p align="center"> | ||
<a href="https://github.com/ckormanyos/avr-gcc-build/actions"> | ||
<img src="https://github.com/ckormanyos/avr-gcc-build/actions/workflows/avr-gcc-build.yml/badge.svg" alt="Build Status"></a> | ||
</p> | ||
|
||
`ckormanyos/avr-gcc-build` provides shell scripts to build modern `avr-gcc`. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright Christopher Kormanyos 2023. | ||
# Distributed under The Unlicense. | ||
# | ||
|
||
mkdir -p gcc_build | ||
|
||
cd gcc_build | ||
|
||
cp ../gmp-6.3.0.tar.xz ./gmp-6.3.0.tar.xz | ||
tar -xf gmp-6.3.0.tar.xz | ||
mkdir objdir-gmp-6.3.0 | ||
cd objdir-gmp-6.3.0 | ||
../gmp-6.3.0/configure --prefix=/home/runner/work/avr-gcc-build/avr-gcc-build/local/gmp-6.3.0 --build=`../gmp-6.3.0/config.guess` --host=x86_64-w64-mingw32 --enable-static --disable-shared | ||
|
||
make --jobs=8 | ||
make install | ||
|
||
|
||
|
||
wget --no-check-certificate https://www.mpfr.org/mpfr-current/mpfr-4.2.1.tar.bz2 | ||
tar -xf mpfr-4.2.1.tar.bz2 | ||
mkdir objdir-mpfr-4.2.1 | ||
cd objdir-mpfr-4.2.1 | ||
../mpfr-4.2.1/configure --prefix=/home/runner/work/avr-gcc-build/avr-gcc-build/local/mpfr-4.2.1 --build=`../mpfr-4.2.1/config.guess` --host=x86_64-w64-mingw32 --enable-static --disable-shared --with-gmp=/home/runner/work/avr-gcc-build/avr-gcc-build/local/gmp-6.3.0 | ||
|
||
make --jobs=8 | ||
make install | ||
|
||
|
||
|
||
wget --no-check-certificate https://ftp.gnu.org/gnu/mpc/mpc-1.2.1.tar.gz | ||
tar -xf mpc-1.2.1.tar.gz | ||
mkdir objdir-mpc-1.2.1 | ||
cd objdir-mpc-1.2.1 | ||
../mpc-1.2.1/configure --prefix=/home/runner/work/avr-gcc-build/avr-gcc-build/local/mpc-1.2.1 --build=`../mpc-1.2.1/config.guess` --host=x86_64-w64-mingw32 --enable-static --disable-shared --with-gmp=/home/runner/work/avr-gcc-build/avr-gcc-build/local/gmp-6.3.0 --with-mpfr=/home/runner/work/avr-gcc-build/avr-gcc-build/local/mpfr-4.2.1 | ||
|
||
make --jobs=8 | ||
make install | ||
|
||
|
||
|
||
|
||
wget --no-check-certificate https://ftp.gnu.org/gnu/binutils/binutils-2.41.tar.bz2 | ||
tar -xf binutils-2.41.tar.bz2 | ||
mkdir objdir-binutils-2.41-avr-gcc-13.2.0 | ||
cd objdir-binutils-2.41-avr-gcc-13.2.0 | ||
../binutils-2.41/configure --prefix=/home/runner/work/avr-gcc-build/avr-gcc-build/local/gcc-13.2.0-avr --target=avr --build=`../binutils-2.41/config.guess` --host=x86_64-w64-mingw32 --disable-shared --enable-static --disable-libada --disable-libssp --disable-nls --enable-mingw-wildcard --with-gnu-as --with-dwarf2 --with-gmp=/home/runner/work/avr-gcc-build/avr-gcc-build/local/gmp-6.3.0 | ||
|
||
make --jobs=8 | ||
make install | ||
|
||
|
||
exit 0 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright Christopher Kormanyos 2023. | ||
# Distributed under The Unlicense. | ||
# | ||
|
||
PATH=/home/runner/work/avr-gcc-build/avr-gcc-build/local/gcc-12.1.0-avr/bin:"$PATH" | ||
export PATH | ||
|
||
CC="" | ||
export CC | ||
|
||
cd gcc_build/avr-libc3 | ||
./bootstrap | ||
|
||
cd ../cd objdir-gcc-12.1.0-avr | ||
../avr-libc3/configure --prefix=/home/runner/work/avr-gcc-build/avr-gcc-build/local/gcc-12.1.0-avr --host=avr | ||
|
||
make --jobs=8 | ||
make install | ||
|
||
exit |