Missing information about custom overlay(s) and/or custom out-of-tree driver(s) in the build log

Hi Nordic/Zephyr Community,

observer behavior:

-- west build: generating a build system
LIBRARY_SDK_BASE:= C:\cm\projects\zorbit\library_sdk
ZEPHYR_BASE:= c:\cm\ncs\v2.1.2\zephyr
Loading Zephyr default modules (Zephyr base).
-- Application: C:/cm/projects/zorbit/application
-- Found Python3: C:/cm/ncs/toolchains/v2.1.2/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Cache files will be written to: C:/cm/ncs/v2.1.2/zephyr/.cache
-- Zephyr version: 3.1.99 (C:/cm/ncs/v2.1.2/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: nrf52840_zorbit
-- Found host-tools: zephyr 0.14.1 (C:/cm/ncs/toolchains/v2.1.2/opt/zephyr-sdk)
-- Found dtc: C:/cm/ncs/toolchains/v2.1.2/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: zephyr 0.14.1 (C:/cm/ncs/toolchains/v2.1.2/opt/zephyr-sdk)
-- Found BOARD.dts: C:/cm/projects/zorbit/library_sdk/boards/arm/nrf52840_zorbit/nrf52840_zorbit.dts
-- Generated zephyr.dts: C:/cm/projects/zorbit/application/build_zorbit/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/cm/projects/zorbit/application/build_zorbit/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/cm/projects/zorbit/application/build_zorbit/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: C:/cm/projects/zorbit/application/build_zorbit/zephyr/dts.cmake


Expected behavior:

-- west build: generating a build system
LIBRARY_SDK_BASE:= C:\cm\projects\zorbit\library_sdk
ZEPHYR_BASE:= c:\cm\ncs\v2.1.2\zephyr
Loading Zephyr default modules (Zephyr base).
-- Application: C:/cm/projects/zorbit/application
-- Found Python3: C:/cm/ncs/toolchains/v2.1.2/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Cache files will be written to: C:/cm/ncs/v2.1.2/zephyr/.cache
-- Zephyr version: 3.1.99 (C:/cm/ncs/v2.1.2/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: nrf52840_zorbit
-- Found host-tools: zephyr 0.14.1 (C:/cm/ncs/toolchains/v2.1.2/opt/zephyr-sdk)
-- Found dtc: C:/cm/ncs/toolchains/v2.1.2/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: zephyr 0.14.1 (C:/cm/ncs/toolchains/v2.1.2/opt/zephyr-sdk)
-- Found BOARD.dts: C:/cm/projects/zorbit/library_sdk/boards/arm/nrf52840_zorbit/nrf52840_zorbit.dts
-- Found driver: C:\cm\projects\zorbit\library_sdk\dts\nrf52840_zorbit.overlay
-- Found driver: C:\cm\projects\zorbit\library_sdk\dts\bindings\stc3100
-- Found YAML: C:\cm\projects\zorbit\library_sdk\dts\bindings\stc3100.yml
-- Generated zephyr.dts: C:/cm/projects/zorbit/application/build_zorbit/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/cm/projects/zorbit/application/build_zorbit/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/cm/projects/zorbit/application/build_zorbit/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: C:/cm/projects/zorbit/application/build_zorbit/zephyr/dts.cmake

Description:
It would be very helpful during development of custom device driver(s) the see in the build logging that the buildsystem has found & accepted the found overlay's and found drivers.
not sure if there is any work-around or other way to see this valuable build information about out-of-tree device drivers / overlays and perhaps also shields.

Reproduce steps:
- add out-of-tree custom device driver to the application
- build the application
- observe in the build log that no detected overlay is reported.
- observe in the build log that no detected driver is reported.

System:
- MS windows 11
- MS VSCode v1.73
- Nordic nRF Connect SDK v2.1.2
- hardware device custom pcb with nrf52840 & bg9x

 

Parents
  • Hi,

    Thank you very much once again for your valuable feedback Smiley

    I have reported internally.

    Regards,

    Priyanka

  • Hi,

    I have heard back from the team and they want to clarify some questions.

    question 1:

    Found driver: C:\cm\projects\zorbit\library_sdk\dts\nrf52840_zorbit.overlay**

    First, a devicetree overlay is not a driver, so this request does not make sense.

    Second, if what you want is for the build system to print all the devicetree overlays which are included in the build, this is already done. Here is an example:

    $ west build -b nrf52840dk_nrf52840 zephyr/samples/subsys/usb/cdc_acm
    ...
    -- Found devicetree overlay: /home/mbolivar/ncs/zephyr/samples/subsys/usb/cdc_acm/app.overlay
    ... 

    They think there is nothing more to do here. Please confirm.

    question 2:

    Found driver: C:\cm\projects\zorbit\library_sdk\dts\bindings\stc3100**

    First, a directory containing devicetree bindings is not a driver either, so this too does not make sense.

    What do you really want?

    question 3:

    Found YAML: C:\cm\projects\zorbit\library_sdk\dts\bindings\stc3100.yml**

    The build system doesn't have a way to distinguish the devicetree bindings which are provided with NCS from other devicetree bindings provided by the customer, nor do I see an easy way to make that happen.

    Would you be satisfied with changes which allow you to print:

    1. all the devicetree bindings discovered at cmake time?
    2. just the devicetree bindings which matched nodes in the final devicetree?
    3. the binding file which was used to match each node in the devicetree, along with nodes that didn't match any bindings?
  • Hi Pryanka,

    My mistake it should be :

    Found overlay: C:\cm\projects\zorbit\library_sdk\dts\nrf52840_zorbit.overlay**

    But then why does the message no popup when the overlay is the folder?



Reply Children
No Data
Related