-
Notifications
You must be signed in to change notification settings - Fork 17
Build Tutorial (DRAFT)
Han Dong edited this page Jun 29, 2020
·
2 revisions
git clone --recursive https://github.com/SESA/EbbRT.git
// check $HOME directory for cloned EbbRT/ 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
cd ../EbbRT
EBBRT_SYSROOT=$HOME/native_build/ebbrt make -j native-install
// check $EBBRT_SYSROOT/usr/lib/ for libEbbRT.a
mkdir ../hosted_build
PREFIX=$HOME/hosted_build/ make -j hosted-install
// check $PREFIX/lib for libEbbRT.a
cd apps/helloworld
EBBRT_SYSROOT=$HOME/native_build/ebbrt/ CMAKE_PREFIX_PATH=$HOME/hosted_build/ make -j
./Release/helloworld
or ./Debug/helloworld