-
Notifications
You must be signed in to change notification settings - Fork 6
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
How to use connectedhomeip as a submodule of a real openwrt project? #14
Comments
@ksperling-apple As promised, I just posted a PR in connectedhomeip to allow |
Thanks, merged project-chip/connectedhomeip#29627. The Matter SDK has Maybe |
What about:
|
I think working with nested submodules is something the OpenWrt build system should support without complicated contortions in the package Makefile... alternatively hooking in a custom download mechanism could be made less complicated (the re-packaging into a tar should really be separate from the actual download to make it easier to implement a custom method). I think this is an issues for core OpenWrt though rather than this repo. |
Basically, I agree. It would be nice to have better support for nested submodules in OpenWrt, and worth trying to find a implementation for that. But as your PKG_SOURCE_SUBMODULES patch does not seem to make it into 23.05, let alone 22.03, or at least it seems to take months (I have similar experiences with other openwrt contribution attempts) and I am developing a OpenWrt based real world app now, I am wondering about more pragmatic solutions right now 😉. But here's the wrong place, I agree. |
Yeah it's unfortunate that that patch didn't get picked up for 23.05 at least... |
Hi @ksperling-apple,
Thanks a lot for your work for building matter on Openwrt - this is very useful stuff! 😀
With the help of the openwrt gn package and
scripts/configure
I managed to build my matter bridge daemon p44mbrd, but needed to patch two small obstacles, see below.The basic difference between the provided example build of lighting-app in the matter-netmon package and my setup is that in the latter, connectedhomeip is itself a submodule of the main project, while in the former the root repo is connectedhomeip itself, and the project lives in the
example
subdirectory. To make it work:scripts/configure
requires that--project
is relative to the connectedhomeip directory (but../..
style paths work), and insists that the project is a subdirectory, and not a parent (check on line 93). I just commented out line 92 and 93 for now. I think--project
should also accept absolute paths outside connectedhomeip, I'll post a PR for that.the new openwrt build system option PKG_SOURCE_SUBMODULES only works on the first level, so with connectedhomeip as a submodule it does not help, because it is one level deeper where we want to select only a few modules from the large set in the SDK. Also before trying to build in openwrt, I solved this by adding
update = none
andignore = all
to all entries in.gitmodules
.These fixes need using a modified connectedhomeip tree, but as I need some not-yet accepted PR anyway, for now I use my own fork where I rebase my set of small mods onto master from time to time.
But I guess any non-example matter app will not have its sources in the connectedhomeip tree, and most of them would want to avoid pulling 34GB of unneeded submodules - so establishing generic mechanisms in the SDK to do so would be nice 😉
The text was updated successfully, but these errors were encountered: