add generate_device_upgrade_xml.py