Commit Graph
13 Commits
Author SHA1 Message Date
Thomas HuberandGitHub 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
ReFilandGitHub 0737d53e01 Update Makefile variables (#335) 2024-01-16 16:43:55 +00:00
ReFilandGitHub 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
ReFil d011eea953 use $(strip to remove whitespace 2023-01-13 21:21:47 +00:00
ReFil 0e19696301 Disable SELinux support on OS X 2023-01-12 16:00:49 +00:00
Jason Ish f8756e33e2 Makefile: allow volumes to work on selinux
Volumes need the "z" option to work on selinux enabled systems. This has
no affect on systems that are not selinux enabled.
2022-11-16 09:30:44 -06:00
Allan Wind b3753fd711 Makefile: simplify; clean removes images
The target all was previous running setup followed by build.  As
both setup and build are phony targets they run in sequence and because
the firmware contain the timestamp they always run (dependencies doesn't
do anything).  all now does exactly what it says on the tin
without introducing non-standard targets.

clean now removes the images that created during build which is
what you expect from that target.  See:
https://www.gnu.org/software/make/manual/html_node/Standard-Targets.html#Standard-Targets
2022-11-01 00:19:43 -04:00
ReFilandGitHub 754f13303d Merge pull request #36 from craftyguy/V2.0-make-clean-no-fail
makefile: ignore errors during clean
2022-10-30 12:21:02 +00:00
Clayton Craft 78df0ff393 makefile: ignore errors during clean
The file(s) being removed may not exist, but make shouldn't fail because
of it:

        $ make clean
        rm ./firmware/*.uf2
        rm: cannot remove './firmware/*.uf2': No such file or directory
        make: *** [Makefile:10: clean] Error 1
        $ echo $?
        2

this also removes leading ./ from path in clean, and assumes that `make
clean` is being run from the top level repo dir
2022-10-24 12:12:16 -07:00
Clayton Craft 6ce32f01d4 Use podman, fall back to docker if unavailable 2022-10-24 10:49:53 -07:00
Josh French 7e9cb93cf2 timestamp doesn't need to be a target 2022-10-13 10:22:16 -04:00
4f09557004 Specify setup prereqs
Co-authored-by: Ed Flanagan <[email protected]>
2022-10-12 16:08:31 -04:00
Josh French 1d14ffdb30 Use makefile for a reusable docker image 2022-10-11 11:13:38 -04:00