8
8
# cross-compiler-ubuntu1804-armv7-gcc-6
9
9
# cross-compiler-ubuntu1804-armv7-gcc-8
10
10
# cross-compiler-rhel8-armv7-gcc-8-glibc-2.28
11
+ # cross-compiler-rhel8-armv7-gcc-10-glibc-2.28
11
12
12
13
rpi_newer_tools_base=" /opt/raspberrypi/rpi-newer-crosstools/"
13
14
base_4_9_4=" ${rpi_newer_tools_base} x64-gcc-4.9.4-binutils-2.28/arm-rpi-linux-gnueabihf/bin/arm-rpi-linux-gnueabihf-"
14
15
base_6=" ${rpi_newer_tools_base} x64-gcc-6.5.0/arm-rpi-linux-gnueabihf/bin/arm-rpi-linux-gnueabihf-"
15
16
base_8=" ${rpi_newer_tools_base} x64-gcc-8.3.0/arm-rpi-linux-gnueabihf/bin/arm-rpi-linux-gnueabihf-"
16
17
base_8_glibc_2_28=" ${rpi_newer_tools_base} x64-gcc-8.3.0-glibc-2.28/arm-rpi-linux-gnueabihf/bin/arm-rpi-linux-gnueabihf-"
18
+ base_10_glibc_2_28=" ${rpi_newer_tools_base} x64-gcc-10.3.0-glibc-2.28/arm-rpi-linux-gnueabihf/bin/arm-rpi-linux-gnueabihf-"
17
19
18
20
flags_armv6=" -march=armv6zk"
19
21
flags_armv7=" -march=armv7-a"
@@ -22,15 +24,15 @@ function run {
22
24
local label=" $1 "
23
25
24
26
export arm_type=$( echo $label | sed -E ' s/^cross-compiler-(ubuntu1[68]04|rhel8)-(armv[67])-gcc-.*$/\2/' )
25
- export gcc_version=$( echo $label | sed -E ' s/^cross-compiler-(ubuntu1[68]04|rhel8)-armv[67]-gcc-(4\.9\.4|6|8)/\2/' )
27
+ export gcc_version=$( echo $label | sed -E ' s/^cross-compiler-(ubuntu1[68]04|rhel8)-armv[67]-gcc-(4\.9\.4|6|8|10 )/\2/' )
26
28
export git_branch=" cc-${arm_type} "
27
29
export host_os=$( echo $label | sed -E ' s/^cross-compiler-(ubuntu1[68]04|rhel8)-(armv[67])-gcc-.*$/\1/' )
28
30
29
31
if [[ ! " $arm_type " =~ ^armv[67]$ ]]; then
30
32
echo " Could not determine ARM type from '$label '"
31
33
exit 1
32
34
fi
33
- if [[ ! " $gcc_version " =~ ^(4\. 9\. 4| 6| 8| 8-glibc-2.28)$ ]]; then
35
+ if [[ ! " $gcc_version " =~ ^(4\. 9\. 4| 6| 8| 8-glibc-2.28| 10-glibc-2.28 )$ ]]; then
34
36
echo " Could not determine ARM type from '$label '"
35
37
exit 1
36
38
fi
@@ -52,7 +54,7 @@ function run {
52
54
# Additional gcc versions are installed via gcc-toolset-<n> packages.
53
55
# No such package exists for the default gcc version (8 on RHEL 8).
54
56
if [ " ${current_gcc_version} " != " ${gcc_host_version} " ]; then
55
- if ! . /opt/gcc-toolset-${gcc_host_version} /enable; then
57
+ if ! . /opt/rh/ gcc-toolset-${gcc_host_version} /enable; then
56
58
echo " Host gcc version mismatch (wanted ${gcc_host_version} but got ${current_gcc_version} )."
57
59
exit 1
58
60
fi
0 commit comments