mirror of
https://github.com/openhwgroup/cve2.git
synced 2025-04-24 14:09:08 -04:00
sw-led: do not hardcode CC in makefile
This commit is contained in:
parent
43752a6c19
commit
07f288a961
2 changed files with 3 additions and 2 deletions
|
@ -21,8 +21,9 @@ First the software must be built. Go into `examples/sw/led` and call:
|
|||
make CC=/path/to/RISC-V-compiler
|
||||
```
|
||||
|
||||
The setting of `CC` is only required if `riscv32-unknown-elf-gcc` is not available through the `PATH` environment variable.
|
||||
The path to the RV32 compiler `/path/to/RISC-V-compiler` depends on the environment.
|
||||
For example, it can be `riscv32-unknown-elf-gcc` if the binary is available through the `PATH` environment or `/opt/riscv/bin/riscv-none-embed-gcc` if a specific path is used.
|
||||
For example, it can be for example `/opt/riscv/bin/riscv-none-embed-gcc` if the whole path is required or simply the name of the executable if it is available through the `PATH` environment variable.
|
||||
|
||||
This should produce a `led.vmem` file which is used in the synthesises to update the SRAM storage.
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ ARCH = rv32imc
|
|||
# ARCH = rv32im # to disable compressed instructions
|
||||
SRCS = $(PROGRAM).c
|
||||
|
||||
CC = /tools/riscv/bin/riscv32-unknown-elf-gcc
|
||||
CC = riscv32-unknown-elf-gcc
|
||||
|
||||
OBJCOPY ?= $(subst gcc,objcopy,$(wordlist 1,1,$(CC)))
|
||||
OBJDUMP ?= $(subst gcc,objdump,$(wordlist 1,1,$(CC)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue