This repository was archived by the owner on Mar 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +14
-13
lines changed Expand file tree Collapse file tree 3 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 9
9
name : Git Clone
10
10
command : |
11
11
git clone --recursive --jobs 16 --quiet https://github.com/riscv/riscv-gnu-toolchain
12
+ no_output_timeout : 20m
12
13
- run :
13
14
name : Configure
14
15
command : |
15
16
cd riscv-gnu-toolchain
16
- ./configure --prefix=/opt/riscv-gcc
17
+ ./configure --prefix=/opt/modm- riscv-gcc --enable-multilib
17
18
- run :
18
19
name : Build
19
20
command : |
22
23
- run :
23
24
name : Compiling test files
24
25
command : |
25
- /opt/riscv-gcc/bin/riscv64-unknown-elf-g++ --version
26
+ /opt/modm- riscv-gcc/bin/riscv64-unknown-elf-g++ --version
26
27
echo "int main() { return 0;}" > main1.cpp
27
- /opt/riscv-gcc/bin/riscv64-unknown-elf-g++ main1.cpp
28
+ /opt/modm- riscv-gcc/bin/riscv64-unknown-elf-g++ main1.cpp
28
29
# - run:
29
30
# name: Fake toolchain
30
31
# command: |
@@ -34,14 +35,14 @@ jobs:
34
35
name : Create Tarball
35
36
command : |
36
37
mkdir -p workspace
37
- tar cjf workspace/riscv-gcc.tar.bz2 -C /opt riscv-gcc
38
+ tar cjf workspace/modm- riscv-gcc.tar.bz2 -C /opt modm- riscv-gcc
38
39
- store_artifacts :
39
- path : workspace/riscv-gcc.tar.bz2
40
- destination : riscv-gcc.tar.bz2
40
+ path : workspace/modm- riscv-gcc.tar.bz2
41
+ destination : modm- riscv-gcc.tar.bz2
41
42
- persist_to_workspace :
42
43
root : workspace
43
44
paths :
44
- - riscv-gcc.tar.bz2
45
+ - modm- riscv-gcc.tar.bz2
45
46
46
47
deploy :
47
48
docker :
54
55
command : go get github.com/tcnksm/ghr
55
56
- run :
56
57
name : Deploy
57
- command : ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME $CIRCLE_TAG workspace/riscv-gcc.tar.bz2
58
+ command : ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME $CIRCLE_TAG workspace/modm- riscv-gcc.tar.bz2
58
59
59
60
workflows :
60
61
version : 2
Original file line number Diff line number Diff line change 4
4
5
5
## Installation
6
6
7
- Download the latest ` riscv-gcc.tar.bz2 ` from [ Releases] ( https://github.com/modm-ext/docker-riscv-gcc/releases )
7
+ Download the latest ` modm- riscv-gcc.tar.bz2` from [ Releases] ( https://github.com/modm-ext/docker-riscv-gcc/releases )
8
8
and unpack it to ` /opt ` :
9
9
10
10
``` sh
11
- tar xf riscv-gcc.tar.bz2 --directory /opt
11
+ tar xf modm- riscv-gcc.tar.bz2 --directory /opt
12
12
```
13
13
14
14
Add the ` bin/ ` directorie(s?) to your ` $PATH ` ,
15
15
e.g. by adding the following line to your ` ~/.bashrc ` file:
16
16
17
17
``` sh
18
- export PATH=" /opt/riscv-gcc/bin:$PATH "
18
+ export PATH=" /opt/modm- riscv-gcc/bin:$PATH "
19
19
```
20
20
21
21
## Building locally with Docker
@@ -47,7 +47,7 @@ cd docker-riscv-gcc
47
47
time ./build.sh
48
48
```
49
49
50
- The toolchain will be in ` /opt/riscv-gcc ` .
50
+ The toolchain will be in ` /opt/modm- riscv-gcc ` .
51
51
52
52
## Building in CircleCI
53
53
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ git clone --recursive https://github.com/riscv/riscv-gnu-toolchain
5
5
cd riscv-gnu-toolchain
6
6
7
7
# Configure
8
- ./configure --prefix=/opt/riscv-gcc
8
+ ./configure --prefix=/opt/modm- riscv-gcc --enable-multilib
9
9
10
10
# Build
11
11
make -j4
You can’t perform that action at this time.
0 commit comments