| /rk3399_rockchip-uboot/test/py/ |
| H A D | u_boot_console_base.py | 47 def __init__(self, console, check_type): argument 48 self.console = console 49 self.check_type = check_type 51 def __enter__(self): argument 52 self.console.disable_check_count[self.check_type] += 1 53 self.console.eval_bad_patterns() 55 def __exit__(self, extype, value, traceback): argument 56 self.console.disable_check_count[self.check_type] -= 1 57 self.console.eval_bad_patterns() 64 def __init__(self, console, timeout): argument [all …]
|
| H A D | multiplexed_log.py | 22 def __init__(self, logfile, name, chained_file): argument 35 self.logfile = logfile 36 self.name = name 37 self.chained_file = chained_file 39 def close(self): argument 51 def write(self, data, implicit=False): argument 66 self.logfile.write(self, data, implicit) 67 if self.chained_file: 68 self.chained_file.write(data) 70 def flush(self): argument [all …]
|
| H A D | u_boot_spawn.py | 26 def __init__(self, args, cwd=None): argument 38 self.waited = False 39 self.buf = '' 40 self.output = '' 41 self.logfile_read = None 42 self.before = '' 43 self.after = '' 44 self.timeout = None 49 self.re_vt100 = re.compile('(\x1b\[|\x9b)[^@-_a-z]*[@-_a-z]|\x1b[@-_a-z]') 51 (self.pid, self.fd) = pty.fork() [all …]
|
| /rk3399_rockchip-uboot/tools/binman/etype/ |
| H A D | entry.py | 46 def __init__(self, image, etype, node, read_node=True): argument 47 self.image = image 48 self.etype = etype 49 self._node = node 50 self.pos = None 51 self.size = None 52 self.contents_size = 0 53 self.align = None 54 self.align_size = None 55 self.align_end = None [all …]
|
| H A D | u_boot_with_ucode_ptr.py | 23 def __init__(self, image, etype, node): argument 24 Entry_blob.__init__(self, image, etype, node) 25 self.elf_fname = 'u-boot' 26 self.target_pos = None 28 def GetDefaultFilename(self): argument 31 def ObtainContents(self): argument 33 fname = tools.GetInputFilename(self.elf_fname) 38 self.target_pos = int(out[0].split()[0], 16) 39 elif not fdt_util.GetBool(self._node, 'optional-ucode'): 40 self.Raise('Cannot locate _dt_ucode_base_size symbol in u-boot') [all …]
|
| H A D | blob.py | 14 def __init__(self, image, etype, node): argument 15 Entry.__init__(self, image, etype, node) 16 self._filename = fdt_util.GetString(self._node, "filename", self.etype) 18 def ObtainContents(self): argument 19 self._filename = self.GetDefaultFilename() 20 self._pathname = tools.GetInputFilename(self._filename) 21 self.ReadContents() 24 def ReadContents(self): argument 25 with open(self._pathname) as fd: 32 self.data = fd.read() [all …]
|
| H A D | u_boot_dtb_with_ucode.py | 20 def __init__(self, image, etype, node): argument 21 Entry_blob.__init__(self, image, etype, node) 22 self.ucode_data = '' 23 self.collate = False 24 self.ucode_offset = None 25 self.ucode_size = None 27 def GetDefaultFilename(self): argument 30 def ObtainContents(self): argument 31 Entry_blob.ObtainContents(self) 34 ucode_dest_entry = self.image.FindEntryType('u-boot-spl-with-ucode-ptr') [all …]
|
| /rk3399_rockchip-uboot/tools/buildman/ |
| H A D | func_test.py | 178 def setUp(self): argument 179 self._base_dir = tempfile.mkdtemp() 180 self._git_dir = os.path.join(self._base_dir, 'src') 181 self._buildman_pathname = sys.argv[0] 182 self._buildman_dir = os.path.dirname(os.path.realpath(sys.argv[0])) 183 command.test_result = self._HandleCommand 184 self.setupToolchains() 185 self._toolchains.Add('arm-gcc', test=False) 186 self._toolchains.Add('powerpc-gcc', test=False) 189 self._boards = board.Boards() [all …]
|
| H A D | kconfiglib.py | 104 def __init__(self, filename="Kconfig", base_dir=None, print_warnings=True, argument 138 self.syms = {} 141 self.syms_iter = self.syms.values 143 self.syms_iter = self.syms.itervalues 148 self.kconfig_syms = [] 152 self.named_choices = {} 155 self.choices = [] 156 self.menus = [] 157 self.comments = [] 163 sym.config = self [all …]
|
| H A D | test.py | 106 def setUp(self): argument 108 self.commits = [] 117 self.commits.append(comm) 120 self.boards = board.Boards() 122 self.boards.AddBoard(board.Board(*brd)) 123 self.boards.SelectBoards([]) 130 self.toolchains = toolchain.Toolchains() 131 self.toolchains.Add('arm-linux-gcc', test=False) 132 self.toolchains.Add('sparc-linux-gcc', test=False) 133 self.toolchains.Add('powerpc-linux-gcc', test=False) [all …]
|
| H A D | builder.py | 114 def __init__(self, config_filename, target): argument 115 self.target = target 116 self.config = {} 118 self.config[fname] = {} 120 def Add(self, fname, key, value): argument 121 self.config[fname][key] = value 123 def __hash__(self): argument 125 for fname in self.config: 126 for key, value in self.config[fname].iteritems(): 204 def __init__(self, rc, err_lines, sizes, func_sizes, config): argument [all …]
|
| H A D | board.py | 11 def __init__(self, expr): argument 17 self._expr = expr 18 self._re = re.compile(expr) 20 def Matches(self, props): argument 29 if self._re.match(prop): 33 def __str__(self): argument 34 return self._expr 42 def __init__(self): argument 43 self._expr_list = [] 44 self._board_count = 0 [all …]
|
| H A D | toolchain.py | 23 def __init__(self, arch): argument 33 HTMLParser.__init__(self) 34 self.arch_link = None 35 self.links = [] 36 self._match = '_%s-' % arch 38 def handle_starttag(self, tag, attrs): argument 43 self.links.append(value) 44 if self._match in value: 45 self.arch_link = value 59 def __init__(self, fname, test, verbose=False, priority=PRIORITY_CALC, argument [all …]
|
| /rk3399_rockchip-uboot/tools/binman/ |
| H A D | image.py | 50 def __init__(self, name, node): argument 51 self._node = node 52 self._name = name 53 self._size = None 54 self._align_size = None 55 self._pad_before = 0 56 self._pad_after = 0 57 self._pad_byte = 0 58 self._filename = '%s.bin' % self._name 59 self._sort = False [all …]
|
| H A D | func_test.py | 57 def setUpClass(self): argument 59 self._binman_dir = os.path.dirname(os.path.realpath(sys.argv[0])) 60 self._binman_pathname = os.path.join(self._binman_dir, 'binman') 63 self._indir = tempfile.mkdtemp(prefix='binmant.') 77 self._output_setup = False 80 with open(self.TestFile('u_boot_ucode_ptr')) as fd: 84 with open(self.TestFile('descriptor.bin')) as fd: 88 def tearDownClass(self): argument 90 if self._indir: 91 shutil.rmtree(self._indir) [all …]
|
| H A D | fdt_test.py | 21 def setUpClass(self): argument 22 self._binman_dir = os.path.dirname(os.path.realpath(sys.argv[0])) 23 self._indir = tempfile.mkdtemp(prefix='binmant.') 24 tools.PrepareOutputDir(self._indir, True) 26 def TestFile(self, fname): argument 27 return os.path.join(self._binman_dir, 'test', fname) 29 def GetCompiled(self, fname): argument 30 return fdt_util.EnsureCompiled(self.TestFile(fname)) 32 def _DeleteProp(self, dt): argument 36 def testFdtNormal(self): argument [all …]
|
| /rk3399_rockchip-uboot/tools/dtoc/ |
| H A D | fdt.py | 40 def __init__(self, node, offset, name, bytes): argument 41 self._node = node 42 self._offset = offset 43 self.name = name 44 self.value = None 45 self.bytes = str(bytes) 47 self.type = TYPE_BOOL 48 self.value = True 50 self.type, self.value = self.BytesToValue(bytes) 52 def GetPhandle(self): argument [all …]
|
| H A D | dtb_platdata.py | 144 def __init__(self, dtb_fname, include_disabled): argument 145 self._fdt = None 146 self._dtb_fname = dtb_fname 147 self._valid_nodes = None 148 self._include_disabled = include_disabled 149 self._outfile = None 150 self._lines = [] 151 self._aliases = {} 153 def setup_output(self, fname): argument 163 self._outfile = sys.stdout [all …]
|
| /rk3399_rockchip-uboot/tools/patman/ |
| H A D | patchstream.py | 62 def __init__(self, series, name=None, is_log=False): argument 63 self.skip_blank = False # True to skip a single blank line 64 self.found_test = False # Found a TEST= line 65 self.lines_after_test = 0 # MNumber of lines found after TEST= 66 self.warn = [] # List of warnings we have collected 67 self.linenum = 1 # Output line number we are up to 68 self.in_section = None # Name of start...END section we are in 69 self.notes = [] # Series notes 70 self.section = [] # The current section...END section 71 self.series = series # Info about the patch series [all …]
|
| H A D | cros_subprocess.py | 56 def __init__(self, args, stdin=None, stdout=PIPE_PTY, stderr=PIPE_PTY, argument 83 super(Popen, self).__init__(args, stdin=stdin, 95 self.stdout = os.fdopen(stdout_pty[0]) 97 self.stderr = os.fdopen(stderr_pty[0]) 103 def CommunicateFilter(self, output): argument 149 if self.stdin: 152 self.stdin.flush() 154 write_set.append(self.stdin) 156 self.stdin.close() 157 if self.stdout: [all …]
|
| H A D | series.py | 32 def __init__(self): argument 33 self.cc = [] 34 self.to = [] 35 self.cover_cc = [] 36 self.commits = [] 37 self.cover = None 38 self.notes = [] 39 self.changes = {} 40 self.allow_overwrite = False 45 self._generated_cc = {} [all …]
|
| H A D | test.py | 24 def testBasic(self): argument 85 self.assertEqual(rc, 0) 90 def GetData(self, data_type): argument 207 def SetupData(self, data_type): argument 210 data = self.GetData(data_type) 215 def testGood(self): argument 217 inf = self.SetupData('good') 219 self.assertEqual(result.ok, True) 220 self.assertEqual(result.problems, []) 221 self.assertEqual(result.errors, 0) [all …]
|
| H A D | commit.py | 26 def __init__(self, hash): argument 27 self.hash = hash 28 self.subject = None 29 self.tags = [] 30 self.changes = {} 31 self.cc_list = [] 32 self.signoff_set = set() 33 self.notes = [] 35 def AddChange(self, version, info): argument 42 if not self.changes.get(version): [all …]
|
| /rk3399_rockchip-uboot/scripts/ |
| H A D | avbtool.py | 65 def __init__(self, message): argument 66 Exception.__init__(self, message) 86 def __init__(self, algorithm_type, hash_name, hash_num_bytes, argument 88 self.algorithm_type = algorithm_type 89 self.hash_name = hash_name 90 self.hash_num_bytes = hash_num_bytes 91 self.signature_num_bytes = signature_num_bytes 92 self.public_key_num_bytes = public_key_num_bytes 93 self.padding = padding 350 def __init__(self, key_path): argument [all …]
|
| /rk3399_rockchip-uboot/tools/ |
| H A D | rkmux.py | 26 def __init__(self, cols=None): argument 28 self.bits, self.attr, self.reset_val, self.desc = ( 30 self.desc = [self.desc] 32 self.bits = '' 33 self.attr = '' 34 self.reset_val = '' 35 self.desc = [] 37 def Setup(self, cols): argument 38 self.bits, self.attr, self.reset_val = cols[0:3] 40 self.desc.append(cols[3]) [all …]
|