Commit 8211aca2 authored by Florent Kermarrec's avatar Florent Kermarrec
Browse files

Avoid Official/Partner/Community differentiation: use same directory for all platforms/targets.

We initially wanted to provide different level of support for the platforms/targets, mainly
to avoid too much maintenance and let each contributor update its contributed platforms and
targets, but it's easier to update all platforms/targets all-together when LiteX evolves or
changes (and that's what has been done on litex-boards since the creation of the repository).
So let just simplify things and avoid this differentiation.
parent 7a24406b
import sys
import importlib
class Targets:
def __getattr__(self, name):
if name == "__path__":
return []
for support in ["official", "partner", "community"]:
try:
return importlib.import_module("litex_boards." + support + ".targets." + name)
except ModuleNotFoundError:
pass
raise ModuleNotFoundError
sys.modules[__name__] = Targets()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment