File tree Expand file tree Collapse file tree 3 files changed +47
-0
lines changed Expand file tree Collapse file tree 3 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 113113 libffi
114114 ] ;
115115 } ;
116+ llvm_cheri = pkgs . mkShell {
117+ name = "llvm_cheri" ;
118+ packages = with lowrisc_pkgs ; [ llvm_cheri ] ;
119+ } ;
116120 } ;
117121 formatter = pkgs . alejandra ;
118122 } ) ;
Original file line number Diff line number Diff line change 2323 cheriot-sim = pkgs . callPackage ./cheriot-sim.nix { } ;
2424 cheriot-audit = pkgs . callPackage ./cheriot-audit.nix { } ;
2525
26+ # Cheri
27+ llvm_cheri = pkgs . callPackage ./llvm_cheri.nix { } ;
28+
2629 verilator_caliptra = pkgs . callPackage ./verilator_caliptra.nix { } ;
2730
2831 # IT packages
Original file line number Diff line number Diff line change 1+ # Copyright lowRISC contributors.
2+ #
3+ # SPDX-License-Identifier: MIT
4+ {
5+ fetchzip ,
6+ stdenv ,
7+ zlib ,
8+ zstd ,
9+ ncurses6 ,
10+ autoPatchelfHook ,
11+ } :
12+ stdenv . mkDerivation rec {
13+ name = "cheri-llvm" ;
14+ version = "17.0.1.r01" ;
15+ src = fetchzip {
16+ # We build the toolchain in another repository because derivations don't allow internert connections, which is required by cheribuild.
17+ url = "https://github.com/engdoreis/cheribuild/releases/download/v${ version } /cheri-std093-sdk.tar.gz" ;
18+ hash = "sha256-/6FGm1Ot9sFZ71FIThtLV2KFjhSfnc5w32OucCZmDfc=" ;
19+ } ;
20+
21+ dontConfigure = true ;
22+ dontBuild = true ;
23+
24+ buildInputs = [
25+ stdenv . cc . cc . lib
26+ ncurses6
27+ zlib
28+ zstd
29+ ] ;
30+ nativeBuildInputs = [ autoPatchelfHook ] ;
31+
32+ installPhase = ''
33+ mkdir -p $out
34+ cp -R ./cheri-std093-sdk/* $out
35+ '' ;
36+
37+ meta = {
38+ platforms = [ "x86_64-linux" ] ;
39+ } ;
40+ }
You can’t perform that action at this time.
0 commit comments