()
| 85 | return similar_num |
| 86 | |
| 87 | def get_socName_from_rtconfig(): |
| 88 | socName = None |
| 89 | rtconfig_file = open('rtconfig.h', 'r') |
| 90 | if rtconfig_file: |
| 91 | for line in rtconfig_file.readlines(): |
| 92 | if 'SOC' in line and 'FAMILY' not in line and 'SERIES' not in line: |
| 93 | socName = line.strip().split('_')[-1] |
| 94 | rtconfig_file.close() |
| 95 | return socName |
| 96 | |
| 97 | def get_pack_from_env(): |
| 98 | if os.environ.get('ENV_ROOT') == None: |
no test coverage detected