Exemplo n.º 1
0
def MAIN_INSTALL(args):
    set_global(args)

    if ops.isExist(ops.path_join(build_dir, pre_loader_path)):
        ops.copyto(
            ops.path_join(build_dir, pre_loader_path),
            ops.path_join(iopc.getOutputRootDir(),
                          pre_loader_image_output_name))

    ops.copyto(ops.path_join(build_dir, image_path),
               ops.path_join(iopc.getOutputRootDir(), image_output_name))
    '''
    extra_conf = []
    extra_conf.append("modules_install")
    extra_conf.append("ARCH=" + ops.getEnv("ARCH"))
    extra_conf.append("INSTALL_MOD_PATH=" + output_dir)
    iopc.make(build_dir, extra_conf)

    extra_conf = []
    extra_conf.append("firmware_install")
    extra_conf.append("ARCH=" + ops.getEnv("ARCH"))
    extra_conf.append("INSTALL_MOD_PATH=" + output_dir)
    iopc.make(build_dir, extra_conf)
    '''
    return False
Exemplo n.º 2
0
def MAIN_BUILD(args):
    set_global(args)

    ops.copyto(ops.path_join(pkg_path, mkinitramfs), iopc.getOutputRootDir())
    CMD = [
        ops.path_join(iopc.getOutputRootDir(), mkinitramfs),
        ops.path_join(iopc.getOutputRootDir(), "rootfs"), initramfs_file
    ]
    res = ops.execCmd(CMD, iopc.getOutputRootDir(), False, None)
    print res

    return False
Exemplo n.º 3
0
def set_global(args):
    global pkg_path
    global output_dir
    global initramfs_file
    pkg_path = args["pkg_path"]
    output_dir = args["output_path"]
    initramfs_file = ops.path_join(iopc.getOutputRootDir(), initramfs_name)
Exemplo n.º 4
0
def set_global(args):
    global pkg_path
    global output_dir
    global output_rootfs_dir
    global output_platform_dir
    global daosfs_script
    pkg_path = args["pkg_path"]
    output_dir = args["output_path"]
    output_platform_dir = ops.path_join(iopc.getOutputRootDir(), "platform")
    daosfs_script = ops.path_join(output_platform_dir, "daosfs.py")
Exemplo n.º 5
0
def set_global(args):
    global pkg_path
    global output_dir 
    global output_rootfs_dir
    global sh_parted
    global storage_generator
    pkg_path = args["pkg_path"]
    output_dir = args["output_path"]
    output_rootfs_dir = ops.path_join(iopc.getOutputRootDir(), "qemu")
    sh_parted=ops.path_join(pkg_path, sh_parted)
Exemplo n.º 6
0
def set_global(args):
    global pkg_path
    global output_dir
    global arch
    global src_image_cfg
    global output_platform_dir
    global install_platform_dao

    pkg_path = args["pkg_path"]
    output_dir = args["output_path"]
    arch = ops.getEnv("ARCH_ALT")
    output_platform_dir = ops.path_join(iopc.getOutputRootDir(), "platform")
Exemplo n.º 7
0
def set_global(args):
    global pkg_path
    global output_dir
    global arch
    global output_platform_dir
    global install_platform_dao
    global dao_script

    pkg_path = args["pkg_path"]
    output_dir = args["output_path"]
    arch = ops.getEnv("ARCH_ALT")
    output_platform_dir = ops.path_join(iopc.getOutputRootDir(), "platform")
    dao_script = ops.path_join(output_platform_dir, "dao.py")

    install_platform_dao = False
    if ops.getEnv("INSTALL_PLATFORM_DAO") == 'y':
        install_platform_dao = True
Exemplo n.º 8
0
def MAIN_INSTALL(args):
    set_global(args)

    ops.sudo_copyto(ops.path_join(output_dir, squashfs_name),
                    iopc.getOutputRootDir())
    return False