Skip to content

Commit

Permalink
Support CMake SDK (#178)
Browse files Browse the repository at this point in the history
* Updated scripts and setup instructions for SDK build now that it is cmake
  • Loading branch information
dkohlbre committed May 13, 2020
1 parent 6d4c2fa commit e6c7ec1
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
7 changes: 6 additions & 1 deletion docs/source/Getting-Started/QEMU-Setup-Repository.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ Install the Keystone SDK and prepare Eyrie runtime source code.

::

make -C sdk
cd sdk
mkdir build
cd build
cmake .. -DOUTPUT_DIR=$(pwd)/../lib
make
make install

Initialize the runtime (i.e., Eyrie) source code.

Expand Down
8 changes: 7 additions & 1 deletion fast-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ git submodule update --init --recursive

# build tests in SDK
export KEYSTONE_SDK_DIR=$(pwd)/sdk
make -C sdk
cd sdk
mkdir build
cd build
cmake .. -DOUTPUT_DIR=$(pwd)/../lib
make
make install
cd ../..
./sdk/scripts/init.sh --runtime eyrie --force

echo "Keystone is fully setup! You can build everything and run the tests with 'make run-tests'"
8 changes: 7 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ make && make linux
cd ..

# build tests in SDK
make -C sdk
export KEYSTONE_SDK_DIR=$(pwd)/sdk
cd sdk
mkdir build
cd build
cmake .. -DOUTPUT_DIR=$(pwd)/../lib
make
make install
cd ../..
./sdk/scripts/init.sh --runtime eyrie --force

0 comments on commit e6c7ec1

Please sign in to comment.