Skip to content
Changjae(Jay) Kim edited this page Nov 3, 2024 · 19 revisions

Build

Currently only Linux (Ubuntu) and macOS are possible for build.

Prerequisite

Setup repo

# clone repo
$ git clone https://github.com/kaluma-project/kaluma.git
$ cd kaluma

# init & update git submodules
$ git submodule update --init --recursive

# install npm modules
$ npm install

If you try to build rp2 target's pico board, do below:

# init & update git submodules for pico-sdk and others
$ git submodule update --init --recursive

Build

Before to build, let's check all are installed properly:

$ arm-none-eabi-gcc --version # check gcc arm
$ python --version             # check python  
$ cmake --version              # check cmake
$ node --version               # check node.js

Build using a build.js script (all arguments are optional):

$ node build --target=<TARGET> --board=<BOARD> --modules=<MODULES>
# ex) node build (rp2-pico is default)
# ex) node build --target=rp2 --board=pico --modules="events;gpio;i2c;...;startup"

Alternatively use CMAKE:

$ mkdir build # if not exist
$ cd build
$ cmake ..
# or, you can specify parameters
# $ cmake .. -DTARGET=rp2 -DBOARD=pico -DMODULES=events;gpio;...;startup
$ make

You can find binary files (.uf2 or .bin) in /build folder.

To clean all builds:

$ node build --clean
Clone this wiki locally