-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[ESP32]: Remove the same configs as defaults #36940
base: master
Are you sure you want to change the base?
Conversation
793e834
to
5b3b55a
Compare
PR #36940: Size comparison from 2249628 to 5b3b55a Full report (14 builds for cc13x4_26x4, cc32xx, nrfconnect, qpg, stm32, tizen)
|
5b3b55a
to
8f67708
Compare
PR #36940: Size comparison from 2249628 to 8f67708 Increases above 0.2%:
Full report (69 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
if board == Esp32Board.C3DevKit: | ||
return 'sdkconfig.defaults.esp32c3' | ||
else: | ||
return '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty string seems more magic ... how about making this return Optional[str]
and then return None? A check of is not None
seems more clear/intuitive than == ""
@@ -111,6 +111,20 @@ def IsCompatible(self, board: Esp32Board): | |||
return (board in {Esp32Board.M5Stack, Esp32Board.DevKitC}) and (self != Esp32App.TESTS) | |||
|
|||
|
|||
def TargetName(board: Esp32Board): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these can be @property
methods on Esp32Board
for consistency of style with existing Esp32App
properties.
For esp32, if
sdkconfig.defaults
is the default config file andIDF_TARGET
is set, the build system will also attempt to load configs from ansdkconfig.defaults.IDF_TARGET
. So modified the CI to support this and removed the same configs as defaults in other target configs.