Skip to content
Snippets Groups Projects
Commit 74c7f77b authored by Randria's avatar Randria
Browse files

resolve some paths issues under cygwin

parent 67327c90
No related branches found
No related tags found
No related merge requests found
...@@ -24,10 +24,10 @@ quartus_copy_files = ...@@ -24,10 +24,10 @@ quartus_copy_files =
../../src/hex hex ../../src/hex hex
quartus_qsf_files = quartus_qsf_files =
$RADIOHDL/boards/uniboard2/libraries/unb2a_board/quartus/unb2a_board.qsf $RADIOHDL/boards/uniboard2a/libraries/unb2a_board/quartus/unb2a_board.qsf
quartus_sdc_files = quartus_sdc_files =
$RADIOHDL/boards/uniboard2/libraries/unb2a_board/quartus/unb2a_board.sdc $RADIOHDL/boards/uniboard2a/libraries/unb2a_board/quartus/unb2a_board.sdc
quartus_tcl_files = quartus_tcl_files =
quartus/unb2a_test_1GbE_pins.tcl quartus/unb2a_test_1GbE_pins.tcl
......
...@@ -50,11 +50,11 @@ quartus_copy_files = ...@@ -50,11 +50,11 @@ quartus_copy_files =
../../src/hex hex ../../src/hex hex
quartus_qsf_files = quartus_qsf_files =
$RADIOHDL/boards/uniboard2/libraries/unb2a_board/quartus/unb2a_board.qsf $RADIOHDL/boards/uniboard2a/libraries/unb2a_board/quartus/unb2a_board.qsf
quartus_sdc_files = quartus_sdc_files =
quartus/unb2a_test_10GbE.sdc quartus/unb2a_test_10GbE.sdc
$RADIOHDL/boards/uniboard2/libraries/unb2a_board/quartus/unb2a_board.sdc $RADIOHDL/boards/uniboard2a/libraries/unb2a_board/quartus/unb2a_board.sdc
quartus_tcl_files = quartus_tcl_files =
quartus/unb2a_test_all_pins.tcl quartus/unb2a_test_all_pins.tcl
......
...@@ -695,9 +695,9 @@ def expand_file_path_name(fpn, dir_path=''): ...@@ -695,9 +695,9 @@ def expand_file_path_name(fpn, dir_path=''):
""" """
filePathName = os.path.expandvars(fpn) # support using environment variables in the file path filePathName = os.path.expandvars(fpn) # support using environment variables in the file path
if os.path.isabs(filePathName): if os.path.isabs(filePathName):
return filePathName # use absolute path to file return filePathName.replace('\\','/') # use absolute path to file
else: else:
return os.path.join(dir_path, filePathName) # derive path to file from the directory path and a directory path to the file return os.path.join(dir_path, filePathName).replace('\\','/') # derive path to file from the directory path and a directory path to the file
def remove_from_list_string(list_str, item_str, sep=' '): def remove_from_list_string(list_str, item_str, sep=' '):
"""Treat the string list_str as a list of items that are separated by sep and then """Treat the string list_str as a list of items that are separated by sep and then
......
...@@ -159,7 +159,7 @@ class CommonDictFile: ...@@ -159,7 +159,7 @@ class CommonDictFile:
paths = [] paths = []
for root, _, files in os.walk(rootDir): for root, _, files in os.walk(rootDir):
if self.fileName in files: if self.fileName in files:
paths.append(root) paths.append(root.replace('\\','/'))
return paths return paths
def read_all_dict_files(self, filePathNames=None): def read_all_dict_files(self, filePathNames=None):
...@@ -418,4 +418,4 @@ if __name__ == '__main__': ...@@ -418,4 +418,4 @@ if __name__ == '__main__':
# Remove the example files # Remove the example files
os.remove(tmpFileName) os.remove(tmpFileName)
os.remove(tmpFilePathName) os.remove(tmpFilePathName)
os.rmdir(tmpDirName) os.rmdir(tmpDirName)
\ No newline at end of file
...@@ -405,7 +405,7 @@ class HdlConfig: ...@@ -405,7 +405,7 @@ class HdlConfig:
build_dirs = [] build_dirs = []
for lib_dict in cm.listify(lib_dicts): for lib_dict in cm.listify(lib_dicts):
lib_name = lib_dict['hdl_lib_name'] lib_name = lib_dict['hdl_lib_name']
build_dirs.append(os.path.join(build_maindir, build_toolset_dir, build_tooldir, lib_name)) # central build main directory with subdirectory per library build_dirs.append(os.path.join(build_maindir, build_toolset_dir, build_tooldir, lib_name).replace('\\','/')) # central build main directory with subdirectory per library
return cm.unlistify(build_dirs) return cm.unlistify(build_dirs)
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
############################################################################### ###############################################################################
echo "Run quartus_generic.sh" echo "Run quartus_generic.sh"
. ${RADIOHDL}/tools/quartus/generic.sh
# Derive generic Quartus tool version related paths from $QUARTUS_DIR that gets defined in quartus_version.sh # Derive generic Quartus tool version related paths from $QUARTUS_DIR that gets defined in quartus_version.sh
# Quartus, SOPC, Nios # Quartus, SOPC, Nios
...@@ -42,4 +43,4 @@ export ALTERA_HW_TCL_KEEP_TEMP_FILES=1 ...@@ -42,4 +43,4 @@ export ALTERA_HW_TCL_KEEP_TEMP_FILES=1
# User synthesis timestamp in FPGA image # User synthesis timestamp in FPGA image
export UNB_COMPILE_STAMPS=1 export UNB_COMPILE_STAMPS=1
export RADIOHDL_SVN_REVISION=`svn info ${RADIOHDL} | grep Revision` export RADIOHDL_SVN_REVISION=`svn info $(cygpath $RADIOHDL) | grep Revision`
...@@ -115,11 +115,11 @@ echo "Bitstream_compression=on" > ${HOME}/.run_rbf_temp_options_file ...@@ -115,11 +115,11 @@ echo "Bitstream_compression=on" > ${HOME}/.run_rbf_temp_options_file
unb_info $0 "Converting ${quartusdir}/${project_rev}.sof to compressed Raw Binary File" unb_info $0 "Converting ${quartusdir}/${project_rev}.sof to compressed Raw Binary File"
if [ -z "${arg_unb2_factory}" ]; then if [ -z "${arg_unb2_factory}" ]; then
unb_exec $0 quartus_cpf -c --option=${HOME}/.run_rbf_temp_options_file ${quartusdir}/${project_rev}.sof ${quartusdir}/${project_rev}.rbf unb_exec $0 quartus_cpf -c --option=$(<${HOME}/.run_rbf_temp_options_file) ${quartusdir}/${project_rev}.sof ${quartusdir}/${project_rev}.rbf
else else
unb_info $0 "-> This is a factory image for Uniboard2: Convert .SOF -> .POF -> .HEXOUT -> .RBF" unb_info $0 "-> This is a factory image for Uniboard2: Convert .SOF -> .POF -> .HEXOUT -> .RBF"
# for more info see: $RADIOHDL/libraries/io/epcs/doc/README.txt # for more info see: $RADIOHDL/libraries/io/epcs/doc/README.txt
unb_exec $0 quartus_cpf -d EPCQL1024 -m ASx4 --option=${HOME}/.run_rbf_temp_options_file -c ${quartusdir}/${project_rev}.sof ${quartusdir}/${project_rev}.pof unb_exec $0 quartus_cpf -d EPCQL1024 -m ASx4 --option=$(<${HOME}/.run_rbf_temp_options_file) -c ${quartusdir}/${project_rev}.sof ${quartusdir}/${project_rev}.pof
unb_exec $0 quartus_cpf -c ${quartusdir}/${project_rev}.pof ${quartusdir}/${project_rev}.hexout unb_exec $0 quartus_cpf -c ${quartusdir}/${project_rev}.pof ${quartusdir}/${project_rev}.hexout
unb_exec $0 nios2-elf-objcopy -I ihex -O binary ${quartusdir}/${project_rev}.hexout ${quartusdir}/${project_rev}.rbf unb_exec $0 nios2-elf-objcopy -I ihex -O binary ${quartusdir}/${project_rev}.hexout ${quartusdir}/${project_rev}.rbf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment