Erlang-embedded is a project mainly written in Shell, it's free.
Embedded Erlang project
Please note that this documentation is not complete, we are working on finishing it.
When you have installed bitbake and openembedded you can build the package meta-toolchain to get a toolchain for that architecture.
Make sure to have a valid toolchain in your $PATH
, in the EmbErl.sh
script there
is a variable named $HOST
. The toolchain should have its binaries named
${HOST}-command
. Example for HOST=arm
: gcc should be arm-gcc
and be available
in your $PATH
.
We have used the toolchain that is built by openembedded when building our things.
./EmbErl.sh -<opts>
Available opts are:
-s Strip beam files and compile with the slim flag
-S Stip binaries with the strip-tool
-c Compile beams using the compress flag
-C Compress applications into zip's
-o <arg> Compile the virtual machine with the <arg> optimization flag
-H <arg> Compile the virtual machine for the host <arg>
-h Display help message
To use another Erlang version than the one that EmbErl.sh
uses as
default, change the VERSION
variable (eg `VERSION=R14B01 ./EmbErl.sh