Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Core] Add compile/make macro to core #15959

Merged
merged 12 commits into from
Mar 17, 2022
Merged

[Core] Add compile/make macro to core #15959

merged 12 commits into from
Mar 17, 2022

Conversation

drashna
Copy link
Member

@drashna drashna commented Jan 20, 2022

Description

This outputs qmk compile -kb {keyboard} -km {keymap} on tap, or qmk flash if shift is held with it.

Types of Changes

  • Core
  • New feature
  • Documentation

Checklist

  • My code follows the code style of this project: C, Python
  • I have read the PR Checklist document and have made the appropriate changes.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

@drashna drashna requested a review from a team January 20, 2022 23:54
@drashna drashna marked this pull request as ready for review January 21, 2022 00:05
quantum/quantum.c Outdated Show resolved Hide resolved
docs/quantum_keycodes.md Outdated Show resolved Hide resolved
@drashna drashna force-pushed the core/make branch 2 times, most recently from ba50fc1 to 9358177 Compare January 21, 2022 02:46
@github-actions github-actions bot removed the keymap label Jan 21, 2022
@drashna drashna force-pushed the core/make branch 2 times, most recently from ec17fed to 485ad73 Compare January 21, 2022 02:54
@drashna drashna changed the title [Core] Add KC_MAKE keycode to core [Core] Add compile/make macro to core Jan 22, 2022
quantum/quantum.c Outdated Show resolved Hide resolved
@drashna drashna requested review from fauxpark, zvecr and a team February 7, 2022 19:30
Copy link
Member

@zvecr zvecr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might want to be opt in instead as its adding about 1k in most of the builds i've compared.

quantum/quantum.c Outdated Show resolved Hide resolved
quantum/quantum.c Outdated Show resolved Hide resolved
@drashna
Copy link
Member Author

drashna commented Mar 14, 2022

Tinkering with this, even just a send_string adds about 500 bytes to the firmware. Which is a surprisingly large amount (even when it's a set string).

Making it opt-in is probably best.

@drashna drashna force-pushed the core/make branch 2 times, most recently from e01d018 to 8337569 Compare March 14, 2022 19:05
fix linting

fix testing error

work around test idiocyncracies

fix more lint

something something stupid tests

add doc
quantum/quantum.c Outdated Show resolved Hide resolved
@zvecr zvecr merged commit 0265569 into qmk:develop Mar 17, 2022
@drashna drashna deleted the core/make branch March 17, 2022 23:00
0xcharly pushed a commit to Bastardkb/bastardkb-qmk that referenced this pull request Jul 4, 2022
* [Core] Add KC_MAKE keycode to core

fix linting

fix testing error

work around test idiocyncracies

fix more lint

something something stupid tests

add doc

* updates based on feedback

* Add bad names

* Fixup docs

* semantics but cleaner

Co-authored-by: precondition <[email protected]>

* Hide oneshot checks behind preprocessors

* Move no-compile option around

* Fix formatting

* make shift optional

* Make opt in

* fix formatting

* update send string function name

Co-authored-by: Joel Challis <[email protected]>

Co-authored-by: precondition <[email protected]>
Co-authored-by: Joel Challis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants