Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit 1e38e98

Browse files
authored
fix to support different ubuntu release codenames (#157)
1 parent 8b5ad18 commit 1e38e98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/get-toolchain.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ sudo apt-get install apt-transport-https ca-certificates gnupg software-properti
88

99
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add -
1010

11-
sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'
11+
CODENAME=$(lsb_release -c | cut -f2 -d':' | sed 's/\t//')
12+
sudo apt-add-repository "deb https://apt.kitware.com/ubuntu/ $CODENAME main"
1213

1314
sudo apt-get update
1415
sudo apt-get install gcc-arm-none-eabi ninja-build cmake

0 commit comments

Comments
 (0)