Skip to content

Commit

Permalink
[RZ/A1H] changes copy scheme for iodefines/iobitmasks
Browse files Browse the repository at this point in the history
RZ's toolchain assumes that iodefines/iobitmasks dirs. are structured real not flat.
Adds some code to toolchain::copy_files
  • Loading branch information
tkuro-rel committed Nov 5, 2014
1 parent d517c28 commit 2fab4af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions workspace_tools/toolchains/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,10 @@ def copy_files(self, files_paths, trg_path, rel_path=None):
for source in files_paths:
if rel_path is not None:
relative_path = relpath(source, rel_path)
elif "RZ_A1H" in source and "iobitmasks" in source:
relative_path = source[source.rindex("iobitmasks"):]
elif "RZ_A1H" in source and "iodefines" in source:
relative_path = source[source.rindex("iodefines"):]
else:
_, relative_path = split(source)

Expand Down

0 comments on commit 2fab4af

Please sign in to comment.