Exemple #1
0
    def __init__(self, target, options=None, notify=None, macros=None):
        self.target = target
        self.name = self.__class__.__name__
        self.hook = hooks.Hook(target, self)

        self.legacy_ignore_dirs = LEGACY_IGNORE_DIRS - set(
            [target.name, LEGACY_TOOLCHAIN_NAMES[self.name]])

        if notify is not None:
            self.notify = notify
        else:
            self.notify = print_notify

        if options is None:
            self.options = []
        else:
            self.options = options
        self.macros = macros or []
        self.options.extend(BUILD_OPTIONS)
        if self.options:
            self.info("Build Options: %s" % (', '.join(self.options)))

        self.obj_path = join("TARGET_" + target.name, "TOOLCHAIN_" + self.name)

        self.symbols = None
        self.labels = None
        self.has_config = False

        self.build_all = False
        self.timestamp = time()
Exemple #2
0
    def __init__(self,
                 target,
                 options=None,
                 notify=None,
                 macros=None,
                 silent=False,
                 extra_verbose=False):
        self.target = target
        self.name = self.__class__.__name__
        self.hook = hooks.Hook(target, self)
        self.silent = silent
        self.output = ""

        self.legacy_ignore_dirs = LEGACY_IGNORE_DIRS - set(
            [target.name, LEGACY_TOOLCHAIN_NAMES[self.name]])

        if notify:
            self.notify_fun = notify
        elif extra_verbose:
            self.notify_fun = self.print_notify_verbose
        else:
            self.notify_fun = self.print_notify

        self.options = options if options is not None else []

        self.macros = macros or []
        self.options.extend(BUILD_OPTIONS)
        if self.options:
            self.info("Build Options: %s" % (', '.join(self.options)))

        self.obj_path = join("TARGET_" + target.name, "TOOLCHAIN_" + self.name)

        self.symbols = None
        self.labels = None
        self.has_config = False

        self.build_all = False
        self.timestamp = time()
        self.jobs = 1

        self.CHROOT = None

        self.mp_pool = None