Ejemplo n.º 1
0
 def __init__(self, Setts):
     self.log = LogWrapper.getlogger()
     self.Setts = Setts
     self.CmakeBuild_Dir = join(Setts.DepsDirectory, "cmake")
     self.Src_Dir = abspath(join(self.Setts.DepsDirectory, "..", "src"))
     self.Packages_Dir = abspath(join(self.Setts.DepsDirectory, "packages"))
     self.Patched_Dir = abspath(join(self.Setts.DepsDirectory, "patched"))
Ejemplo n.º 2
0
    def __init__(self):
        self.log = LogWrapper.getlogger()

        # Process options
        self.ExePath = None
        self.WorkingDir = None
        self.Options = None
    def __init__(self, solpath):
        super().__init__()
        self.log = LogWrapper.getlogger()
        self.Options = None

        # Path to the MSBuild Exe
        self.ExePath = MSBuildProcess.MSBuildExe

        # Configuration to use, e.g. "Release", "Debug"
        self.VsConfig = MSBuildProcess.VsConfig_Default

        # Platform to use, e.g. "Win32", "x64"
        self.VsPlatform = MSBuildProcess.VsPlatform_Default

        # Target defines which project within the solution to build and if to clean / rebuild
        # e.g. "lpc10:Rebuild"
        self.Target = None

        # Build Output Directory
        # see http://www.pseale.com/blog/IHateYouOutDirParameter.aspx
        self.OutDir = None

        # Additional options to be passed to msbuild
        self.AdditionalOptions = None

        # Path to the Solution File
        self.SolutionPath = solpath
Ejemplo n.º 4
0
 def __init__(self):
     self.url = ""
     self.destsubdir = ""
     self.md5hash = ""
     self.version = ""
     self.arch_filename = ""
     self.arch_filepath = ""
     self.subdirmove = 0
     self.log = LogWrapper.getlogger()
    def __init__(self):
        super().__init__()
        self.log = LogWrapper.getlogger()
        self.ExePath = "cmake.exe"

        # CMake Process options
        self.Generator = None
        self.AdditionalOptions = None
        self.SrcDir = None
Ejemplo n.º 6
0
 def get_configpath(self):
     log = LogWrapper.getlogger()
     """Determine which config filename / path to use"""
     self.platform = platform.system()
     settingsfile = ""
     if self.platform == "Windows":
        settingsfile = "Settings_win32.xml"
     elif self.platform == "Linux":
         settingsfile = "Settings_linux.xml"
     else:
         log.critical("Unsupported platform")
         self.ConfigPath = None
     self.log.info("Platform identified as: " + self.platform)
     self.log.info("Settings file: " + settingsfile)
     self.ConfigPath = abspath(settingsfile)
     return self.ConfigPath
Ejemplo n.º 7
0
    def __init__(self):
        """Dependency Settings"""
        super().__init__()
        self.log = LogWrapper.getlogger()

        # Path to the config file
        self.ConfigPath = None
        self.platform = None

        # XML Root Tag
        self.xmlroot = None

        # Directory properties
        self.DepsDirectory = ""
        self.ArchiveDirectory = ""
        self.GCCVersion = ""

        # List of Sources
        self.sources = []
Ejemplo n.º 8
0
 def __init__(self, Setts):
     super().__init__(Setts)
     self.Patches_Dir = join(self.Src_Dir, "zlib-1.2.8", "patches")
     self.log = LogWrapper.getlogger()
Ejemplo n.º 9
0
 def __init__(self, Setts):
     super().__init__(Setts)
     self.Patches_Dir = join(self.Src_Dir, "lame-3.99.5", "patches")
     self.ModifiedSrc_Dir = join(self.Src_Dir, "lame-3.99.5", "modifiedsrc")
     self.log = LogWrapper.getlogger()
Ejemplo n.º 10
0
#!python3
"""
Script Wrapper for uploading firmware to LPC Expresso boards via LPCLink-1
"""

import sys, logging, argparse
from lpc_settings import LPCSettings
from pylib.logwrapper import LogWrapper
from pylib.process import Process
from os.path import abspath, dirname, join

try:

    # Setup logging
    LogWrapper.LogLevel = logging.DEBUG
    LogWrapper.setup()
    log = LogWrapper.getlogger()


    # Function to Boot the LPC Board
    def bootlpc():
        log.info("Booting the LPC Board")
        proc = Process()
        proc.ExePath = Setts.bootbin
        proc.Start()





    ROOT = abspath(dirname(__file__))
Ejemplo n.º 11
0
 def __init__(self, Setts):
     super().__init__(Setts)
     self.Patches_Dir = join(self.Src_Dir, "sox-" + self.Setts.SoxVersion, "patches")
     self.ModifiedSrc_Dir = join(self.Src_Dir, "sox-" + self.Setts.SoxVersion, "modifiedsrc")
     self.log = LogWrapper.getlogger()