Manifest updates.. preparing to actually make use of it.
[vuplus_bitbake] / bin / parse_manifest
1 #!/usr/bin/env python
2
3 import sys, oe, oe.manifest
4
5 mfile = sys.__stdin__
6 if len(sys.argv) == 2:
7         mfile = file(sys.argv[1], "r")
8
9 d = oe.data.init()
10
11 manifest = oe.manifest.parse(mfile, d)
12
13 for func in ("do_stage", "do_install", "do_populate"):
14         value = oe.manifest.emit(func, manifest, d)
15         if value:
16                 oe.data.setVar(func, value, d)
17         oe.data.setVarFlag(func, "func", 1, d)
18         oe.data.emit_var(func, sys.__stdout__, d)
19         sys.__stdout__.write("\n")