def __init__(self, soc): test = sys.argv[1].split("/")[1] elf = os.path.join(os.environ['ZEPHYR_BUILDS'], test, 'zephyr', 'zephyr.elf') print('elf image: {}'.format(elf)) erb_cmd = '<% elf="{}" %>'.format(elf) MakeFileBuilder.__init__(self, erb_cmd, 'Makefile_zephyr.erb', None)
def __init__(self, soc): c_root = os.path.join(os.environ['TESTS_DIR'], sys.argv[1]) pattern = os.path.join(c_root, '*.c') print('searching for c files as <{}>'.format(pattern)) c_files = glob.glob(pattern) directives = [] for c_file in c_files: # extract_uart_checker(c_file) extract_c_directives(c_file, directives) make_command_line() c_list = ' '.join(c_files) print('found results: {}'.format(c_list)) erb_cmd = '<% input_c="{}"; c_root="{}"; {} %>'.format( c_list, c_root, ';'.join(directives)) MakeFileBuilder.__init__(self, erb_cmd, 'Makefile_c.erb', 'driver.py') self.build_uart_checker(c_files)
def __init__(self): asm_file = os.environ['TESTS_DIR'] + '/' + sys.argv[1] cmd = '<% input_asm="{}"; %>'.format(asm_file) MakeFileBuilder.__init__(self, cmd, 'Makefile_asm.erb', asm_file + '.py') self.build_uart_checker([asm_file])
def __init__(self, soc): asm_file = os.environ['TESTS_DIR'] + '/' + sys.argv[1] cmd = '<% input_asm="{}"; %>'.format(asm_file) MakeFileBuilder.__init__(self, cmd, 'Makefile_compliance.erb', asm_file + '.py')