예제 #1
0
파일: barebox.py 프로젝트: AndreySV/elbe
    def __init__(self):

        imgname = Edit("Image name", "barebox-phytec-phycore-imx6dl-som-nand-256mb.img")
        defconfig = Edit("Def config", "imx_v7_defconfig")
        cross = Edit("CROSS_COMPILE", "arm-linux-gnueabihf-")
        k_version = Edit("BareBox Version", "2016.10")

        grid_elements = [
            {"imgname":imgname, "defconfig":defconfig},
            {"cross":cross, "k_version":k_version}
        ]

        super(BareBox, self).__init__(grid_elements)
예제 #2
0
    def __init__(self):

        loadaddr = Edit("Load Addr", "0x800800")
        defconfig = Edit("defconfig", "omap2plus_defconfig")
        imgtype = RadioGroup("Image Format", ImgType, ImgType.BZ)
        cross = Edit("Cross compile", "arm-linux-gnueabihf-")
        k_version = Edit("Kernel version", "4.4")

        grid_elements = [
            {"loadaddr":loadaddr, "defconfig":defconfig},
            {"imgtype":imgtype, "cross_compile":cross},
            {"k_version":k_version}
        ]

        super(Kernel, self).__init__(grid_elements)
예제 #3
0
    def __init__(self, grid_elements):

        self.deb = {}
        self.tmpl_dir = None
        self.hint = None

        fullname = os.environ.get('DEBFULLNAME', "Max Mustermann")
        email = os.environ.get('DEBEMAIL', "*****@*****.**")

        p_name = Edit("Name", "elbe")
        p_version = Edit("Version", "1.0")
        p_arch = RadioGroup("Arch", Arch, Arch.ARM64)
        src_fmt = RadioGroup("Format", Format, Format.NATIVE)
        release = RadioGroup("Release", Release, Release.STABLE)

        m_name = Edit("Maintainer", fullname)
        m_mail = Edit("Mail", email)

        grid = [
            {
                "p_name": p_name,
                "p_version": p_version
            },
            {
                "p_arch": p_arch,
                "release": release
            },
            {
                "source_format": src_fmt
            },
            {
                "m_name": m_name,
                "m_mail": m_mail
            },
        ]

        for element in grid_elements:
            grid.append(element)

        super(Panel, self).__init__(grid)
예제 #4
0
    def __init__(self):

        defconfig = Edit("defconfig", "mx7dsabresd_defconfig")
        cross = Edit("Cross compile", "arm-linux-gnueabihf-")
        imgname = Edit("Image name", "u-boot-dtb.imx")
        k_version = Edit("U-Boot Version")

        grid_elements = [
            {
                "defconfig": defconfig,
                "imgname": imgname
            },
            {
                "cross_compile": cross,
                "k_version": k_version
            },
        ]

        super(UBoot, self).__init__(grid_elements)

        self.get_version()
        k_version.base_widget.set_edit_text(self.verstr)