Closed mwarning closed 4 years ago
We can use a mandatory type field to fill out the button text. But then we need a small heuristic to assign a help text for the different sysupgrade, factory, etc. image variants.
These are the possible buttons texts now:
cfe, cfe-16M, cfe-4M, cfe-8M, cfe-AU, cfe-EU, cfe-bc221, chk, combined, dgr2-dgr3-factory, eva, eva-filesystem, eva-kernel, factory, factory-DHP-EU, factory-DHP2-JP, factory-NA, factory-br, factory-eu, factory-na, factory-us, factory_30, factory_35, fdt, firmware, fullimage, kernel, kernel1, nand, nand-factory, nand-sysupgrade, noheader, omnia-medkit-openwrt-mvebu-cortexa9-cznic_turris-omnia-initramfs, openwrt-mvebu-cortexa9-cznic_turris-omnia-sysupgrade, root, rootfs, rootfs0, sdcard, sysupgrade, sysupgrade-4M-Kernel, sysupgrade-emmc, sysupgrade-na, tftp, tftp-recovery, trx, ubinized, zImage
Well, this delegates type issues to be fixed in OpenWrt or in the Python script to generate JSON. I think overall this is the correct direction. But some buttons will be weird until fixed somewhere...
use image type field if available