Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 989 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 989 Bytes

EbbRT-node-app

EbbRT-baremetal based node.js application

Requirements

  • (Optional) Set the EBBRT_SRCDIR environment variable to point to EbbRT source directory: export EBBRT_SRCDIR=~/EbbRT
  • Build and install EbbRT native toolchain
  • Build and install EbbRT hosted library
  • Build and install EbbRT filesystem library
  • Build and install EbRRT cmdline library

Build

Set the EBBRT_SYSROOT environment variable to point to EbbRT native toolchain, assuming it was installed at following location:

export EBBRT_SYSROOT=~/sysroot/native

Set the CMAKE_PREFIX_PATH environment variable to point to EbbRT hosted library, assuming it was installed at following location:

export CMAKE_PREFIX_PATH=~/sysroot/hosted

To build native and hosted node.js application:

make -j all

To run (hello world example):

./build/node ./scripts/hello_world.js