Skip to content

Utility script to create xitem file from board.xml

saikrishnamaddali edited this page Apr 4, 2018 · 24 revisions

Description

The utility script generate_xitem_json.py is used to create xitem.json file from board.xml file.The script extracts the mandatory fields from board.xml and creates a corresponding xitem.json file.

The following fields are inferred from the board.xml file in to xitem.json .

<board schema_version="2.0" vendor="em.avnet.com" name="minized" display_name="MiniZed" url="http://www.minized.org" preset_file="preset.xml" >

  1. name :: 'name' of xitem
  2. display_name :: 'display' of xitem
  3. vendor :: 'company' of xitem
  4. url :: 'website'

Commands :

python main.py -help (To get the details of arguements for script)

Version:

Python Version Supported: >=2.7.x Board Schema File Supported: 2.0 Xitem.json Schema version : 1.1