Skip to content

Improve 'show_build_options' target #13425

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

Merged
merged 2 commits into from
Jul 3, 2021
Merged

Conversation

drashna
Copy link
Member

@drashna drashna commented Jul 3, 2021

  • Align the output to maximize readibility
  • Add Bootloader to listed output

Types of Changes

  • Core
  • Enhancement/optimization

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).

* Align the output to maximize readibility
* Add Bootloader to listed output
@drashna drashna requested a review from a team July 3, 2021 05:05
@github-actions github-actions bot added the core label Jul 3, 2021
@drashna
Copy link
Member Author

drashna commented Jul 3, 2021

I'd like to get the rest formatted too, but that's ... make, and I'm not up for that, right now.

@mtei
Copy link
Contributor

mtei commented Jul 3, 2021

for example:

diff --git a/show_options.mk b/show_options.mk
index cd04f6a0d..1520ac15c 100644
--- a/show_options.mk
+++ b/show_options.mk
@@ -86,7 +86,7 @@ OTHER_OPTION_NAMES = \
   LTO_ENABLE
 
 define NAME_ECHO
-       @echo "  $1 = $($1)             # $(origin $1)"
+       @printf "  %-30s = %-16s # %s\\n" "$1" "$($1)" "$(origin $1)"
 
 endef

@drashna drashna merged commit 0b22783 into qmk:develop Jul 3, 2021
@drashna drashna deleted the build/show_options branch July 3, 2021 14:43
nhongooi pushed a commit to nhongooi/qmk_firmware that referenced this pull request Dec 5, 2021
* Improve 'show_build_options' target

* Align the output to maximize readibility
* Add Bootloader to listed output

* Also alighn build options

Thanks mtei!
BorisTestov pushed a commit to BorisTestov/qmk_firmware that referenced this pull request May 23, 2024
* Improve 'show_build_options' target

* Align the output to maximize readibility
* Add Bootloader to listed output

* Also alighn build options

Thanks mtei!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants