build: add helpers for generating QSDK sysupgrade compatible images