-
Notifications
You must be signed in to change notification settings - Fork 18k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Maheedhar Korimi
committed
Nov 28, 2024
1 parent
2a3dc4b
commit e63a9bb
Showing
5 changed files
with
66 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
VER=15:10.3-2021.10-9 | ||
URL=https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.10/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 | ||
echo "Creating gcc-arm-none-eabi debian package version $VER" | ||
|
||
echo "Entering temporary directory..." | ||
cd /tmp | ||
|
||
echo "Downloading..." | ||
curl -fSL -A "Mozilla/4.0" -o gcc-arm-none-eabi.tar "$URL" | ||
|
||
echo "Extracting..." | ||
tar -xf gcc-arm-none-eabi.tar | ||
rm gcc-arm-none-eabi.tar | ||
|
||
echo "Generating debian package..." | ||
mkdir gcc-arm-none-eabi | ||
mkdir gcc-arm-none-eabi/DEBIAN | ||
mkdir gcc-arm-none-eabi/usr | ||
echo "Package: gcc-arm-none-eabi" > gcc-arm-none-eabi/DEBIAN/control | ||
echo "Version: $VER" >> gcc-arm-none-eabi/DEBIAN/control | ||
echo "Architecture: amd64" >> gcc-arm-none-eabi/DEBIAN/control | ||
echo "Maintainer: maintainer" >> gcc-arm-none-eabi/DEBIAN/control | ||
echo "Description: Arm Embedded toolchain" >> gcc-arm-none-eabi/DEBIAN/control | ||
mv gcc-arm-none-eabi-*/* gcc-arm-none-eabi/usr/ | ||
dpkg-deb --build --root-owner-group gcc-arm-none-eabi | ||
|
||
echo "Installing..." | ||
sudo apt install ./gcc-arm-none-eabi.deb -y --allow-downgrades | ||
|
||
echo "Removing temporary files..." | ||
rm -r gcc-arm-none-eabi* | ||
|
||
echo "Done." |
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
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