usb-c: Generate USB-C connector VIF policies XML file
Generates XML file containing VIF policies by reading the device tree
using EDT.pickle generated during build
This script writes a subset of general and sink-pdo VIF policies in
output file
This script gets invoked during build if enabled through kconfig
The generated XML containing USB-C VIF policies could be used by
USB PD/Type-C analysers/testers to understand USB-C properties and
perform tests accordingly
Signed-off-by: Madhurima Paruchuri <mparuchuri@google.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d31ad89..4eb72e8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1717,6 +1717,11 @@
include(${CMAKE_CURRENT_LIST_DIR}/cmake/mcuboot.cmake)
endif()
+# Generate USB-C VIF policies in XML format
+if (CONFIG_BUILD_OUTPUT_VIF)
+ include(${CMAKE_CURRENT_LIST_DIR}/cmake/vif.cmake)
+endif()
+
get_property(extra_post_build_commands
GLOBAL PROPERTY
extra_post_build_commands