def generate_manifests(modules, basic_apps): for manifest_type in ["usr", "bootfs"]: manifest_name = "%s.manifest" % manifest_type print "Preparing %s" % manifest_name with open(os.path.join(resolve.get_build_path(), manifest_name), "w") as manifest: append_manifest(os.path.join(resolve.get_osv_base(), "%s.skel" % manifest_name), manifest) for module in modules: module_dir = resolve.get_module_dir(module) module_manifest = os.path.join(module_dir, manifest_name) print "Appending %s to %s" % (module_manifest, manifest_name) append_manifest( module_manifest, manifest, variables={"MODULE_DIR": module_dir, "OSV_BASE": resolve.get_osv_base()} ) for app in basic_apps: app.prepare_manifest(resolve.get_build_path(), manifest_type, manifest)
def generate_manifests(modules, basic_apps): for manifest_type in ["usr", "bootfs"]: manifest_name = "%s.manifest" % manifest_type print "Preparing %s" % manifest_name with open(os.path.join(resolve.get_build_path(), manifest_name), "w") as manifest: append_manifest(os.path.join(resolve.get_osv_base(), "%s.skel" % manifest_name), manifest) for module in modules: module_dir = resolve.get_module_dir(module) module_manifest = os.path.join(module_dir, manifest_name) print "Appending %s to %s" % (module_manifest, manifest_name) append_manifest(module_manifest, manifest, variables={ 'MODULE_DIR': module_dir, 'OSV_BASE': resolve.get_osv_base() }) for app in basic_apps: app.prepare_manifest(resolve.get_build_path(), manifest_type, manifest)
def make_modules(modules): for module in modules: module_dir = resolve.get_module_dir(module) subprocess.call(["make module"], shell=True, cwd=module_dir)