A simple tool to generate a Greybus manifest blob from a Python ConfigParser-style input file.
Provided under BSD license. See LICENSE for details.
Put 'manifesto' in your PATH; Python 2.7 is supported, and Python 2.6 may work as well. Python 3 should work also.
$ manifesto test.mnfs
Generates test.mnfb in same directory as source file
;
; Simple I2C Module Manifest
;
[manifest-header]
version-major = 0
version-minor = 1
[module-descriptor]
vendor = 0xdead
product = 0xbeef
version = 1
vendor-string-id = 1
product-string-id = 2
serial-number = 0
; I2C function on CPort 1
[function-descriptor "0"]
cport = 1
function-type = 0x07
; Module vendor string (id can't be 0)
[string-descriptor "0"]
id = 1
string = Project Ara
; Module product string (id can't be 0)
[string-descriptor "1"]
id = 2
string = Simple I2C Module
; CPort 1
[cport-descriptor "1"]
id = 1
manifesto examples/simple-i2c-module.mnfs