Skip to content

Commit 5cd2a2c

Browse files
committed
Updated docs
1 parent 134a1b6 commit 5cd2a2c

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

build-scripts/README.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,19 @@ You can run these bash scripts to manually compile any GCC toolchains version th
5959

6060
1. **Update environment & Install prerequisites:**
6161

62-
```sh
63-
# update your system
64-
sudo apt update && sudo apt dist-upgrade
62+
```shellsession
63+
# update your system
64+
sudo apt update && sudo apt dist-upgrade
6565

66-
# install prerequisites
67-
sudo apt-get -y install gcc g++ gperf flex texinfo gawk gfortran texinfo bison \
66+
# install prerequisites
67+
sudo apt-get -y install gcc g++ gperf flex texinfo gawk gfortran texinfo bison \
6868
build-essential openssl unzip wget git pigz \
6969
libncurses-dev autoconf automake tar figlet
70-
```
70+
```
7171

7272
**Optional:** Install `ccache` for speeding up build time:
7373
74-
```sh
74+
```shellsession
7575
# Install package
7676
sudo apt install -y ccache
7777

@@ -92,7 +92,7 @@ You can run these bash scripts to manually compile any GCC toolchains version th
9292

9393
2. **Clone this repository:**
9494

95-
```bash
95+
```shellsession
9696
git clone https://github.com/abhiTronix/raspberry-pi-cross-compilers.git
9797
cd raspberry-pi-cross-compilers/build-scripts
9898

@@ -105,7 +105,7 @@ You can run these bash scripts to manually compile any GCC toolchains version th
105105

106106
* **Usage parameters:** This script requires a few command-line parameters, just run `./RTBuilder_32b` on terminal:
107107

108-
```bash
108+
```shellsession
109109
Usage: ./RTBuilder_32b -g [GCC version] -r [Target Pi type] -o [Target Pi OS type]
110110
-g GCC version you want to compile?: (7.1.0|7.2.0|7.3.0|7.4.0|7.5.0|8.1.0|8.2.0|8.3.0|9.1.0|9.2.0)
111111
-r What's yours Raspberry Pi type?: (0-1|2-3|3+)
@@ -119,7 +119,7 @@ You can run these bash scripts to manually compile any GCC toolchains version th
119119

120120
***:warning: You must NOT compile GCC version less than GCC 8.3.0 for Buster OS, otherwise script will automatically switch to build for Stretch OS.***
121121

122-
```bash
122+
```shellsession
123123
chmod +x RTBuilder_32b
124124
./RTBuilder_32b -g "9.2.0" -r "2-3" -o "buster"
125125

@@ -134,7 +134,7 @@ You can run these bash scripts to manually compile any GCC toolchains version th
134134

135135
* **Usage parameters:** This script requires few command-line parameters, just run `./RTBuilder_64b`:
136136
137-
```bash
137+
```shellsession
138138
Usage: ./RTBuilder_64b -g [GCC version] -t [OS Type]
139139
-g GCC version you want to compile?: (7.1.0|7.2.0|7.3.0|7.4.0|7.5.0|8.1.0|8.2.0|8.3.0|9.1.0|9.2.0)
140140
-t What's yours Raspberry Pi OS type?: (1|2) [default:1]
@@ -144,7 +144,7 @@ You can run these bash scripts to manually compile any GCC toolchains version th
144144

145145
* **Usage:** Just pass _targeted [GCC version](#supported-gcc-versions)_ to `-g` parameter of this script:
146146

147-
```bash
147+
```shellsession
148148
chmod +x RTBuilder_64b
149149
./RTBuilder_64b -g "9.2.0"
150150

@@ -163,14 +163,14 @@ These scripts provide a few additional environment variables to tweak Toolchain
163163

164164
***:warning: Make sure assigned directory has read/write permission.***
165165

166-
```bash
166+
```shellsession
167167
BUILDDIR="/home/foo/foo1"
168168
```
169169
* `LANGUAGES`: To change supported programming languages for your Toolchains. Its default value is `c,c++,fortran`. Its usage is as follows:
170170

171171
***:warning: Make sure to install additional dependency manually according to your assigned supported languages.***
172172

173-
```bash
173+
```shellsession
174174
LANGUAGES="c,go,brig,d"
175175
```
176176

0 commit comments

Comments
 (0)