litesata: avoid hack on kc705 platform with new mibuild toolchain management
This commit is contained in:
parent
28d04ec300
commit
d8b59c03a2
|
@ -12,16 +12,9 @@ _sata_io = [
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
|
||||||
class SpecializedPlatform:
|
class Platform(kc705.Platform):
|
||||||
def __init__(self, platform):
|
|
||||||
self._platform = platform
|
|
||||||
|
|
||||||
def __getattr__(self, name):
|
|
||||||
return getattr(self._platform, name)
|
|
||||||
|
|
||||||
class Platform(SpecializedPlatform):
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
SpecializedPlatform.__init__(self, kc705.Platform(*args, **kwargs))
|
kc705.Platform.__init__(self, *args, **kwargs)
|
||||||
self.add_extension(_sata_io)
|
self.add_extension(_sata_io)
|
||||||
|
|
||||||
def do_finalize(self, fragment):
|
def do_finalize(self, fragment):
|
||||||
|
|
Loading…
Reference in New Issue