-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
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
🔧 Allow use of a minimal Config.h #27338
🔧 Allow use of a minimal Config.h #27338
Conversation
32f2168
to
1b3d729
Compare
96c75ed
to
efcbb23
Compare
b6f3896
to
2b868fd
Compare
c792921
to
37fb26b
Compare
2b868fd
to
f0fe9b5
Compare
Just a heads up: I'm running the monthly "build all examples" script and have run across an issue with recent Conditionals_post.h:899:44: error: 'X_MAX_ENDSTOP_HIT_STATE' was not declared in this scope; did you mean 'X_MIN_ENDSTOP_HIT_STATE'?
899 | #define Z2_MIN_ENDSTOP_HIT_STATE X_MAX_ENDSTOP_HIT_STATE ...or... Conditionals_post.h:907:44: error: 'Z_MAX_ENDSTOP_HIT_STATE' was not declared in this scope; did you mean 'Z2_MAX_ENDSTOP_HIT_STATE'?
907 | #define Z2_MIN_ENDSTOP_HIT_STATE Z_MAX_ENDSTOP_HIT_STATE The affected configs so far:
Looks like it's only those three: There's also a report of |
40c5279
to
ecbff8f
Compare
ecbff8f
to
5b5fbc4
Compare
5b5fbc4
to
ae31871
Compare
e301d6b
to
9fa25f2
Compare
By popular demand…
Users have long wanted a way to use a minimal configuration file containing only their enabled options without having to migrate their settings from the old configurations to the new formats. Some vendors maintain unified configuration files based on this basic idea.
We balked at this idea because we didn't want to wrap every option in the config files with
#ifndef
as this would only make the files harder to read. We did put together aconfig.ini
method, but it is somewhat obscure and we don't distribute our examples in this format, so users and vendors have been slow to adopt. (It also requires PlatformIO.)This PR provides…
CONFIG_EXPORT 5
andCONFIG_EXPORT 105
options. On build this export option creates aConfig-export.h
file containing only the defined options, split up by file or by section. This file should be renamed toConfig.h
for use.Config.h
file so it can act as the sole configuration file, overriding the base default config files. TheConfiguration.h
andConfiguration_adv.h
files will be ignored, with a warning.