NCS does not build correctly if 'memfault' module sources are not present

Our codebase is configured to use West to manage our code repository as well as the NCS repositories. We use the 'name-whitelist' option in our `west.yml` to only import the NCS sub-modules that we use. We currently limit the NCS sub-modules to the following:

- zephyr
- mcuboot
- nrfxlib
- hal_nordic
- trusted-firmware-m
- tfm-mcuboot
- cmock
- unity
- mbedtls-nrf
- nanopb
- cddl-gen

When limiting the NCS submodules to this set, NCS produces build-time errors during the Kconfig step. Specifically, the `nrf/modules/memfault/Kconfig` file has to be manually edited to remove the reference to `MEMFAULT_HTTP_PERIODIC_UPLOAD_USE_DEDICATED_WORKQUEUE`.

It appears that the `nrf/modules/memfault/Kconfig` file implicitly assumes that the `memfault` module sources are always present, which breaks the modularity implied by the word "module". NCS should not depend on any module sources in order to build correctly.

Parents Reply Children
No Data
Related