Skip to content

Commit 43abc55

Browse files
committed
make.py: Set ethernet local and remote IP addresses with 'soc_kwargs' instead of 'configure_ethernet'
1 parent 55c2f4a commit 43abc55

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

make.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,11 @@ def main():
113113
if "leds" in board.soc_capabilities:
114114
soc_kwargs.update(with_led_chaser=True)
115115
if "ethernet" in board.soc_capabilities:
116-
soc_kwargs.update(with_ethernet=True)
116+
soc_kwargs.update(
117+
with_ethernet = True,
118+
eth_ip = args.local_ip,
119+
remote_ip = args.remote_ip,
120+
)
117121
if "pcie" in board.soc_capabilities:
118122
soc_kwargs.update(with_pcie=True)
119123
if "spiflash" in board.soc_capabilities:
@@ -158,8 +162,6 @@ def main():
158162
soc.add_spi_sdcard()
159163
if "sdcard" in board.soc_capabilities:
160164
soc.add_sdcard()
161-
if "ethernet" in board.soc_capabilities:
162-
soc.configure_ethernet(remote_ip=args.remote_ip)
163165
#if "leds" in board.soc_capabilities:
164166
# soc.add_leds()
165167
if "rgb_led" in board.soc_capabilities:

0 commit comments

Comments
 (0)