* [FIRSTBOOT] refactor code:
-auto-detect all possible variants in firstboot
- DRY script code
- add $RESIZE_COMMENCED , $BITTBOY_CONFIG , $MIYOO_CONFIGvariable
- add debug log before any shutdown
- don't `export` env var if not needed
- move and use $DETECTED auto_ID variants on II Test_Block
- cleanup + add more descriptions
- add Test_Flip prompt for double check on Test Video (only if enduser selected "Flipped!" at first test)
- remove useless SWAP & MAIN part. mount
- add safety read-only for /boot before shutdown
* [BOARD] add gmenu2x inputs inputs with `manifest`
- update genimage config with `input_bittboy.conf` and `input_miyoo.conf`
* [README] Add flashing procedure schematic (made in draw.io)
* refactor firstboot -> Flashing procedure
displays msgbox at firsts launch:
- "Can you see this msg?" (to test readID correctness)
- "Select your device:" (to choose manually proper module parameters)
- "Test Video" & "Test_Keyboard" dialog
- "Test_Image" invertion + xyc/m3
- "Your Device" dialog for all FORCE_VARIANT
- "Test_Video'2" & "Test_Variant"
- "Does this device match yours?" msg before License
- add temp "st7789s" console variant
- load proper firsboot menu from uEnv read
- Perform Tests only for $DETECTED_VERSION
* add $device_ID array from console.cfg (see if manually selected device type, matches uboot choices)
* move at end RESIZE script in firstboot
* only reboot after firstboot if console variant changed during flashing
* default to "unknown" console if no match
* add "m3_gc9306" to devices_ID[]
* refactor "xyc" & "m3" FORCE_VERSION
* use dialog --pause in firstboot (displays left time)
* Correct indentations in firstboot to TABS
* add functions in script
update "firstboot" script
No functional changes here, just a few housekeeping things:
1) Renamed it to "build.yml" and "Buildroot" since it's responsibilities have now expanded.
2) Got rid of all the caching stuff since we're not using it any more.
3) Updated the upload-artifact action to v3 to resolve the warnings Github was logging about v2 using a deprecated node.js version