Set up a local cross-compilation environment for building Synology DSM kernel modules, specifically USB-to-serial modules (because Synology sucks, and removed these modules when they launched DSM 7, leaving a lot of people that ran things like Home Assistant or Zigbee2MQTT on their NAS in the cold).
I've always compiled these in an Ubuntu VM based on Synology's own toolchain, but for some reason, this was very prone to failure (a build would randomly fail about 90% of the time).
I moved everything to my main Ubuntu server to run locally and it's not based on Synology's toolchain anymore (only parts of it), and it seems to work much better now. I only tested with x86_64 platforms, ARM platforms will have to wait until tomorrow.
Synology DSM toolchain: https://github.com/SynologyOpenSource/pkgscripts-ng
DSM USB serial driver repository: https://github.com/robertklep/dsm7-usb-serial-drivers/
#homeautomation #homeassistant #zigbee2mqtt #z2m