arm_none_eabi.sh
compilateur install for linux 5.X kernel
This commit is contained in:
parent
f838fa66c4
commit
f42519c904
35
arm_none_eabi.sh
Normal file
35
arm_none_eabi.sh
Normal file
|
@ -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."
|
Loading…
Reference in New Issue
Block a user