Closed ck-telecom closed 2 years ago
@ck-telecom let me understand, you'd like Matter to be part of the Zephyr distribution by default by integrating it as a module upstream?
Yes, But not sure, the build system is not same with Zephyr, I think it is worth talking about this topic.
Now the Matter(CHIP) only support nrfconnect, in some sense it is ONLY support nrf5x series with Zephyr
Hello @ck-telecom
Well, it is not true that Matter SDK only supports nRF5x series with Zephyr.
Matter SDK takes approach of the "main" repository, and apart of the Matter stack it contains also platforms integration. You can find three related to Zephyr platforms already:
We've done some effort at the beginning to separate Zephyr platform from nRF specific functionality (nRF Connect), which was reused later on by Zephyr-based Telink platform.
@LuDuda Thanks for your reply!
We've done some effort at the beginning to separate Zephyr platform from nRF specific functionality (nRF Connect), which was reused later on by Zephyr-based Telink platform.
I do think that your effort on the separate Zephyr platform coz I can not configure my
name: connectedhomeip
build:
cmake: config/zephyr/chip-module
kconfig: config/zephyr/Kconfig
depends:
- openthread
after separate from zephyr, nrf connect and telink could import the basic zephyr configuration for their addtions and overrides
@ck-telecom thanks. Could you please elaborate more what are you trying to achieve and a little bit more about the issue? Are you referring to the fact that there is no CMakeLists.txt
inside config/zephyr
folder?
Currently, Zephyr platform is not a standalone platform, but allows for building Zephyr-based platforms like nRF Conenct or Telink. As for now we have no plans to change this behavior - but of course feel free to contribute.
name: connectedhomeip
build:
cmake-ext: Ture
kconfig: config/zephyr/Kconfig
depends:
- openthread
I think if we integrate Matter(CHIP) to Zephyr as a module to upstream, and add ${ZEPHY_BASE}/modules/matter/CMakeLists.txt that like openthread, I am not sure the Matter upstream will support CMake build system because the CMakeLists.txt is a empty file
@ck-telecom I think the best way to add support for standalone Zephyr platform in Matter is:
MATTER-REPO/config/Zephyr
as we have in MATTER-REPO/config/nrfconnect
and MATTER-REPO/config/telink
. Kconfig
file for Zephyr already exists, but CMakeLists.txt
is missing. Also, since Matter uses GN build system, a GN project definition for Zephyr is needed.src/platform/Zephyr
, such as CHIPDeviceConfig.h
or CHIPDevicePlatformConfig.h
BUILD.gn
and *.gni
files. Verify that conditions such as chip_device_platform == "nrfconnect"
don't need to be extended on other Zephyr platforms.zephyr/module.yml
that uses CMakeLists.txt
and Kconfig
from MATTER-REPO/config/Zephyr/chip-module
.That way, the only conflict we will have between Zephyr's and nRF Connect's Matter fork will be the Zephyr module manifest.
@Damian-Nordic Thanks for your tips!
I have started in my repo: https://github.com/ck-telecom/connectedhomeip/tree/zephyr_standalone Anyway, it is an extra module for zephyr.
PR for Matter: https://github.com/project-chip/connectedhomeip/pull/19504 merged to upstream
Create a fork of the Matter repo in zephyrproject-rtos.
@Damian-Nordic how about this?
I guess we need someone with higher privileges. @carlescufi are you in charge of creating repos in zephyrproject-rtos?
I guess we need someone with higher privileges. @carlescufi are you in charge of creating repos in zephyrproject-rtos?
I don't think the TSC has approved this yet. Let me come back to you once we've raised it again.
@ck-telecom or @Damian-Nordic for the TSC to approve this we need additional details in the issue body (eg. clear statement about module and maintainership and also a PR showing how the integration would work.
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.
Origin
Matter(CHIP) https://github.com/project-chip/connectedhomeip
Purpose
Matter(It don't matter) is an Application Layer Protocol for home IoT
Mode of integration
module?
Pull Request
Not yet
Description
For now to integrate to Zephyr based project is a little hard, user could only integrate Matter only add as External Project and it does not make sense of much flexible for configuration
What problem are you trying to solve? Hum... I don't know how to say
Why is this the right component to solve it (e.g., SQLite is small, easy to use, and has a very liberal license.)
Dependencies
Lower protocol such as Thread and etc
Revision
The latest version
License
SPDX identifier (https://spdx.org/licenses/) same with with Zephyr