Commit Graph

28 Commits

Author SHA1 Message Date
lselter 695ba5d5db Fix String substitution when `DEV` flavour is built with a dirty local version both instances of -D were replaced with commit count 2024-07-09 15:44:40 +01:00
3d-gussner 45a223a1f9 Remove White spaces 2024-05-20 19:09:03 +02:00
3d-gussner 902c2f71c9 New hex file naming 2024-01-19 14:21:47 +01:00
3d-gussner fe9a8cf8ac Fix PF-build.sh with new cmake
Same as MK3_3.13.2 branch
2023-10-17 15:36:54 +02:00
Guðni Már Gilbert 415c0c79d1 Fix FW_COMMIT_HASH compiler warning
On my end, the default length for the abbreviated commit hash is 9 characters.
This won't fit into uint32_t (4 bytes).

Instead change FW_COMMIT_HASH into a string
and create preprocessor symbol for the string length
such that it's known at compile time.

If the string should be longer or shorter
then only FW_COMMIT_HASH_LENGTH needs to be configured on the CMake side
2023-10-07 21:01:28 +00:00
VintagePC 98ae24caad Improve handling for http urls 2023-09-22 18:18:13 -04:00
VintagePC f4ec19d3c7 Add debugging 2023-09-22 18:08:59 -04:00
VintagePC 20540cc61b Set repository, if possible. 2023-09-22 17:57:41 -04:00
VintagePC 2b5e2dc9fe fix commit number handling 2023-09-11 18:53:20 -04:00
VintagePC 2485c36391 Add dev status handling 2023-09-09 13:19:11 -04:00
VintagePC ab299e36d1 Use commit number as version tweak value 2023-09-07 19:38:07 -04:00
VintagePC 916d02824e Initial round of changes to address some cmake features 2023-09-07 18:46:47 -04:00
Yuri D'Elia 80594880cd cmake: Simplify version handling based on git tags
- Use the HEAD commit hash as the default suffix
- Use the output of "describe" as the full version string
- Use the HEAD commit time as SOURCE_DATE_EPOCH
2023-09-04 08:35:15 -04:00
Yuri D'Elia 2e1eb4f84a cmake: Update GetGitRevisionDescription module 2023-09-04 08:35:15 -04:00
Yuri D'Elia cfc8ffe8a3 cmake: Set source epoch from the HEAD commit
Allow to set the source epoch of the build with
PROJECT_VERSION_TIMESTAMP.

When unset fetch the commit timestamp of the current HEAD automatically
instead of leaving the source as 0. This fixes the firmware DATE
information in the support menu.
2023-08-17 07:46:47 +02:00
Guðni Már Gilbert f9b779e274 Remove echo in report_size function
The output is separate by two lines anyway.
2023-01-28 18:53:31 +00:00
Guðni Már Gilbert d0c3d3c5fd Fix an issue with using echo on Windows
Use built-in echo command in cmake instead to
ensure behavior is the same between different platforms
2023-01-28 16:43:00 +00:00
Yuri D'Elia 036a04938d cmake: Introduce AvrGcc/AnyAvrGcc toolchains, replacing LocalAvrGcc
- AvrGcc: use avr-gcc from dependencies
- AnyAvrGcc: use system's avr-gcc for testing
2022-10-12 11:07:45 +02:00
Yuri D'Elia 8a00179528 cmake: Improved reproducibility rules
Rewrite cmake rules for reproducibility and move them inside a separate
module.

The new rules are cleaner and can operate on multi-directory projects
transparently.
2022-10-10 14:19:03 +02:00
3d-gussner dd389d018b Add padded size for individual languages 2022-10-06 10:49:36 +02:00
Yuri D'Elia 007d90bc75 cmake: Normalize incoming dependency paths 2022-10-04 12:38:40 +02:00
Yuri D'Elia 47f89bb418 cmake: Do not set PROJECT_VERSION in PARENT_SCOPE 2022-10-02 20:32:32 +02:00
VintagePC ea920536cb Add version info to filenames 2022-08-05 21:03:41 -04:00
VintagePC 5f12c7f10b * Synchronize flags with arduino
* Use cmake -E cat for merge
* Set AR/ranlib to GCC flavour
2022-08-05 16:54:07 -04:00
VintagePC 5bc936d4f5 Remove helper file, fix lang ordering, check sizes 2022-07-27 19:40:11 -04:00
VintagePC 9001d98061 Get version/dir from bootstrap, add pyelftools 2022-07-27 17:58:58 -04:00
3d-gussner e187538973 Update bootstrap 2022-07-27 15:01:07 +02:00
VintagePC f03e3c40ee WIP/proof-of-concept 2022-07-26 19:33:09 -04:00