[U-Boot] [PATCH 2/2][v3] armv8: ls2085a: Add support of random MAC address
Bin Meng
bmeng.cn at gmail.com
Wed Oct 7 13:22:12 CEST 2015
On Wed, Oct 7, 2015 at 7:00 PM, Prabhakar Kushwaha
<prabhakar at freescale.com> wrote:
> Add support of setting RANDOM MAC address if env variable not available.
>
> Signed-off-by: Prabhakar Kushwaha <prabhakar at freescale.com>
> ---
> Changs for v2: Incorporated Bin Meng's comments
> - Moved defines to defconfig
> - updated subject
> Changes for v3: Incorporated Bin Meng's comments
> - Removed CONFIG_LIB_RAND
> - used make savedefconfig to generate defconfigs
>
> configs/ls2085a_simu_defconfig | 1 +
> configs/ls2085aqds_defconfig | 1 +
> configs/ls2085aqds_nand_defconfig | 1 +
> configs/ls2085ardb_defconfig | 1 +
> configs/ls2085ardb_nand_defconfig | 1 +
> 5 files changed, 5 insertions(+)
>
> diff --git a/configs/ls2085a_simu_defconfig b/configs/ls2085a_simu_defconfig
> index de9776d..9d04218 100644
> --- a/configs/ls2085a_simu_defconfig
> +++ b/configs/ls2085a_simu_defconfig
> @@ -12,3 +12,4 @@ CONFIG_SYS_EXTRA_OPTIONS="SIMU"
> # CONFIG_CMD_SETEXPR is not set
> # CONFIG_CMD_NFS is not set
> # CONFIG_CMD_MISC is not set
> +CONFIG_NET_RANDOM_ETHADDR=y
> diff --git a/configs/ls2085aqds_defconfig b/configs/ls2085aqds_defconfig
> index 0c770e4..78b121d 100644
> --- a/configs/ls2085aqds_defconfig
> +++ b/configs/ls2085aqds_defconfig
> @@ -7,6 +7,7 @@ CONFIG_DEFAULT_DEVICE_TREE="fsl-ls2085a-qds"
> CONFIG_SYS_EXTRA_OPTIONS="SYS_FSL_DDR4"
> # CONFIG_CMD_SETEXPR is not set
> CONFIG_OF_CONTROL=y
> +CONFIG_NET_RANDOM_ETHADDR=y
> CONFIG_DM=y
> CONFIG_NETDEVICES=y
> CONFIG_E1000=y
> diff --git a/configs/ls2085aqds_nand_defconfig b/configs/ls2085aqds_nand_defconfig
> index 10eda97..ce2a81c 100644
> --- a/configs/ls2085aqds_nand_defconfig
> +++ b/configs/ls2085aqds_nand_defconfig
> @@ -3,5 +3,6 @@ CONFIG_TARGET_LS2085AQDS=y
> CONFIG_SPL=y
> CONFIG_SYS_EXTRA_OPTIONS="SYS_FSL_DDR4,NAND"
> # CONFIG_CMD_SETEXPR is not set
> +CONFIG_NET_RANDOM_ETHADDR=y
> CONFIG_NETDEVICES=y
> CONFIG_E1000=y
> diff --git a/configs/ls2085ardb_defconfig b/configs/ls2085ardb_defconfig
> index 7956533..d0f16f2 100644
> --- a/configs/ls2085ardb_defconfig
> +++ b/configs/ls2085ardb_defconfig
> @@ -7,6 +7,7 @@ CONFIG_DEFAULT_DEVICE_TREE="fsl-ls2085a-rdb"
> CONFIG_SYS_EXTRA_OPTIONS="SYS_FSL_DDR4"
> # CONFIG_CMD_SETEXPR is not set
> CONFIG_OF_CONTROL=y
> +CONFIG_NET_RANDOM_ETHADDR=y
> CONFIG_DM=y
> CONFIG_NETDEVICES=y
> CONFIG_E1000=y
> diff --git a/configs/ls2085ardb_nand_defconfig b/configs/ls2085ardb_nand_defconfig
> index 96a0dfd..25a6f71 100644
> --- a/configs/ls2085ardb_nand_defconfig
> +++ b/configs/ls2085ardb_nand_defconfig
> @@ -3,5 +3,6 @@ CONFIG_TARGET_LS2085ARDB=y
> CONFIG_SPL=y
> CONFIG_SYS_EXTRA_OPTIONS="SYS_FSL_DDR4,NAND"
> # CONFIG_CMD_SETEXPR is not set
> +CONFIG_NET_RANDOM_ETHADDR=y
> CONFIG_NETDEVICES=y
> CONFIG_E1000=y
> --
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
More information about the U-Boot
mailing list