Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
dc19b1b0
Commit
dc19b1b0
authored
May 23, 2017
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve action checking before writing the Makefile
parent
caa17392
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
makefile_writer.py
hdlmake/tools/makefile_writer.py
+4
-1
No files found.
hdlmake/tools/makefile_writer.py
View file @
dc19b1b0
...
...
@@ -59,11 +59,14 @@ def _load_sim_tool(modules_pool):
def
write_makefile
(
modules_pool
):
"""Function that detects the appropriated tool and write the Makefile"""
manifest_project_dict
=
modules_pool
.
get_config_dict
()
action
=
manifest_project_dict
[
'action'
]
action
=
manifest_project_dict
.
get
(
'action'
)
if
action
==
"simulation"
:
sim_writer
=
_load_sim_tool
(
modules_pool
)
sim_writer
.
simulation_makefile
(
modules_pool
)
elif
action
==
"synthesis"
:
syn_writer
=
_load_syn_tool
(
modules_pool
)
syn_writer
.
synthesis_makefile
(
modules_pool
)
else
:
logging
.
error
(
"Unknown requested action:
%
s"
,
action
)
quit
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment