mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-10-01 01:45:38 -04:00
Build with zmmul extension (require clang 15)
Signed-off-by: Daniel Lublin <daniel@lublin.se>
This commit is contained in:
parent
367fbec035
commit
f87e12d1bb
@ -61,11 +61,11 @@ You can read
|
|||||||
[more](https://www.sifive.com/blog/all-aboard-part-1-compiler-args)
|
[more](https://www.sifive.com/blog/all-aboard-part-1-compiler-args)
|
||||||
about it.
|
about it.
|
||||||
|
|
||||||
The project uses the LLVM/Clang suite, where version 14 is the latest
|
The project uses the LLVM/Clang suite and version 15 or later is
|
||||||
stable (as of writing). Usually the LLVM/Clang packages that are part
|
required. As of writing Ubuntu 22.10 has version 15 packaged. You may
|
||||||
of your distro will work, if not, there are installations instructions
|
be able to get it installed on older Ubuntu and Debian using the
|
||||||
for "Install (stable branch)" at https://apt.llvm.org/ for Debian and
|
instructions on https://apt.llvm.org/ . There are also binary releases
|
||||||
Ubuntu.
|
here: https://github.com/llvm/llvm-project/releases
|
||||||
|
|
||||||
References:
|
References:
|
||||||
* https://github.com/YosysHQ/picorv32
|
* https://github.com/YosysHQ/picorv32
|
||||||
|
@ -33,12 +33,12 @@ OBJCOPY ?= llvm-objcopy
|
|||||||
|
|
||||||
CC = clang
|
CC = clang
|
||||||
|
|
||||||
CFLAGS = -target riscv32-unknown-none-elf -march=rv32imc -mabi=ilp32 \
|
CFLAGS = -target riscv32-unknown-none-elf -march=rv32iczmmul -mabi=ilp32 \
|
||||||
-static -std=gnu99 -Os -ffast-math -fno-common -fno-builtin-printf \
|
-static -std=gnu99 -Os -ffast-math -fno-common -fno-builtin-printf \
|
||||||
-fno-builtin-putchar -nostdlib -mno-relax -Wall -flto -DNOCONSOLE
|
-fno-builtin-putchar -nostdlib -mno-relax -Wall -flto -DNOCONSOLE
|
||||||
|
|
||||||
AS = clang
|
AS = clang
|
||||||
ASFLAGS = -target riscv32-unknown-none-elf -march=rv32imc -mabi=ilp32 -mno-relax
|
ASFLAGS = -target riscv32-unknown-none-elf -march=rv32iczmmul -mabi=ilp32 -mno-relax
|
||||||
|
|
||||||
ICE40_SIM_CELLS = $(shell yosys-config --datdir/ice40/cells_sim.v)
|
ICE40_SIM_CELLS = $(shell yosys-config --datdir/ice40/cells_sim.v)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user