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
6c9314bc
Commit
6c9314bc
authored
Jun 02, 2016
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused fetch_makefile.py
parent
7b1640a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
52 deletions
+0
-52
fetch_makefile.py
hdlmake/action/fetch_makefile.py
+0
-52
No files found.
hdlmake/action/fetch_makefile.py
deleted
100644 → 0
View file @
7b1640a8
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2013 CERN
# Author: Pawel Szostek (pawel.szostek@cern.ch)
#
# This file is part of Hdlmake.
#
# Hdlmake is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Hdlmake is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Hdlmake. If not, see <http://www.gnu.org/licenses/>.
import
logging
from
hdlmake.makefile_writer
import
MakefileWriter
from
.action
import
Action
class
GenerateFetchMakefile
(
Action
):
def
_check_manifest
(
self
):
if
not
self
.
top_module
.
action
==
"synthesis"
:
logging
.
error
(
"action must be equal to
\"
synthesis
\"
"
)
sys
.
exit
(
"Exiting"
)
if
not
self
.
top_module
.
syn_project
:
logging
.
error
(
"syn_project must be set in the manifest."
)
sys
.
exit
(
"Exiting"
)
def
run
(
self
):
pool
=
self
.
modules_pool
logging
.
info
(
"Generating makefile for fetching modules."
)
if
pool
.
get_fetchable_modules
()
==
[]:
logging
.
error
(
"There are no fetchable modules. "
"No fetch makefile is produced"
)
quit
()
self
.
_check_all_fetched_or_quit
()
self
.
_check_manifest
()
makefile_writer
=
MakefileWriter
()
makefile_writer
.
generate_fetch_makefile
(
pool
)
del
makefile_writer
logging
.
info
(
"Makefile for fetching modules generated."
)
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