Changeset 81475250 in mainline
- Timestamp:
- 2012-04-08T11:40:35Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d9f53877
- Parents:
- 1dbe465 (diff), 6582b36 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- tools
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/checkers/clang.py
r1dbe465 r81475250 114 114 for job in jobs: 115 115 if (not clang(rootdir, job)): 116 print 116 print() 117 117 print("Failed job: %s" % job) 118 118 return -
tools/checkers/stanse.py
r1dbe465 r81475250 127 127 for job in jobs: 128 128 if (not stanse(rootdir, job)): 129 print 129 print() 130 130 print("Failed job: %s" % job) 131 131 return -
tools/checkers/vcc.py
r1dbe465 r81475250 204 204 for job in jobs: 205 205 if (not vcc(vcc_path, rootdir, job)): 206 print 206 print() 207 207 print("Failed job: %s" % job) 208 208 return 209 209 210 print 210 print() 211 211 print("All jobs passed") 212 212 -
tools/filldir.py
r1dbe465 r81475250 37 37 38 38 if len(sys.argv) < 3: 39 print 'Usage: filldir <parent-dir> <count>'39 print('Usage: filldir <parent-dir> <count>') 40 40 exit(2) 41 41 -
tools/gentestfile.py
r1dbe465 r81475250 36 36 37 37 if len(sys.argv) < 2: 38 print "Usage: gentestfile.py <count of 64-bit numbers to output>"38 print("Usage: gentestfile.py <count of 64-bit numbers to output>") 39 39 exit() 40 40 41 m = long(sys.argv[1])41 m = int(sys.argv[1]) 42 42 i = 0 43 43 pow_2_64 = 2 ** 64 -
tools/mkfat.py
r1dbe465 r81475250 247 247 return bs 248 248 249 def create_lfn_entry((name, index)) : 249 def create_lfn_entry(name_index) : 250 (name, index) = name_index 250 251 entry = xstruct.create(LFN_ENTRY) 251 252 … … 293 294 return [dir_entry] 294 295 295 n = len(name) / 13 + 1296 n = (int) (len(name) / 13 + 1) 296 297 names = [(name[i * 13: (i + 1) * 13 + 1], i + 1) for i in range(n)] 297 298 … … 299 300 entries[0].pos |= 0x40 300 301 301 fname11 = dir_entry.name + dir_entry.ext302 fname11 = str(dir_entry.name + dir_entry.ext) 302 303 303 304 csum = 0 -
tools/mkuimage.py
r1dbe465 r81475250 124 124 header.img_type = 2 # Kernel 125 125 header.compression = 0 # None 126 header.img_name = image_name 126 header.img_name = image_name.encode('ascii') 127 127 128 128 header_crc = calc_crc32(header.pack()) … … 140 140 signed_crc = zlib.crc32(byteseq, 0) 141 141 if signed_crc < 0: 142 return (long(signed_crc) + (long(2) ** long(32))) # 2^32L142 return signed_crc + (1 << 32) 143 143 else: 144 144 return signed_crc … … 148 148 def print_syntax(cmd): 149 149 print("syntax: " + cmd + " [<options>] <raw_image> <uImage>") 150 print 150 print() 151 151 print("\traw_image\tInput image name (raw binary data)") 152 152 print("\tuImage\t\tOutput uImage name (U-Boot image)") 153 print 153 print() 154 154 print("options:") 155 155 print("\t-name <name>\tImage name (default: 'Noname')") -
tools/xstruct.py
r1dbe465 r81475250 32 32 33 33 import struct 34 import sys 34 35 import types 35 36 37 integer_types = (int, long) if sys.version < '3' else (int,) 38 36 39 ranges = { 37 'B': ( (int, long), 0x00, 0xff),38 'H': ( (int, long), 0x0000, 0xffff),39 'L': ( (int, long), 0x00000000, 0xffffffff),40 'Q': ( (int, long), 0x0000000000000000, 0xffffffffffffffff),41 'b': ( (int, long), -0x80, 0x7f),42 'h': ( (int, long), -0x8000, 0x7fff),43 'l': ( (int, long), -0x80000000, 0x7fffffff) ,44 'q': ( (int, long), -0x8000000000000000, 0x7fffffffffffffff),40 'B': (integer_types, 0x00, 0xff), 41 'H': (integer_types, 0x0000, 0xffff), 42 'L': (integer_types, 0x00000000, 0xffffffff), 43 'Q': (integer_types, 0x0000000000000000, 0xffffffffffffffff), 44 'b': (integer_types, -0x80, 0x7f), 45 'h': (integer_types, -0x8000, 0x7fff), 46 'l': (integer_types, -0x80000000, 0x7fffffff) , 47 'q': (integer_types, -0x8000000000000000, 0x7fffffffffffffff), 45 48 } 46 49
Note:
See TracChangeset
for help on using the changeset viewer.