Skip to content

Commit

Permalink
[BUILDING] make it clear for the user to set up path
Browse files Browse the repository at this point in the history
  • Loading branch information
KNG10 committed Jan 21, 2024
1 parent 21fd804 commit 4e868c9
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -366,16 +366,22 @@ Since CHERI support is available only for a few platforms, verifying CHERI-C
programs that use header files from the C standard library will require a setup
of a C standard library for one of these platforms.

To obtain and install a CHERI sysroot, the
[cheribuild](https://github.com/CTSRD-CHERI/cheribuild)
tool is the recommended way:
```
cheribuild.py cheribsd-riscv64-purecap disk-image-riscv64-purecap -d
```

Once the build completed, you'll find `cheri` directory in your HOME directory.

CHERI-enabled ESBMC defaults to the platform mips64-unknown-freebsd and
expects the corresponding sysroot, the default of which can be configured by
passing the CMake flags
```
-DESBMC_CHERI_HYBRID_SYSROOT=<path> -DESBMC_CHERI_PURECAP_SYSROOT=<path>
```

To obtain and install a CHERI sysroot, the
[cheribuild](https://github.com/CTSRD-CHERI/cheribuild)
tool is the recommended way:
```
cheribuild.py cheribsd-mips64-hybrid disk-image-mips64-hybrid
```
e.g. the 'path' should point to `$HOME/cheri/output/rootfs-riscv64-purecap`. As for the `rootfs-riscv64-purecap` part, you may want to use a diffrent directory if you used a different variant in the `cheribuild.py` command above.


0 comments on commit 4e868c9

Please sign in to comment.