예제 #1
0
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)
예제 #2
0
파일: module.py 프로젝트: shanwei/osv
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)
예제 #3
0
def make_modules(modules):
    for module in modules:
        module_dir = resolve.get_module_dir(module)
        subprocess.call(["make module"], shell=True, cwd=module_dir)
예제 #4
0
파일: module.py 프로젝트: shanwei/osv
def make_modules(modules):
    for module in modules:
        module_dir = resolve.get_module_dir(module)
        subprocess.call(["make module"], shell=True, cwd=module_dir)