-
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
Do not include endpoint config in types_stub.h #25128
Conversation
…re directly referenced there
PR #25128: Size comparison from 6a3bbe0 to 0013be0 Increases (1 build for cc32xx)
Decreases (1 build for cc32xx)
Full report (1 build for cc32xx)
|
PR #25128: Size comparison from 1fd5c53 to b473d37 Increases (3 builds for bl702, cc32xx)
Decreases (1 build for bl702)
Full report (10 builds for bl602, bl702, cc32xx, linux, mbed, qpg)
|
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.
I am 99% sure color-control-server needs to include config.h as well... We really need that lint that checks for the defines from gen_config.h in files and make sure those files include config.h
src/app/clusters/application-basic-server/application-basic-server.cpp
Outdated
Show resolved
Hide resolved
src/app/clusters/application-launcher-server/application-launcher-server.cpp
Outdated
Show resolved
Hide resolved
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.
Actually, I guess color-control-server is in this PR; I just missed it.
Approving, but we really do need the lint, as a followup.
PR #25128: Size comparison from 1fd5c53 to 2e73fb5 Increases above 0.2%:
Increases (5 builds for bl602, bl702, mbed)
Decreases (5 builds for bl602, bl702, mbed)
Full report (5 builds for bl602, bl702, mbed)
|
* Remove endpoint config from types. Add it to binding tables as they are directly referenced there * Mass addition of gen_config header whenever endpoint count was being fetched * Undo all changes except type_stubs. This is to create a tool that auto-adds headers * Added app/util/config.h whenever gen_config or endpoint_config bits seemed to be used * Restyle * Remove duplicate include based on code review
Including data types should not have a sideffect of including / depending on app-specific endpoint configuration.
This removes endpoint_config/gen_config from types_stub and starded adding direct includes where these seem needed (probably not exhausinve, relying on CI to test compilation for now).
Without this change, Accessors.h is not directly usable without depending on a codegen bit because of a dependency of
Accessors.h -> af-types.h -> types_stub.h -> endpoint_config.h
af-types.h
seemed to want some of gen/endpoint config flags (specifically to define structures depending on what clusters are selected), changed this like:- removed some unused clusters
- moved scenese table entry to scenes.h