Skip to content

Build Tutorial (DRAFT)

Han Dong edited this page Jun 29, 2020 · 2 revisions

1. clone EbbRT source into local EbbRT directory

git clone --recursive https://github.com/SESA/EbbRT.git

// check $HOME directory for cloned EbbRT/ directory

2. build EbbRT GNU toolchain into user-specified directory

mkdir native_build
cd native_build
make -j -f ../EbbRT/toolchain/Makefile

// check $HOME/native_build directory for build/, deps/, ebbrt/, and src/ directories

3. build EbbRT backend/native library using previously build toolchain

cd ../EbbRT
EBBRT_SYSROOT=$HOME/native_build/ebbrt make -j native-install

// check $EBBRT_SYSROOT/usr/lib/ for libEbbRT.a

4. build EbbRT frontend/hosted library

mkdir ../hosted_build
PREFIX=$HOME/hosted_build/ make -j hosted-install

// check $PREFIX/lib for libEbbRT.a

5. build and deploy helloworld app

cd apps/helloworld
EBBRT_SYSROOT=$HOME/native_build/ebbrt/ CMAKE_PREFIX_PATH=$HOME/hosted_build/ make -j
./Release/helloworld or ./Debug/helloworld