Testing yaml dtschemas
First test the binding :
make clean && make -j8 dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/<path to yaml>
Then check the
dtsi/dts
files that are compatible with this schema. Example :rg "generic-uhci"
, here rg is recursive grep program
Now set options to cross-compile with the architecture that has the dts files (here-arm) :
export CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm KBUILD_OUTPUT=out/
Now make config file :
First clean your setup (and you have to build your bindings again in step 4)
Then you may have to run
make mrproper
to switch to the new architectureThen run
make defconfig
for default configBuild the bindings again :
make -j8 dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/<path to yaml>
Now test the dts files :
make -j8 dtbs_check DT_SCHEMA_FILES=<path to yaml>
Last updated