Fixedcoregen ISE
This commit is contained in:
@ -10,7 +10,7 @@ def coregen(config, target, log, subprocesses, prefix='.') -> int:
|
||||
package = config.get(f'target.{target}', 'package', fallback='')
|
||||
speedgrade = config.get(f'target.{target}', 'speedgrade', fallback='')
|
||||
coregen_opts = config.get(f'target.{target}', 'coregen_opts', fallback='')
|
||||
files_def = config.get(f'target.{target}', 'files_def', fallback='').split()
|
||||
files_def = config.get(f'target.{target}', 'files_xco', fallback='').split()
|
||||
build_dir = config.get(f'project', 'build_dir', fallback='build')
|
||||
out_dir = config.get(f'project', 'out_dir', fallback='out')
|
||||
|
||||
@ -72,6 +72,10 @@ def coregen(config, target, log, subprocesses, prefix='.') -> int:
|
||||
shutil.copy(f'{build_dir}/{cname}.xco', f'{out_dir}/{cname}.xco')
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
try:
|
||||
shutil.copy(f'{build_dir}/{cname}.ucf', f'{out_dir}/{cname}.ucf')
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
else:
|
||||
return res
|
||||
|
||||
|
||||
Reference in New Issue
Block a user