1 Star 0 Fork 0

Nuclei-Software / keystone-sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Build SDK and Install

Replace <install directory> with any path that you want SDK to be installed. If not specified, the install directory will be the same as the build directory. <install directory> MUST be different from the source path.

mkdir build
cd build
export KEYSTONE_SDK_DIR=<install_directory>
cmake ..
make
make install

To uninstall,

make uninstall

Ideally, you may need to add the following to your shell rcfile (e.g., .bashrc)

export KEYSTONE_SDK_DIR=<install directory>

Build Examples

In the CMake build directory, run the following:

make examples

This will compile example enclaves in examples directory. All the example enclave packages have suffix .ke.

Format Checking

All code should be formatted correctly before they are merged.

make format

We use clang-format and cpplint for checking format. clang-format auto-formats the code in src, include, tests, and examples directories. cpplint will check C++ format (based on Google C++ coding style) and print out warnings if there are ill-formatted files.

Run Unit Tests

The Keystone SDK uses GoogleTest as a framework to run various tests. The test framework source code is located under tests.

Before you can run the tests, you must install the GoogleTest libaries. There is a setup script under tests/scripts/setup_test.sh which installs the GoogleTest source code and builds the library.

The unit tests will be running on your host machine (not RISC-V QEMU).

In order to run the unit tests, do the following:

make check

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/Nuclei-Software/keystone-sdk.git
git@gitee.com:Nuclei-Software/keystone-sdk.git
Nuclei-Software
keystone-sdk
keystone-sdk
master

搜索帮助