URL
https://opencores.org/ocsvn/soc_maker/soc_maker/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 5 |
Rev 7 |
Line 44... |
Line 44... |
#
|
#
|
###############################################################
|
###############################################################
|
|
|
module SOCMaker
|
module SOCMaker
|
class Lib
|
class Lib
|
|
include ERR
|
|
|
def initialize
|
def initialize
|
|
|
# will store all cores
|
# will store all cores
|
@cores_lib = {}
|
@cores_lib = {}
|
Line 109... |
Line 110... |
#
|
#
|
# this prevents the revursive call
|
# this prevents the revursive call
|
# from an infinite call
|
# from an infinite call
|
#
|
#
|
folder_sym = File.expand_path( dir ).to_sym
|
folder_sym = File.expand_path( dir ).to_sym
|
if @path_lut.include?( folder_sym )
|
lerr_if( @path_lut.include?( folder_sym ),
|
SOCMaker::logger.warn( "double-include: infinite resursive search?" )
|
"double-include: infinite resursive search?" )
|
raise SOCMaker::ERR::LibError.new( "", "double-include" )
|
|
else
|
|
@path_lut << folder_sym
|
@path_lut << folder_sym
|
end
|
|
|
|
# get all yaml files in the directory
|
# get all yaml files in the directory
|
SOCMaker::logger.info "search for include in: " + dir
|
SOCMaker::logger.info "search for include in: " + dir
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.