mwarning / openwrt-firmware-selector

OpenWrt firmware selector. With custom image builder support.
https://mwarning.github.io/openwrt-firmware-selector/www/
Creative Commons Zero v1.0 Universal
39 stars 22 forks source link

use image type field if available #13

Closed mwarning closed 4 years ago

mwarning commented 4 years ago

use image type field if available

mwarning commented 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.

mwarning commented 4 years ago

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

mwarning commented 4 years ago

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...