Skip to content
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

[BUG] [zephyr] Module fails to build due to undeclared args #27153

Open
RicArch97 opened this issue Jun 8, 2023 · 0 comments
Open

[BUG] [zephyr] Module fails to build due to undeclared args #27153

RicArch97 opened this issue Jun 8, 2023 · 0 comments
Labels

Comments

@RicArch97
Copy link

RicArch97 commented Jun 8, 2023

Reproduction steps

Pull the connectedhomeip repo. I used west.yml to do this, to place it into <zephyr-workspace>/modules/lib/matter similar to how nrfconnect does this

Add matter as extra Zephyr module in your CMakeLists.txt

get_filename_component(CHIP_ROOT $ENV{ZEPHYR_BASE}/../modules/lib/matter REALPATH)
list(APPEND ZEPHYR_EXTRA_MODULES ${CHIP_ROOT}/config/zephyr/chip-module)

Enable the KConfig option

CONFIG_CHIP=y

Run source <path_to_connectedhomeip>/scripts/activate.sh and build your project

Bug prevalence

Whenever i do this

GitHub hash of the SDK that was being used

8f66f42

Platform

other

Platform Version(s)

Zephyr 3.3.0

Anything else?

When using Matter as module in standalone Zephyr, the build configuration fails with the following error:

ERROR at build arg file (use "gn args <out_dir>" to edit):4:25: Build argument has no effect.
chip_build_pw_rpc_lib = false
                        ^----
Did you mean "chip_build_pw_trace_lib"?

The variable "chip_build_pw_rpc_lib" was set as a build argument
but never appeared in a declare_args() block in any buildfile.

When looking into the config/zephyr/chip-gn/BUILD.gn file, the chip_build_pw_rpc_lib = false argument is not declared.
One way we could resolve this is by enabling PW RPC the same way nrfconnect does it currently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants