mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
rename NET to NET_LEGACY
Highlight that NET really is the legacy networking stack by renaming the option to NET_LEGACY. This requires us to add an SPL_NET_LEGACY alias to SPL_NET as otherwise CONFIG_IS_ENABLED(NET_LEGACY) will not work for SPL. The "depends on !NET_LWIP" for SPL_NET clearly highlights that it is using the legacy networking app so this seems fine to do. This also has the benefit of removing potential confusion on NET being a specific networking stack instead of "any" network stack. Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Peter Robinson <pbrobinson@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -39,7 +39,7 @@ obj-$(CONFIG_CMD_PWM) += pwm.o
|
||||
obj-$(CONFIG_CMD_READ) += rw.o
|
||||
obj-$(CONFIG_CMD_SETEXPR) += setexpr.o
|
||||
obj-$(CONFIG_CMD_TEMPERATURE) += temperature.o
|
||||
ifdef CONFIG_NET
|
||||
ifdef CONFIG_NET_LEGACY
|
||||
obj-$(CONFIG_CMD_WGET) += wget.o
|
||||
endif
|
||||
obj-$(CONFIG_ARM_FFA_TRANSPORT) += armffa.o
|
||||
|
||||
@@ -172,7 +172,7 @@ static int bdinfo_test_all(struct unit_test_state *uts)
|
||||
ut_assertok(test_num_l(uts, "reloc off", gd->reloc_off));
|
||||
ut_assert_nextline("%-12s= %u-bit", "Build", (uint)sizeof(void *) * 8);
|
||||
|
||||
if (IS_ENABLED(CONFIG_NET) || IS_ENABLED(CONFIG_NET_LWIP))
|
||||
if (IS_ENABLED(CONFIG_NET_LEGACY) || IS_ENABLED(CONFIG_NET_LWIP))
|
||||
ut_assertok(test_eth(uts));
|
||||
|
||||
/*
|
||||
@@ -314,7 +314,7 @@ static int bdinfo_test_help(struct unit_test_state *uts)
|
||||
ut_assert_nextlinen("bdinfo -a");
|
||||
ut_assert_nextlinen(" - print all Board Info structure");
|
||||
if (CONFIG_IS_ENABLED(GETOPT)) {
|
||||
if (IS_ENABLED(CONFIG_NET) || IS_ENABLED(CONFIG_NET_LWIP)) {
|
||||
if (IS_ENABLED(CONFIG_NET_LEGACY) || IS_ENABLED(CONFIG_NET_LWIP)) {
|
||||
ut_assert_nextlinen("bdinfo -e");
|
||||
ut_assert_nextlinen(" - print Board Info related to network");
|
||||
}
|
||||
@@ -348,7 +348,7 @@ static int bdinfo_test_eth(struct unit_test_state *uts)
|
||||
ut_assertok(run_commandf("bdinfo -e"));
|
||||
if (!CONFIG_IS_ENABLED(GETOPT))
|
||||
ut_assertok(bdinfo_test_all(uts));
|
||||
else if (IS_ENABLED(CONFIG_NET) || IS_ENABLED(CONFIG_NET_LWIP))
|
||||
else if (IS_ENABLED(CONFIG_NET_LEGACY) || IS_ENABLED(CONFIG_NET_LWIP))
|
||||
ut_assertok(test_eth(uts));
|
||||
ut_assert_console_end();
|
||||
|
||||
|
||||
@@ -449,7 +449,7 @@ static int dm_test_net_retry(struct unit_test_state *uts)
|
||||
}
|
||||
DM_TEST(dm_test_net_retry, UTF_SCAN_FDT);
|
||||
|
||||
#if CONFIG_IS_ENABLED(NET)
|
||||
#if CONFIG_IS_ENABLED(NET_LEGACY)
|
||||
static int sb_check_arp_reply(struct udevice *dev, void *packet,
|
||||
unsigned int len)
|
||||
{
|
||||
@@ -517,7 +517,7 @@ static int sb_with_async_arp_handler(struct udevice *dev, void *packet,
|
||||
}
|
||||
#endif
|
||||
|
||||
#if CONFIG_IS_ENABLED(NET)
|
||||
#if CONFIG_IS_ENABLED(NET_LEGACY)
|
||||
static int dm_test_eth_async_arp_reply(struct unit_test_state *uts)
|
||||
{
|
||||
net_ping_ip = string_to_ip("1.1.2.2");
|
||||
@@ -537,7 +537,7 @@ static int dm_test_eth_async_arp_reply(struct unit_test_state *uts)
|
||||
DM_TEST(dm_test_eth_async_arp_reply, UTF_SCAN_FDT);
|
||||
#endif
|
||||
|
||||
#if CONFIG_IS_ENABLED(NET)
|
||||
#if CONFIG_IS_ENABLED(NET_LEGACY)
|
||||
static int sb_check_ping_reply(struct udevice *dev, void *packet,
|
||||
unsigned int len)
|
||||
{
|
||||
|
||||
@@ -225,7 +225,7 @@ def test_efi_fit_launch(ubman):
|
||||
|
||||
has_dhcp = ubman.config.buildconfig.get('config_cmd_dhcp', 'n') == 'y'
|
||||
if not has_dhcp:
|
||||
ubman.log.warning('CONFIG_NET != y: Skipping static network setup')
|
||||
ubman.log.warning('CONFIG_NET_LEGACY != y: Skipping static network setup')
|
||||
return False
|
||||
|
||||
env_vars = ubman.config.env.get('env__net_static_env_vars', None)
|
||||
|
||||
@@ -98,7 +98,7 @@ def test_efi_setup_dhcp(ubman):
|
||||
global net_set_up
|
||||
net_set_up = True
|
||||
|
||||
@pytest.mark.buildconfigspec('net', 'net_lwip')
|
||||
@pytest.mark.buildconfigspec('net_legacy', 'net_lwip')
|
||||
def test_efi_setup_static(ubman):
|
||||
"""Set up the network using a static IP configuration.
|
||||
|
||||
|
||||
@@ -506,7 +506,7 @@ def test_fpga_loadfs(ubman):
|
||||
@pytest.mark.buildconfigspec('cmd_fpga_load_secure')
|
||||
@pytest.mark.buildconfigspec('cmd_net')
|
||||
@pytest.mark.buildconfigspec('cmd_dhcp')
|
||||
@pytest.mark.buildconfigspec('net', 'net_lwip')
|
||||
@pytest.mark.buildconfigspec('net_legacy', 'net_lwip')
|
||||
def test_fpga_secure_bit_auth(ubman):
|
||||
|
||||
test_net.test_net_dhcp(ubman)
|
||||
@@ -534,7 +534,7 @@ def test_fpga_secure_bit_auth(ubman):
|
||||
@pytest.mark.buildconfigspec('cmd_fpga_load_secure')
|
||||
@pytest.mark.buildconfigspec('cmd_net')
|
||||
@pytest.mark.buildconfigspec('cmd_dhcp')
|
||||
@pytest.mark.buildconfigspec('net', 'net_lwip')
|
||||
@pytest.mark.buildconfigspec('net_legacy', 'net_lwip')
|
||||
def test_fpga_secure_bit_img_auth_kup(ubman):
|
||||
|
||||
test_net.test_net_dhcp(ubman)
|
||||
|
||||
@@ -201,7 +201,7 @@ def test_net_dhcp6(ubman):
|
||||
global net6_set_up
|
||||
net6_set_up = True
|
||||
|
||||
@pytest.mark.buildconfigspec('net', 'net_lwip')
|
||||
@pytest.mark.buildconfigspec('net_legacy', 'net_lwip')
|
||||
def test_net_setup_static(ubman):
|
||||
"""Set up a static IP configuration.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user