Skip to content

Commit

Permalink
Remove support for deprecated cores_root and systems_root
Browse files Browse the repository at this point in the history
  • Loading branch information
olofk committed Jan 19, 2023
1 parent f88fe52 commit 7304ec2
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions fusesoc/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ def __init__(self, path=None):

self.build_root = self._get_build_root(config)
self.cache_root = self._get_cache_root(config)
cores_root = self._get_cores_root(config)
systems_root = self._get_systems_root(config)
self.library_root = self._get_library_root(config)
self.ignored_dirs = self._get_ignored_dirs(config)

Expand Down Expand Up @@ -83,9 +81,7 @@ def __init__(self, path=None):
env_cores_root = os.getenv("FUSESOC_CORES").split(":")
env_cores_root.reverse()

all_core_roots = cores_root + systems_root + env_cores_root

self.libraries = [Library(root, root) for root in all_core_roots] + libraries
self.libraries = [Library(root, root) for root in env_cores_root] + libraries

logger.debug("cache_root=" + self.cache_root)
logger.debug("library_root=" + self.library_root)
Expand Down Expand Up @@ -129,28 +125,6 @@ def _get_cache_root(self, config):
)
return os.path.join(xdg_cache_home, "fusesoc")

def _get_cores_root(self, config):
from_cfg = self._paths_from_cfg(config, "cores_root")
if from_cfg:
logger.warning(
"The cores_root option in fusesoc.conf is deprecated. "
"Please migrate to libraries instead"
)
return from_cfg

return [os.path.abspath("cores")] if os.path.exists("cores") else []

def _get_systems_root(self, config):
from_cfg = self._paths_from_cfg(config, "systems_root")
if from_cfg:
logger.warning(
"The systems_root option in fusesoc.conf is deprecated. "
"Please migrate to libraries instead"
)
return from_cfg

return [os.path.abspath("systems")] if os.path.exists("systems") else []

def _get_library_root(self, config):
from_cfg = self._path_from_cfg(config, "library_root")
if from_cfg is not None:
Expand Down

0 comments on commit 7304ec2

Please sign in to comment.