From c86da84d30e4b72cfb4fee22b62bea4257bc14bf Mon Sep 17 00:00:00 2001 From: Grant Likely Date: Tue, 11 Sep 2018 15:41:31 -0500 Subject: 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 [robh: make YAML support optional, build fixes, Travis CI test, preserve type information in paths and phandles] Signed-off-by: Rob Herring Signed-off-by: David Gibson --- dtc.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dtc.h') diff --git a/dtc.h b/dtc.h index bb769d2..cbe5415 100644 --- a/dtc.h +++ b/dtc.h @@ -299,6 +299,10 @@ struct dt_info *dt_from_blob(const char *fname); void dt_to_source(FILE *f, struct dt_info *dti); struct dt_info *dt_from_source(const char *f); +/* YAML source */ + +void dt_to_yaml(FILE *f, struct dt_info *dti); + /* FS trees */ struct dt_info *dt_from_fs(const char *dirname); -- cgit v1.2.1