Error while building Torizoncore Builder project with Torizon6 - fatal error: imx7d-pinfunc.h: No such file or directory

I am using Torizoncore Builder VS Code extension to customize an Torizon6 OS and customize device-tree and device overlay.

Attached is my yaml file.
tcbuild.yaml (1.1 KB)

While building the yaml file, it shows errors:-

ERROR - device-trees/overlays/colibri-imx7_panel-cap-touch-7inch_overlay.dts:15:10: fatal error: imx7d-pinfunc.h: No such file or directory
#include <imx7d-pinfunc.h>

linux/arch/arm/boot/dts/imx7s.dtsi:6:10: fatal error: dt-bindings/clock/imx7d-clock.h: No such file or directory
#include <dt-bindings/clock/imx7d-clock.h>

I am working with

  1. Colibri imx7d-1gb-emmc
  2. Colibri Evaluation Board

I think in your include-dirs you need something like this:

    # >> Directories where to look for include files.
      - linux/include
      - device-trees/include
      - device-trees/dts-arm64

Greetings @rajdeepteck123,

As @geopaxpvtltd said you need to include the path for wherever you have these header files located. Since you’re using Torizon 6.X these can be located in the Linux source code that you should have cloned as per the instructions here: Device Tree Overlays on Torizon | Toradex Developer Center

The location for these files can be seen here:

As you can see the pinfunc file is located in a different location compared to the other includes.

Best Regards,

Thanks you @jeremias.tx and @geopaxpvtltd for your inputs.
I changed the yaml file by adding the lines below and it compiled without errors:-

Glad we were able to help.