index 3afaf885ab895e549a8ddb32497a976a136f8c31..c8450045f63be388e41adc8f4f49554b1ba2719d 100755 (executable)
def gen_rm_resasg_csv():
output = ""
for entry in utypes:
- (dev, subtype, start, count) = entry
+ (dev, subtype, count, start) = entry
output += "%s,%s,%d,%d\n" % (dev, subtype, start, count)
return output
description='RM-autogen.py - Auto generate the Resource Management data')
parser.add_argument('-s', '--soc', required=True, dest='soc',
- action='store', choices=['j721e', 'am65x'],
+ action='store', choices=['j721e', 'am6x', 'am65x_sr2'],
help='SoC name')
parser.add_argument('-o', '--output', required=True, dest='output',
print(args)
# Parse docuemntation and extract host_id defines
-output = evalcmd('cat %s/output/%s/sec_proxy/hosts.h | grep "#define HOST_ID" | awk -F"[ ()]*" \'{print $2" " $3}\'' % (args.prefix, args.soc))
+output = evalcmd('cat %s/include/soc/%s/hosts.h | grep "#define HOST_ID" | awk -F"[ ()]*" \'{print $2" " $3}\'' % (args.prefix, args.soc))
for line in output.split('\n'):
if (line == ''):
continue
dict_host[host] = host_id
# Parse docuemntation and extract dev_id and subtype defines
-output = evalcmd('cat %s/output/%s/rm/resasg_types.rst | grep -v "\------" | grep -A100000 "+======" | tail -n +2' % (args.prefix, args.soc))
+output = evalcmd('cat %s/docs/public/5_soc_doc/%s/resasg_types.rst | grep -v "\------" | grep -A100000 "+======" | tail -n +2' % (args.prefix, args.soc))
dev = dev_id = None
for line in output.split('\n'):
array = line.replace(' ', '').split('|')