Skip to content

Commit 0609a01

Browse files
committed
[Upd] arm compilation script
1 parent 820a261 commit 0609a01

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ export SL_PLACE_BUS_STOPS=<stop_name>,...
4343
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)
4444

4545

46+
## Arm compilation
47+
This project is intended to run on a raspberryPi. The script `arm_comp.sh` serve to compile and build a `.deb` package for raspbian. Only ubuntu is supported as of now.
48+
4649
# APIs
4750
* [openweathermap](https://home.openweathermap.org/) For weather information
4851
* [openexchangerate](https://openexchangerates.org/) For currency conversion

arm_comp.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1+
#!/bin/bash
2+
13
echo 'Installing ARM cross-compilers...'
24
rustup target add aarch64-unknown-linux-gnu
35
sudo apt install gcc-aarch64-linux-gnu -y
46
echo 'Done'
5-
echo 'Open or create the file <project-root>/.cargo/config.toml and add the following configurations accordingly:'
7+
echo 'Open or create the file <project-root>/.cargo/config.toml and add the following configurations if needed:'
68
echo '--------------------------------------'
79
echo '[target.armv7-unknown-linux-gnueabihf]'
810
echo 'linker = "arm-linux-gnueabihf-gcc" '
911
echo ' '
1012
echo '[target.aarch64-unknown-linux-gnu] '
1113
echo 'linker = "aarch64-linux-gnu-gcc" '
1214
echo '--------------------------------------'
13-
echo 'Press Enter to continue'
14-
read
15+
read -n 1 -s -r -p "Press any key to continue"
1516
echo 'Installing ARM64 cross-compilers...'
1617
sudo dpkg --add-architecture arm64
1718
echo 'You need to add the following line to /etc/apt/sources.list:'
@@ -27,8 +28,7 @@ echo 'deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports jammy-security
2728
echo 'deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports jammy-security universe '
2829
echo 'deb [arch=armhf,arm64] http://ports.ubuntu.com/ubuntu-ports jammy-security multiverse '
2930
echo '---------------------------------------------------------------------------------------------------------------'
30-
echo 'Press Enter to continue'
31-
read
31+
read -n 1 -s -r -p "Press any key to continue"
3232
echo 'Updating apt...'
3333
sudo apt-get update && sudo apt-get upgrade -y
3434
echo 'Installing required webkit dependencies...'

0 commit comments

Comments
 (0)