-
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
Call InitChipStack from the device controller #1500
Call InitChipStack from the device controller #1500
Conversation
fb499b9
to
0e0f9bf
Compare
@vivien-apple please rebase :) |
This PR will work once #1534 has landed. Will rebased once I I finished fixing the build issues with #1534 |
0e0f9bf
to
d540971
Compare
fb499b9
to
f57a8ca
Compare
I add to fight a bit the old build system and the gn build system to get it to work. Should be green now. |
@vivien-apple can you fix the merge conflicts here please? @andy31415 @jelderton - can you review please? |
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.
- deleted pull approve test
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.
- deleted pull approve test
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.
- deleted pull approve test
f57a8ca
to
d361620
Compare
fb499b9
to
5f8e73f
Compare
Size increase report for "nrf-example-build"
Full report output
|
Size increase report for "linux-example-build"
Full report output
|
Size increase report for "esp32-example-build"
Full report output
|
Size increase report for "gn_nrf-example-build"
Full report output
|
Size increase report for "gn_linux-example-build"
Full report output
|
After 0320920 ("Call PlatformMgr::InitChipStack from the device controller (project-chip#1500)") this fails due to trying to include a nonexistent header. Fix it by leaving CHIP_PLATFORM_CONFIG_INCLUDE et al undefined when device_platform is "none".
* Fix building with device_platform="none" After 0320920 ("Call PlatformMgr::InitChipStack from the device controller (#1500)") this fails due to trying to include a nonexistent header. Fix it by leaving CHIP_PLATFORM_CONFIG_INCLUDE et al undefined when device_platform is "none". * Add Darwin device layer to fix Mac build * Update pigweed for objc toolchain * darwin: Add frameworks via "frameworks", not "libs" It turns out that putting frameworks in {{libs}} was deprecated and is removed as of gn 3028c6a4 ("[apple] Remove support for frameworks in libs"). Specify them separately via "frameworks".
* Fix building with device_platform="none" After 0320920 ("Call PlatformMgr::InitChipStack from the device controller (project-chip#1500)") this fails due to trying to include a nonexistent header. Fix it by leaving CHIP_PLATFORM_CONFIG_INCLUDE et al undefined when device_platform is "none". * Add Darwin device layer to fix Mac build * Update pigweed for objc toolchain * darwin: Add frameworks via "frameworks", not "libs" It turns out that putting frameworks in {{libs}} was deprecated and is removed as of gn 3028c6a4 ("[apple] Remove support for frameworks in libs"). Specify them separately via "frameworks".
Problem
This is an example of how I would change the event loop code from the Darwin framework to ChipDeviceController if #1497 lands. The current code is not ready to be merged yet. It needs some more love since in the current shape it will likely break examples/chip-tool and we need to determine if CHIPDeviceController always expect a device layer or not.