diff options
author | Tom Rini <trini@konsulko.com> | 2022-12-05 13:28:22 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-12-05 13:28:22 -0500 |
commit | 6616ddb0f09c4ef3e8a79b76b146dbbd9c8f8c3d (patch) | |
tree | 9df20918981d508e1c9f8b27533abce955073889 /include/env_flags.h | |
parent | a50622d78c5c6babd1853ae913f339df54fe532c (diff) | |
parent | a72926257c1dbc456d1cd02fc6bd5ef6147e143f (diff) |
Merge branch '2022-12-05-add-IPv6-support'
To quote the author:
This patch set adds basic IPv6 support to U-boot.
It is based on Chris's Packham patches
(https://lists.denx.de/pipermail/u-boot/2017-January/279366.html)
Chris's patches were taken as base. There were efforts to launch it on
HiFive SiFive Unmatched board but the board didn't work well. The code was
refactored, fixed some bugs as CRC for little-endian, some parts were implemented in
our own way, something was taken from Linux. Finally we did manual tests and the
board worked well.
Testing was done on HiFive SiFive Unmatched board (RISC-V)
Diffstat (limited to 'include/env_flags.h')
-rw-r--r-- | include/env_flags.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/env_flags.h b/include/env_flags.h index 313cb8c49a6..718d72773ca 100644 --- a/include/env_flags.h +++ b/include/env_flags.h @@ -67,6 +67,15 @@ enum env_flags_varaccess { #define NET_FLAGS #endif +#ifdef CONFIG_IPV6 +#define NET6_FLAGS \ + "ip6addr:s," \ + "serverip6:s," \ + "gatewayip6:s" +#else +#define NET6_FLAGS +#endif + #ifndef CONFIG_ENV_OVERWRITE #define SERIAL_FLAGS "serial#:so," #else @@ -76,6 +85,7 @@ enum env_flags_varaccess { #define ENV_FLAGS_LIST_STATIC \ ETHADDR_FLAGS \ NET_FLAGS \ + NET6_FLAGS \ SERIAL_FLAGS \ CONFIG_ENV_FLAGS_LIST_STATIC |