Ayush1325 / manifesto

Project Ara Module Manifest generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Manifesto

A simple tool to generate a Greybus manifest blob from a Python ConfigParser-style input file.

Provided under BSD license. See LICENSE for details.

Install

Put 'manifesto' in your PATH; Python 2.7 is supported, and Python 2.6 may work as well. Python 3 should work also.

Running Manifesto

$ manifesto test.mnfs

Generates test.mnfb in same directory as source file

Example

Simple I2C Module

;
; 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

Build Simple I2C Module manifest blob

manifesto examples/simple-i2c-module.mnfs

About

Project Ara Module Manifest generator

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%