Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hdlmake
Manage
Activity
Members
Labels
Plan
Issues
20
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
Hdlmake
Commits
d365ae88
Commit
d365ae88
authored
11 years ago
by
Pawel Szostek
Browse files
Options
Downloads
Patches
Plain Diff
add stub for check-manifest command
parent
6cca8428
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/__main__.py
+4
-0
4 additions, 0 deletions
src/__main__.py
src/action/__init__.py
+2
-0
2 additions, 0 deletions
src/action/__init__.py
src/action/check_manifest.py
+19
-0
19 additions, 0 deletions
src/action/check_manifest.py
with
25 additions
and
0 deletions
src/__main__.py
+
4
−
0
View file @
d365ae88
...
...
@@ -29,6 +29,8 @@ def main():
subparsers
=
parser
.
add_subparsers
(
title
=
"
commands
"
,
dest
=
"
command
"
)
check_env
=
subparsers
.
add_parser
(
"
check-env
"
,
help
=
"
check environment for HDLMAKE-related settings
"
)
check_manifest
=
subparsers
.
add_parser
(
"
check-manifest
"
,
help
=
"
check manifest for formal correctness
"
)
check_manifest
.
add_argument
(
"
--top
"
,
help
=
"
indicate path to the top manifest
"
,
default
=
None
)
manifest_help
=
subparsers
.
add_parser
(
"
manifest-help
"
,
help
=
"
print manifest file variables description
"
)
make_sim
=
subparsers
.
add_parser
(
"
make-sim
"
,
help
=
"
generate a simulation Makefile
"
)
make_sim
.
add_argument
(
"
--append
"
,
help
=
"
append generated makefile to the existing one
"
,
default
=
False
,
action
=
"
store_true
"
)
...
...
@@ -85,6 +87,8 @@ def main():
if
options
.
command
==
"
check-env
"
:
env
.
check_env
(
verbose
=
True
)
quit
()
if
options
.
command
==
"
check-manifest
"
:
env
.
check_manifest
(
modules_pool
.
get_top_module
().
manifest
,
verbose
=
True
)
modules_pool
.
process_top_module_manifest
()
...
...
This diff is collapsed.
Click to expand it.
src/action/__init__.py
+
2
−
0
View file @
d365ae88
#!/usr/bin/env python
from
check_manifest
import
CheckManifest
from
clean
import
CleanModules
from
default
import
Default
from
fetch
import
FetchModules
...
...
@@ -12,3 +13,4 @@ from merge_cores import MergeCores
from
quartus_project
import
GenerateQuartusProject
from
remote_synthesis
import
GenerateRemoteSynthesisMakefile
from
simulation
import
GenerateSimulationMakefile
This diff is collapsed.
Click to expand it.
src/action/check_manifest.py
0 → 100644
+
19
−
0
View file @
d365ae88
from
action
import
Action
from
manifest_parser
import
ManifestParser
class
CheckManifest
(
Action
):
def
_check_options
(
self
):
if
not
self
.
options
.
top
:
logging
.
info
(
"
--top is not specified. Current manifest will be treated as the top manifest
"
)
def
run
(
self
):
###
### THIS IS JUST A STUB
###
manifest_parser
=
ManifestParser
()
manifest_parser
.
add_arbitrary_code
(
"
__manifest=
\"
"
+
self
.
path
+
"
\"
"
)
manifest_parser
.
add_arbitrary_code
(
global_mod
.
options
.
arbitrary_code
)
opt_map
=
manifest_parser
.
parse
()
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment