Coder Social home page Coder Social logo

aakahlow / keystone-sdk-back Goto Github PK

View Code? Open in Web Editor NEW

This project forked from keystone-enclave/keystone-sdk

0.0 0.0 0.0 602 KB

SDK for Keystone Enclave - ABI/SBI libraries and sample apps

License: Other

Makefile 0.44% C 71.72% C++ 23.93% Assembly 0.05% Shell 0.65% CMake 3.22%

keystone-sdk-back's Introduction

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

keystone-sdk-back's People

Contributors

dayeol avatar khoslaventures avatar cathylu10 avatar dkohlbre avatar khanghua1505 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.