InfiniTimeOrg / InfiniTime

Firmware for Pinetime smartwatch written in C++ and based on FreeRTOS
GNU General Public License v3.0
2.71k stars 928 forks source link

Build directory clutter #1647

Open Riksu9000 opened 1 year ago

Riksu9000 commented 1 year ago

Verification

Introduce the issue

The relevant build files are placed under src directory in the build directory. This directory includes 5 files by default, and building target pinetime-app increases this to 14, most of which aren't interesting. After also building pinetime-mcuboot-app, the file count is now 21, and the directory is quite cluttered. Now you need to look for the file you're interested in. Now if you build another version, the old files don't get replaced, and the file count increases still.

Preferred solution

I think the version number can be removed from the filename. When you build the firmware locally, it's almost never the tagged version. It could includes changes made locally, a newer main branch, a PR, etc. In almost all cases, the version number is only misleading and contributing to clutter. With shorter filenames, the files are easier to identify.

I believe the hex file was added as a superior alternative to the bin file. Creating both seems unnecessary. Can the bin files be removed?

I'm not sure what can be done about the rest of the files in the same directory.

Version

No response