mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
boards/targets/simple: add gateware-toolchain parameter
This commit is contained in:
parent
d84083f642
commit
52917a710e
1 changed files with 6 additions and 1 deletions
|
@ -58,10 +58,15 @@ def main():
|
||||||
help="enable Ethernet support")
|
help="enable Ethernet support")
|
||||||
parser.add_argument("platform",
|
parser.add_argument("platform",
|
||||||
help="module name of the platform to build for")
|
help="module name of the platform to build for")
|
||||||
|
parser.add_argument("--gateware-toolchain", default=None,
|
||||||
|
help="FPGA gateware toolchain used for build")
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
platform_module = importlib.import_module(args.platform)
|
platform_module = importlib.import_module(args.platform)
|
||||||
platform = platform_module.Platform()
|
if args.gateware_toolchain is not None:
|
||||||
|
platform = platform_module.Platform(toolchain=args.gateware_toolchain)
|
||||||
|
else:
|
||||||
|
platform = platform_module.Platform()
|
||||||
cls = EthernetSoC if args.with_ethernet else BaseSoC
|
cls = EthernetSoC if args.with_ethernet else BaseSoC
|
||||||
soc = cls(platform, **soc_core_argdict(args))
|
soc = cls(platform, **soc_core_argdict(args))
|
||||||
builder = Builder(soc, **builder_argdict(args))
|
builder = Builder(soc, **builder_argdict(args))
|
||||||
|
|
Loading…
Reference in a new issue