OpenCores
URL https://opencores.org/ocsvn/radiohdl/radiohdl/trunk

Subversion Repositories radiohdl

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /radiohdl/trunk/core
    from Rev 5 to Rev 7
    Reverse comparison

Rev 5 → Rev 7

/common_radiohdl.py
1,3 → 1,21
###############################################################################
#
# Copyright 2018 Stichting Nederlandse Wetenschappelijk Onderzoek Instituten
# ASTRON Netherlands Institute for Radio Astronomy
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
###############################################################################
 
import os
import inspect
/generate_ip_libs
55,7 → 55,7
script += 'exit $exit_code\n'
# execute script
print("compiling {} ... ".format(vhdl_file))
return_code = call(script, stdout=None, stderr=STDOUT, shell=True)
return_code = call(script, stdout=None, stderr=STDOUT, shell=True, exectuable="/bin/bash")
# qmegawiz is very sloppy with it's exitcodes. We assume 0 is OK although this not always the case. :-(
if return_code == 0:
print("*** Generation (probably) OK\n")
89,7 → 89,7
script += 'exit $exit_code\n'
# execute script
print("compiling {} ... , output-dir = {}".format(vhdl_file, outputdir))
return_code = call(script, stdout=None, stderr=STDOUT, shell=True)
return_code = call(script, stdout=None, stderr=STDOUT, shell=True, executable="/bin/bash")
if return_code == 0:
print("*** Generation OK\n")
else:
119,7 → 119,7
script += 'exit $exit_code\n'
# execute script
print("compiling {} ... ".format(tcl_file))
return_code = call(script, stdout=None, stderr=STDOUT, shell=True)
return_code = call(script, stdout=None, stderr=STDOUT, shell=True, executable="/bin/bash")
if return_code == 0:
print("*** Generation OK\n")
else:
/hdl_libraries_wizard.py
553,15 → 553,18
destinations = key_values[1::2]
file_io = list(zip(sources, destinations))
for fpn_io in file_io:
sourcePathName = cm.expand_file_path_name(fpn_io[0], lib_path)
destinationPath = cm.expand_file_path_name(fpn_io[1], build_dir_path)
# print("Copy '{}'' to '{}'".format(sourcePathName, destinationPath))
if isfile(sourcePathName):
file_count += 1
shutil.copy(sourcePathName, destinationPath) # copy file
else:
dir_count += 1
copy_tree(sourcePathName, destinationPath) # copy directory tree (will create new destinationPath directory)
try:
sourcePathName = cm.expand_file_path_name(fpn_io[0], lib_path)
destinationPath = cm.expand_file_path_name(fpn_io[1], build_dir_path)
# print("Copy '{}'' to '{}'".format(sourcePathName, destinationPath))
if isfile(sourcePathName):
shutil.copy(sourcePathName, destinationPath) # copy file
file_count += 1
else:
copy_tree(sourcePathName, destinationPath) # copy directory tree (will create new destinationPath directory)
dir_count += 1
except:
print("Could not copy source {} to desination {}".format(sourcePathName,destinationPath))
print("Copied {} files and {} directories for {} libraries".format(file_count, dir_count, lib_count))
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.