def PAR(env, target, source): """ A pseudo-builder wrapper for the Xilinx par """ config = utils.read_config(env) env["PAR_SOURCES"] = source env["PAR_TARGETS"] = target _par_builder.__call__(env, target, source) return par_utils.get_par_filename(config)
def generate(env): env["PAR_COMMAND"] = _detect(env) config = utils.read_config(env) par_utils.create_par_dir(config) par_file = par_utils.get_par_filename(config) flag_string = par_utils.get_build_flags_string(config) env.SetDefault( PAR_OUTFILE=par_file, PAR_FLAGSTRING=flag_string, PAR_COM="$PAR_COMMAND $PAR_FLAGSTRING $PAR_SOURCES $PAR_TARGETS") env.AddMethod(PAR, 'par') return None
def generate(env): env["PAR_COMMAND"] = _detect(env) config = utils.read_config(env) par_utils.create_par_dir(config) par_file = par_utils.get_par_filename(config) flag_string = par_utils.get_build_flags_string(config) env.SetDefault( PAR_OUTFILE = par_file, PAR_FLAGSTRING = flag_string, PAR_COM = "$PAR_COMMAND $PAR_FLAGSTRING $PAR_SOURCES $PAR_TARGETS" ) env.AddMethod(PAR, 'par') return None
def get_par_targets(env): config = utils.read_config(env) return par_utils.get_par_filename(config, absolute=True)
def test_get_output_par_file(self): config = self.config par_fn = par_utils.get_par_filename(config, absolute = True)