prusa3d / Prusa-Firmware

Firmware for Original Prusa i3 3D printer by PrusaResearch
GNU General Public License v3.0
1.99k stars 1.05k forks source link

Improve cmake build #4573

Closed 3d-gussner closed 5 months ago

3d-gussner commented 5 months ago

Example for new hex filenames: MK3S_MK3S+_FW_3.14.0-BEAT2_MULTILANG.hex and MK3S_MK3S+_FW_3.14.0-BEAT2+7651_deadbeef_MULTILANG.hex MK25S-RAMBo13aFW_3.14.0-BEAT2_en-cs.hex and MK25S-RAMBo13aFW_3.14.0-BEAT2+7917_3c332fd7e_en-cs.hex

vintagepc commented 5 months ago

Why are we adding yet another random bespoke build script? the point of CMake was to deprecate all of that and make things less confusing.

Now you have:

  1. CMake
  2. build.sh
  3. pf-build.sh
  4. Arduino .ino
  5. new utils/build.py
  6. Travis
  7. Github actions
3d-gussner commented 5 months ago

Why are we adding yet another random bespoke build script? the point of CMake was to deprecate all of that and make things less confusing.

Now you have:

1. CMake

2. build.sh

3. pf-build.sh

4. Arduino .ino

5. new utils/build.py

6. Travis

7. Github actions

PF-build.sh, build.sh and Arduino IDE build will be depreciated.

Travis and Github actions don't generate any hex files users can download. We may also drop Travis at some point as the github actions work well.

The build.py script should work on all platforms and also when the github repo is download as a zip.

github-actions[bot] commented 5 months ago

All values in bytes. Δ Delta to base

Target ΔFlash ΔSRAM Used Flash Used SRAM Free Flash Free SRAM
MK3S_MULTILANG 0 0 246812 5657 7140 2535
MK3_MULTILANG 0 0 246094 5664 7858 2528