Add support for YAML encoded output
YAML encoded DT is useful for validation of DTs using binding schemas. The YAML encoding is an intermediate format used for validation and is therefore subject to change as needed. The YAML output is dependent on DTS input with type information preserved. Signed-off-by: Grant Likely <grant.likely@arm.com> [robh: make YAML support optional, build fixes, Travis CI test, preserve type information in paths and phandles] Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
committed by
David Gibson
parent
361b5e7d80
commit
c86da84d30
@@ -568,6 +568,14 @@ dtc_tests () {
|
||||
run_wrap_test cmp $tree $tree.test.dts
|
||||
done
|
||||
|
||||
# Check -Oyaml output
|
||||
if pkg-config --exists yaml-0.1; then
|
||||
for tree in type-preservation; do
|
||||
run_dtc_test -I dts -O yaml -o $tree.test.dt.yaml $tree.dts
|
||||
run_wrap_test cmp $tree.dt.yaml $tree.test.dt.yaml
|
||||
done
|
||||
fi
|
||||
|
||||
# Check version conversions
|
||||
for tree in test_tree1.dtb ; do
|
||||
for aver in 1 2 3 16 17; do
|
||||
|
||||
Reference in New Issue
Block a user