Skip to content

Commit b5f4069

Browse files
committed
Initial support for Raspbian Bullseye OS(Debian 11) ARM/ARM64 Raspberry Pi Toolchains. (Fixes #84)
- Added GCC version `10.2.0` as Bullseye toolchains base. - Added Binutils version `2.35.2` as Bullseye toolchains base. - Added GLIBC version `2.31` as Bullseye toolchains base. - Updated User and CI bash scripts. - Updated Binary and Docs Sourceforge deployer. - Updated complete Docs and links. - Remove obsolete GCC versions from docs.
1 parent e3ab15b commit b5f4069

31 files changed

+429
-210
lines changed

QT_build_instructions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -341,11 +341,11 @@ cd ~/rpi-qt/tools
341341

342342
Copy URL from one of following Precompiled Compressed Base-Toolchain _(for maximum compatability)_ based on your Raspberry Pi Variant and OS you installed on it, from below:
343343

344-
| Raspberry Pi Board | Stretch(32-bit) OS | Buster(32-bit) OS |
345-
| ---------- | :--------: | :------: |
346-
| Raspberry Pi - *Zero/W/WH & 1 Model A/B/A+/B+* | [6.3.0](https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Stretch/GCC%206.3.0/Raspberry%20Pi%201%2C%20Zero/cross-gcc-6.3.0-pi_0-1.tar.gz) | [8.3.0](https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Buster/GCC%208.3.0/Raspberry%20Pi%201%2C%20Zero/cross-gcc-8.3.0-pi_0-1.tar.gz) |
347-
| Raspberry Pi - *2 & 3 Model A/B* | [6.3.0](https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Stretch/GCC%206.3.0/Raspberry%20Pi%202%2C%203/cross-gcc-6.3.0-pi_2-3.tar.gz) | [8.3.0](https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Buster/GCC%208.3.0/Raspberry%20Pi%202%2C%203/cross-gcc-8.3.0-pi_2-3.tar.gz) |
348-
| Raspberry Pi - *3 & 4 Model A+/B+ & Compute 3/3-lite/3+* | [6.3.0](https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Stretch/GCC%206.3.0/Raspberry%20Pi%203A%2B%2C%203B%2B%2C%204/cross-gcc-6.3.0-pi_3%2B.tar.gz) | [8.3.0](https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Buster/GCC%208.3.0/Raspberry%20Pi%203A%2B%2C%203B%2B%2C%204/cross-gcc-8.3.0-pi_3%2B.tar.gz) |
344+
| Raspberry Pi Board | Stretch(32-bit) OS | Buster(32-bit) OS | Bullseye(32-bit) OS |
345+
| ---------- | :--------: | :------: | :------: |
346+
| Raspberry Pi - *Zero/W/WH & 1 Model A/B/A+/B+* | [6.3.0](https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Stretch/GCC%206.3.0/Raspberry%20Pi%201%2C%20Zero/cross-gcc-6.3.0-pi_0-1.tar.gz) | [8.3.0](https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Buster/GCC%208.3.0/Raspberry%20Pi%201%2C%20Zero/cross-gcc-8.3.0-pi_0-1.tar.gz) | [10.2.0](https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Bullseye/GCC%2010.2.0/Raspberry%20Pi%201%2C%20Zero/cross-gcc-10.2.0-pi_0-1.tar.gz) |
347+
| Raspberry Pi - *2 & 3 Model A/B* | [6.3.0](https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Stretch/GCC%206.3.0/Raspberry%20Pi%202%2C%203/cross-gcc-6.3.0-pi_2-3.tar.gz) | [8.3.0](https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Buster/GCC%208.3.0/Raspberry%20Pi%202%2C%203/cross-gcc-8.3.0-pi_2-3.tar.gz) | [10.2.0](https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Bullseye/GCC%2010.2.0/Raspberry%20Pi%202%2C%203/cross-gcc-10.2.0-pi_2-3.tar.gz) |
348+
| Raspberry Pi - *3 & 4 Model A+/B+ & Compute 3/3-lite/3+* | [6.3.0](https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Stretch/GCC%206.3.0/Raspberry%20Pi%203A%2B%2C%203B%2B%2C%204/cross-gcc-6.3.0-pi_3%2B.tar.gz) | [8.3.0](https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Buster/GCC%208.3.0/Raspberry%20Pi%203A%2B%2C%203B%2B%2C%204/cross-gcc-8.3.0-pi_3%2B.tar.gz) | [10.2.0](https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Bullseye/GCC%2010.2.0/Raspberry%20Pi%203A%2B%2C%203B%2B%2C%204/cross-gcc-10.2.0-pi_3%2B.tar.gz) |
349349

350350
**Note:** You can also use the [latest cross-compiler binaries](https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/) instead. But they are not tested.
351351

README.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
9191

9292
* ☑️ *Latest [**GCC 10.3.0**](https://gcc.gnu.org/gcc-10/) toolchains available.*
9393
* ☑️ *Automated CI maintained GCC standalone ARM & ARM64 toolchains.*
94-
* ☑️ *Hardcoded paths free both Cross & Native **Raspbian Buster (Debian 10)** toolchains available.*
94+
* ☑️ *Hardcoded paths free both Cross & Native **Raspbian Bullseye (Debian 11)** toolchains available.*
9595
* ☑️ *Separate binaries for each Raspberry Pi variant (including latest Compute modules and Raspberry Pi 4).*
9696
* ☑️ *PIGZ-TAR Compressed Binaries available with maximum possible compression.*
9797
* ☑️ *Exclusive **ARM64|AARCH64** Binaries for Raspberry Pi 64-Bit kernel OS flavors.*
@@ -133,12 +133,16 @@ Following is the table for various CI generated OS targetted precompiled Toolcha
133133
| :---------- | :--------: | :-------: | :--------: | :------------------------: |
134134
| **Raspberry Pi GCC Cross-Compiler Toolchains (Stretch)** | any x64/x86 Linux machine | Stretch **32-bit OS** (Debian Version 9) only | Stable/Production | [6.3.0][cc-stretch-630], [9.4.0][cc-stretch-940], [10.3.0][cc-stretch-1030] |
135135
| **Raspberry Pi GCC Cross-Compiler Toolchains (Buster)** | any x64/x86 Linux machine | Buster **32-bit OS** (Debian Version 10) only | Stable/Production | [8.3.0][cc-buster-830], [9.4.0][cc-buster-940], [10.3.0][cc-buster-1030] |
136+
| **Raspberry Pi GCC Cross-Compiler Toolchains (Bullseye)** | any x64/x86 Linux machine | Bullseye **32-bit OS** (Debian Version 11) only | Stable/Production | [10.2.0][cc-bullseye-1020], [10.3.0][cc-bullseye-1030] |
136137
| **Raspberry Pi GCC Native-Compiler Toolchains (Stretch)** | Stretch **32-bit OS** (Debian Version 9) only | Stretch **32-bit OS** (Debian Version 9) only | Stable/Production | [9.4.0][nc-stretch-940], [10.3.0][nc-stretch-1030] |
137138
| **Raspberry Pi GCC Native-Compiler Toolchains (Buster)** | Buster **32-bit OS** (Debian Version 10) only | Buster **32-bit OS** (Debian Version 10) only | Stable/Production | [9.4.0][nc-buster-940], [10.3.0][nc-buster-1030] |
139+
| **Raspberry Pi GCC Native-Compiler Toolchains (Bullseye)** | Bullseye **32-bit OS** (Debian Version 11) only | Bullseye **32-bit OS** (Debian Version 11) only | Stable/Production | [10.3.0][nc-bullseye-1030] |
138140
| **Raspberry Pi GCC 64-Bit Cross-Compiler Toolchains (Stretch)** | any x64/x86 Linux machine | Stretch **64-bit OS** (Debian Version 9) only | Stable/Production | [6.3.0][cc-stretch64-630], [9.4.0][cc-stretch64-940], [10.3.0][cc-stretch64-1030]|
139141
| **Raspberry Pi GCC 64-Bit Cross-Compiler Toolchains (Buster)** | any x64/x86 Linux machine | Buster **64-bit OS** (Debian Version 10) only | Stable/Production | [8.3.0][cc-buster64-830], [9.4.0][cc-buster64-940], [10.3.0][cc-buster64-1030]|
142+
| **Raspberry Pi GCC 64-Bit Cross-Compiler Toolchains (Bullseye)** | any x64/x86 Linux machine | Bullseye **64-bit OS** (Debian Version 11) only | Stable/Production | [10.2.0][cc-bullseye64-1020], [10.3.0][cc-bullseye64-1030]|
140143
| **Raspberry Pi GCC 64-Bit Native-Compiler Toolchains (Stretch)** | Stretch **64-bit OS** (Debian Version 9) only | Stretch **64-bit OS** (Debian Version 9) only | Stable/Production | [9.4.0][nc-stretch64-940], [10.3.0][nc-stretch64-1030] |
141144
| **Raspberry Pi GCC 64-Bit Native-Compiler Toolchains (Buster)** | Buster **64-bit OS** (Debian Version 10) only | Buster **64-bit OS** (Debian Version 10) only | Stable/Production | [9.4.0][nc-buster64-940], [10.3.0][nc-buster64-1030] |
145+
| **Raspberry Pi GCC 64-Bit Native-Compiler Toolchains (Bullseye)** | Bullseye **64-bit OS** (Debian Version 11) only | Bullseye **64-bit OS** (Debian Version 11) only | Stable/Production | [10.3.0][nc-bullseye64-1030] |
142146
| **Exclusive/Experimental Toolchains** | x86/x86_64 Pi Desktop | x86/x86_64 Pi Desktop | Beta/Experimental | [10.3.0 (x86)][dc-x86-1030], [10.3.0 (x86_64)][dc-x86_64-1030] |
143147

144148
**Tip::bulb:** _To get the location of each Binary of this project on SourceForge, you can also check out [this Reference Tree](https://github.com/abhiTronix/raspberry-pi-cross-compilers/wiki/Toolchain-Binaries-Reference-Tree#toolchain-binaries-reference-tree)._
@@ -289,17 +293,23 @@ Thank you,
289293
[pigz]:https://zlib.net/pigz/
290294

291295
[cc-stretch-630]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Stretch/GCC%206.3.0/
292-
293296
[cc-stretch-940]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Stretch/GCC%209.4.0/
294297
[cc-stretch-1030]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Stretch/GCC%2010.3.0/
295-
[cc-buster-830]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Buster/GCC%208.3.0/
298+
[nc-stretch-940]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Native-Compiler%20Toolchains/Stretch/GCC%209.4.0/
299+
[nc-stretch-1030]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Native-Compiler%20Toolchains/Stretch/GCC%2010.3.0/
296300

301+
[cc-buster-830]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Buster/GCC%208.3.0/
297302
[cc-buster-940]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Buster/GCC%209.4.0/
298303
[cc-buster-1030]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Buster/GCC%2010.3.0/
299-
[nc-stretch-1030]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Native-Compiler%20Toolchains/Stretch/GCC%2010.3.0/
300304
[nc-buster-1030]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Native-Compiler%20Toolchains/Buster/GCC%2010.3.0/
301-
[nc-stretch-940]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Native-Compiler%20Toolchains/Stretch/GCC%209.4.0/
302305
[nc-buster-940]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Native-Compiler%20Toolchains/Buster/GCC%209.4.0/
306+
307+
308+
[cc-bullseye-830]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Bullseye/GCC%208.3.0/
309+
[cc-bullseye-1020]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Bullseye/GCC%2010.2.0/
310+
[cc-bullseye-1030]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Bullseye/GCC%2010.3.0/
311+
[nc-bullseye-1030]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Native-Compiler%20Toolchains/Bullseye/GCC%2010.3.0/
312+
303313
[dc-x86-1030]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Exclusive-Experimental%20Toolchains/Desktop/x86/GCC%2010.3.0/
304314
[dc-x86_64-1030]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Exclusive-Experimental%20Toolchains/Desktop/x86_64/GCC%2010.3.0/
305315

@@ -313,4 +323,9 @@ Thank you,
313323
[cc-buster64-1030]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Bonus%20Raspberry%20Pi%20GCC%2064-Bit%20Toolchains/Raspberry%20Pi%20GCC%2064-Bit%20Cross-Compiler%20Toolchains/Buster/GCC%2010.3.0/
314324
[cc-buster64-940]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Bonus%20Raspberry%20Pi%20GCC%2064-Bit%20Toolchains/Raspberry%20Pi%20GCC%2064-Bit%20Cross-Compiler%20Toolchains/Buster/GCC%209.4.0/
315325
[nc-buster64-1030]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Bonus%20Raspberry%20Pi%20GCC%2064-Bit%20Toolchains/Raspberry%20Pi%20GCC%2064-Bit%20Native-Compiler%20Toolchains/Buster/GCC%2010.3.0/
316-
[nc-buster64-940]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Bonus%20Raspberry%20Pi%20GCC%2064-Bit%20Toolchains/Raspberry%20Pi%20GCC%2064-Bit%20Native-Compiler%20Toolchains/Buster/GCC%209.4.0/
326+
[nc-buster64-940]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Bonus%20Raspberry%20Pi%20GCC%2064-Bit%20Toolchains/Raspberry%20Pi%20GCC%2064-Bit%20Native-Compiler%20Toolchains/Buster/GCC%209.4.0/
327+
328+
[cc-bullseye64-830]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Bonus%20Raspberry%20Pi%20GCC%2064-Bit%20Toolchains/Raspberry%20Pi%20GCC%2064-Bit%20Cross-Compiler%20Toolchains/Bullseye/GCC%208.3.0/
329+
[cc-bullseye64-1030]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Bonus%20Raspberry%20Pi%20GCC%2064-Bit%20Toolchains/Raspberry%20Pi%20GCC%2064-Bit%20Cross-Compiler%20Toolchains/Bullseye/GCC%2010.3.0/
330+
[cc-bullseye64-1020]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Bonus%20Raspberry%20Pi%20GCC%2064-Bit%20Toolchains/Raspberry%20Pi%20GCC%2064-Bit%20Cross-Compiler%20Toolchains/Bullseye/GCC%2010.2.0/
331+
[nc-bullseye64-1030]:https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Bonus%20Raspberry%20Pi%20GCC%2064-Bit%20Toolchains/Raspberry%20Pi%20GCC%2064-Bit%20Native-Compiler%20Toolchains/Bullseye/GCC%2010.3.0/

build-scripts/CI/CIBB_32b

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ helpfunction() {
3636
echo "Usage: $0 -g [GCC version] -r [Target Pi type] -o [Target Pi OS type]"
3737
echo -e "\t-g GCC base version?: (6.3.0|8.3.0)"
3838
echo -e "\t-r What's yours Raspberry Pi type?: (0-1|2-3|3+)"
39-
echo -e "\t-o What's yours Raspberry Pi OS type?: (stretch|buster)"
39+
echo -e "\t-o What's yours Raspberry Pi OS type?: (stretch|buster|bullseye)"
4040
echo ""
4141
echo ""
4242
exit 1 # Exit script after printing help
@@ -87,6 +87,9 @@ if [ "$RPIOS_TYPE" = "stretch" ]; then
8787
elif [ "$RPIOS_TYPE" = "buster" ]; then
8888
GLIBC_VERSION=2.28
8989
BINUTILS_VERSION=2.31.1
90+
elif [ "$RPIOS_TYPE" = "bullseye" ]; then
91+
GLIBC_VERSION=2.31
92+
BINUTILS_VERSION=2.35.2
9093
else
9194
echo "Invalid argument value: $RPIOS_TYPE"
9295
exit
@@ -101,6 +104,11 @@ if [ "$RPIOS_TYPE" = "buster" ] && [ "$GCC_VERSION" != "8.3.0" ]; then
101104
echo "Invalid GCC for buster: $GCC_VERSION!"
102105
exit
103106
fi
107+
# exit if not valid GCC
108+
if [ "$RPIOS_TYPE" = "bullseye" ] && [ "$GCC_VERSION" != "10.2.0" ]; then
109+
echo "Invalid GCC for bullseye: $GCC_VERSION!"
110+
exit
111+
fi
104112

105113
#collect build directory if not defined
106114
if [ "$BUILDDIR" = "" ]; then
@@ -121,9 +129,9 @@ TARGET=arm-linux-gnueabihf
121129
GDB_VERSION=10.2
122130

123131
#validate env variables
124-
if ! [[ "$GCC_VERSION" =~ ^(6.3.0|8.3.0)$ ]]; then exit 1; fi
125-
if ! [[ "$GLIBC_VERSION" =~ ^(2.24|2.28)$ ]]; then exit 1; fi
126-
if ! [[ "$BINUTILS_VERSION" =~ ^(2.28|2.31.1)$ ]]; then exit 1; fi
132+
if ! [[ "$GCC_VERSION" =~ ^(6.3.0|8.3.0|10.2.0)$ ]]; then exit 1; fi
133+
if ! [[ "$GLIBC_VERSION" =~ ^(2.24|2.28|2.31)$ ]]; then exit 1; fi
134+
if ! [[ "$BINUTILS_VERSION" =~ ^(2.28|2.31.1|2.35.2)$ ]]; then exit 1; fi
127135
if ! [[ "$FOLDER_VERSION" =~ ^(0|1|2)$ ]]; then exit 1; fi
128136
if ! [[ "$KERNEL" =~ ^(kernel|kernel7)$ ]]; then exit 1; fi
129137
if ! [[ "$ARCH" =~ ^(armv6|armv7-a|armv8-a)$ ]]; then exit 1; fi

build-scripts/CI/CIBB_64b

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ helpfunction() {
3535
echo ""
3636
echo "Usage: $0 -g [GCC version] -o [Target Pi OS type]"
3737
echo -e "\t-g GCC base version?: (6.3.0|8.3.0)"
38-
echo -e "\t-o What's yours Target Raspberry Pi OS type?: (stretch|buster)"
38+
echo -e "\t-o What's yours Target Raspberry Pi OS type?: (stretch|buster|bullseye)"
3939
echo ""
4040
echo ""
4141
exit 1 # Exits script after printing help
@@ -66,6 +66,9 @@ if [ "$RPIOS_TYPE" = "stretch" ]; then
6666
elif [ "$RPIOS_TYPE" = "buster" ]; then
6767
GLIBC_VERSION=2.28
6868
BINUTILS_VERSION=2.31.1
69+
elif [ "$RPIOS_TYPE" = "bullseye" ]; then
70+
GLIBC_VERSION=2.31
71+
BINUTILS_VERSION=2.35.2
6972
else
7073
echo "Invalid argument value: $RPIOS_TYPE"
7174
exit
@@ -80,6 +83,11 @@ if [ "$RPIOS_TYPE" = "buster" ] && [ "$GCC_VERSION" != "8.3.0" ]; then
8083
echo "Invalid GCC for buster: $GCC_VERSION!"
8184
exit
8285
fi
86+
# exit if not valid GCC
87+
if [ "$RPIOS_TYPE" = "bullseye" ] && [ "$GCC_VERSION" != "10.2.0" ]; then
88+
echo "Invalid GCC for bullseye: $GCC_VERSION!"
89+
exit
90+
fi
8391

8492
#collect build directory if not defined
8593
if [ "$BUILDDIR" = "" ]; then
@@ -103,9 +111,9 @@ TARGET=aarch64-linux-gnu
103111
GDB_VERSION=10.2
104112

105113
#validate env variables
106-
if ! [[ "$GCC_VERSION" =~ ^(6.3.0|8.3.0)$ ]]; then exit 1; fi
107-
if ! [[ "$GLIBC_VERSION" =~ ^(2.24|2.28)$ ]]; then exit 1; fi
108-
if ! [[ "$BINUTILS_VERSION" =~ ^(2.28|2.31.1)$ ]]; then exit 1; fi
114+
if ! [[ "$GCC_VERSION" =~ ^(6.3.0|8.3.0|10.2.0)$ ]]; then exit 1; fi
115+
if ! [[ "$GLIBC_VERSION" =~ ^(2.24|2.28|2.31)$ ]]; then exit 1; fi
116+
if ! [[ "$BINUTILS_VERSION" =~ ^(2.28|2.31.1|2.35.2)$ ]]; then exit 1; fi
109117
if [ "$KERNEL" != "kernel8" ]; then exit 1; fi
110118
if [ "$ARCH" != "armv8-a+fp+simd" ]; then exit 1; fi
111119
if [ "$FOLDER_VERSION" != "64" ]; then exit 1; fi

build-scripts/CI/CICTB_32b

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ helpfunction() {
3636
echo "Usage: $0 -g [GCC version] -r [Target Pi type] -o [Target Pi OS type]"
3737
echo -e "\t-g GCC version you want to compile?: (7.1.0|7.2.0|7.3.0|7.4.0|7.5.0|8.1.0|8.2.0|8.3.0|8.4.0|9.1.0|9.2.0|9.3.0|9.4.0|10.1.0|10.2.0|10.3.0)"
3838
echo -e "\t-r What's yours Target Raspberry Pi type?: (0-1|2-3|3+)"
39-
echo -e "\t-o What's yours Target Raspberry Pi OS type?: (stretch|buster)"
39+
echo -e "\t-o What's yours Target Raspberry Pi OS type?: (stretch|buster|bullseye)"
4040
echo ""
4141
echo ""
4242
exit 1 # Exit script after printing help
@@ -90,6 +90,13 @@ elif [ "$RPIOS_TYPE" = "buster" ]; then
9090
else
9191
GCCBASE_VERSION=8.3.0
9292
fi
93+
elif [ "$RPIOS_TYPE" = "bullseye" ]; then
94+
if echo ${GCC_VERSION%.*} "10.2" | awk '{exit ( $1 >= $2 )}'; then
95+
echo "$GCC_VERSION is not supported on bullseye!"
96+
exit 0
97+
else
98+
GCCBASE_VERSION=10.2.0
99+
fi
93100
else
94101
echo "Invalid argument value: $RPIOS_TYPE"
95102
exit 1
@@ -114,7 +121,7 @@ TARGET=arm-linux-gnueabihf
114121
GDB_VERSION=10.2
115122

116123
#validate env variables
117-
if ! [[ "$GCCBASE_VERSION" =~ ^(6.3.0|8.3.0)$ ]]; then exit 1; fi
124+
if ! [[ "$GCCBASE_VERSION" =~ ^(6.3.0|8.3.0|10.2.0)$ ]]; then exit 1; fi
118125
if ! [[ "$FOLDER_VERSION" =~ ^(0|1|2)$ ]]; then exit 1; fi
119126
if ! [[ "$ARCH" =~ ^(armv6|armv7-a|armv8-a)$ ]]; then exit 1; fi
120127
if ! [[ "$FPU" =~ ^(vfp|neon-vfpv4|neon-fp-armv8)$ ]]; then exit 1; fi
@@ -135,6 +142,18 @@ if [ "$RPIOS_TYPE" = "buster" ]; then
135142
echo "Missing RPI_TYPE parameter!"
136143
exit 1
137144
fi
145+
elif [ "$RPIOS_TYPE" = "bullseye" ]; then
146+
URL="$URL/Bullseye/GCC%20$GCCBASE_VERSION"
147+
if [ "$RPI_TYPE" = "0-1" ]; then
148+
URL="$URL/Raspberry%20Pi%201%2C%20Zero/"
149+
elif [ "$RPI_TYPE" = "2-3" ]; then
150+
URL="$URL/Raspberry%20Pi%202%2C%203/"
151+
elif [ "$RPI_TYPE" = "3+" ]; then
152+
URL="$URL/Raspberry%20Pi%203A%2B%2C%203B%2B%2C%204/"
153+
else
154+
echo "Missing RPI_TYPE parameter!"
155+
exit 1
156+
fi
138157
elif [ "$RPIOS_TYPE" = "stretch" ]; then
139158
URL="$URL/Stretch/GCC%20$GCCBASE_VERSION"
140159
if [ "$RPI_TYPE" = "0-1" ]; then

0 commit comments

Comments
 (0)