Erlang port of firmware builder