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
71bbcba2
Commit
71bbcba2
authored
May 18, 2016
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the --reverse option to the list-files command
parent
b724508c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
__main__.py
hdlmake/__main__.py
+1
-0
new_dep_solver.py
hdlmake/new_dep_solver.py
+4
-1
No files found.
hdlmake/__main__.py
View file @
71bbcba2
...
...
@@ -259,6 +259,7 @@ def _get_parser():
listmod
.
add_argument
(
"--terse"
,
help
=
"do not print comments"
,
default
=
False
,
action
=
"store_true"
,
dest
=
"terse"
)
listfiles
=
subparsers
.
add_parser
(
"list-files"
,
help
=
"List all files in a form of a space-separated string"
)
listfiles
.
add_argument
(
"--delimiter"
,
help
=
"set delimitier for the list of files"
,
dest
=
"delimiter"
,
default
=
' '
)
listfiles
.
add_argument
(
"--reverse"
,
help
=
"reverse the order for the list of files"
,
dest
=
"reverse"
,
default
=
False
,
action
=
"store_true"
)
merge_cores
=
subparsers
.
add_parser
(
"merge-cores"
,
help
=
"Merges entire synthesizable content of an project into a pair of VHDL/Verilog files"
)
merge_cores
.
add_argument
(
"--dest"
,
help
=
"name for output merged file"
,
dest
=
"dest"
,
default
=
None
)
synthesis_proj
=
subparsers
.
add_parser
(
"project"
,
help
=
"create/update a project for the appropriated tool"
)
...
...
hdlmake/new_dep_solver.py
View file @
71bbcba2
...
...
@@ -123,7 +123,10 @@ def make_dependency_sorted_list(fileset, purge_unused=True):
non_dependable
=
[
f
for
f
in
fileset
if
not
isinstance
(
f
,
DepFile
)]
dependable
.
sort
(
key
=
lambda
f
:
f
.
file_path
.
lower
())
# Not necessary, but will tend to group files more nicely in the output.
dependable
.
sort
(
key
=
DepFile
.
get_dep_level
)
return
non_dependable
+
dependable
sorted_list
=
non_dependable
+
dependable
if
global_mod
.
options
.
reverse
==
True
:
sorted_list
=
list
(
reversed
(
sorted_list
))
return
sorted_list
def
make_dependency_set
(
fileset
,
top_level_entity
):
"""Create a set of all files required to build the named top_level_entity."""
...
...
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