TTN multi protocol packet forwarder for MatchX Gatway - how to?

I found @kersing 's multiprotocol packet forwarder on github , supporting the new TTN gateway connector protocol.

How could i build this code for the MatchX MX1701 Gateway?
The MatchX Gateway is running the standard Semtech packet forwarder and HAL (4.0.1 / 5.0.1), using this platform:

BusyBox v1.23.2 (2018-05-23 13:46:57 CEST) built-in shell (ash)
Linux MXXXXXX 3.18.29 #21 Thu Jun 21 12:22:16 CEST 2018 mips GNU/Linux
OpenWRT CHAOS CALMER (Chaos Calmer, r49363)

To build for several platforms I use a cross compiler on my regular Linux box. I’ve used it for MultiTech, Lorank8, Raspberry Pi (compiles in 20 seconds in stead of 5 minutes) and Kerlink.
Keep in mind you need to build dependencies as well. Take a look at the build-rpi.sh for an example build script.