Building BEAM Tools
The beamtools user guide has more details about how to setup and usage modes.
This section is focused on how to build beamtools using meta-erlang.
beamtools-tarball recipe
The first step is to define which Erlang and Elixir versions the beamtools will use. This is done configuring the following variables in the file conf/local.conf or in the distro configuration file:
PREFERRED_VERSION_erlang = "24.1.7"
PREFERRED_VERSION_erlang-native = "24.1.7"
PREFERRED_VERSION_nativesdk-erlang = "24.1.7"
PREFERRED_VERSION_elixir = "1.12.3"
PREFERRED_VERSION_elixir-native = "1.12.3"
PREFERRED_VERSION_nativesdk-elixir = "1.12.3"
Then, make sure opengl feature is configured. By defaul beamtools enables wx Erlang application:
# opengl beamtools
DISTRO_FEATURES:append = " opengl"
DISTRO_FEATURES_NATIVESDK:append = " opengl"
As an additional step (and optional), if you want to enable support for odbc and SCTP sockets, the following configuration is needed:
PACKAGECONFIG:append:pn-nativesdk-erlang = " odbc"
PACKAGECONFIG:append:pn-nativesdk-erlang = " sctp"
After that, the next step is to call bitbake to build the beamtools tarball:
bitbake beamtools-tarball
Once the build has finished, the results can be found at tmp/deploy/sdk folder. You can copy it to the development machine. The installation is done executing the .sh script, like that:
sh x86_64-beamtools-nativesdk-standalone-3.4.1-erlang-24.1.7-elixir-1.12.3.sh