9 Commits

Author SHA1 Message Date
Thomas Huber cbc0656668 Makefile enhancements to optimize local workflows (#363)
- Enhance the Makefile to enable firmware building exclusively for the left side.

To modify the keymap, flashing only the left side's firmware suffices.

This change facilitates the creation of firmware for the left side only,
thereby expediting the build process.

Usage: make left

This update maintains existing functionality. Without specifying the
left target, firmware for both halves will be generated.

- Add separate make targets to clean firmware and docker image

Add targets clean_firmware and clean_image independently while maintaing clean to run both

- Ensure files modified by the build process are reset at the end

The current build process dynamically generates the content of the version macro
in config/version.dtsi to enable users to print out the precise version and commit
the firmware was built on via a keybinding on the keymap.

This change ensurs that the changes to this macro file are reset at the end of the
build process to ensure it isn't shown as modified and added to keymap commit changes.
2024-02-05 09:55:24 +00:00
Jim Jowdy 1728a660ce Prefer tr to ${char^^}, which does not work on older bash versions (#303)
* Prefer `tr` to ${char^^}, which does not work on older bash versions

* Update CHANGELOG.md

---------

Co-authored-by: ReFil <31960031+ReFil@users.noreply.github.com>
2023-12-27 12:59:59 +00:00
David Whetstone 11932126d4 Make get_version use bash from $PATH (#287)
* Make get_version use bash from $PATH

* Update CHANGELOG.md

---------

Co-authored-by: ReFil <31960031+ReFil@users.noreply.github.com>
2023-12-07 09:14:49 +00:00
ReFil cdcec22e60 Version compiled FW with automatic macro (#267)
* Version compiled FW with hash

Auto generates a macro to type out version info, local and github compilation now includes commit hash and timestamp in final uf2 files

* Fix local builds

makefile doesn't like the script returning the macro, directed to null for local builds as version.dtsi file accessible
2023-11-16 07:49:39 +00:00
S0AndS0 8e2e77b638 Fix shell check warnings (#242)
* Fix SC2002 Shell Check warning

* Fix SC2086 Shell Check warnings
2023-10-09 08:25:25 +00:00
Josh French 1d14ffdb30 Use makefile for a reusable docker image 2022-10-11 11:13:38 -04:00
ReFil de48875a50 Update build.sh
Remove DTS file listing requirement that was deprecated in teh move to Z3
2022-09-26 21:18:54 +01:00
Ryan Winchester 9517b0ccff Add Dockerfile optimizations
@ThePrimeagen did these on-stream.
2022-05-20 21:08:18 -03:00
Ryan Winchester 068b1ff56a Add local build option with Docker and README 2022-05-20 16:59:56 -03:00