adapt firmware to separate posix from base files