]> git.sur5r.net Git - u-boot/commit
net: Move enetaddr env access code to env config instead of net config
authorAlex Kiernan <alex.kiernan@gmail.com>
Sun, 1 Apr 2018 09:22:38 +0000 (09:22 +0000)
committerTom Rini <trini@konsulko.com>
Mon, 9 Apr 2018 03:00:58 +0000 (23:00 -0400)
commit9925f1dbc38c0ef7220c6fca5968c708b8e48764
tree7f9453351477c094456f585036ca3d9b9a06c4c6
parent8cf2f3602e6778b207f3a95fda6be3fc420a8162
net: Move enetaddr env access code to env config instead of net config

In order that we can use eth_env_* even when CONFIG_NET isn't set, move
these functions to environment code from net code.

This fixes failures such as:

  board/ti/am335x/built-in.o: In function `board_late_init':
  board/ti/am335x/board.c:752: undefined reference to `eth_env_set_enetaddr'
  u-boot/board/ti/am335x/board.c:766: undefined reference to `eth_env_set_enetaddr'

which caters for use cases such as:

commit f411b5cca48f ("board: am335x: Always set eth/eth1addr environment
variable")

when Ethernet is required in Linux, but not U-Boot.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
66 files changed:
arch/arm/cpu/arm926ejs/spear/spr_misc.c
arch/arm/mach-davinci/misc.c
arch/arm/mach-omap2/utils.c
arch/powerpc/cpu/mpc85xx/fdt.c
board/BuR/common/common.c
board/CZ.NIC/turris_omnia/turris_omnia.c
board/LaCie/net2big_v2/net2big_v2.c
board/LaCie/netspace_v2/netspace_v2.c
board/amlogic/khadas-vim/khadas-vim.c
board/amlogic/libretech-cc/libretech-cc.c
board/amlogic/odroid-c2/odroid-c2.c
board/amlogic/p212/p212.c
board/atmel/common/mac_eeprom.c
board/buffalo/lsxl/lsxl.c
board/compulab/cl-som-am57x/eth.c
board/compulab/cl-som-imx7/cl-som-imx7.c
board/compulab/cm_fx6/cm_fx6.c
board/compulab/cm_t335/cm_t335.c
board/compulab/cm_t35/cm_t35.c
board/compulab/cm_t3517/cm_t3517.c
board/compulab/cm_t54/cm_t54.c
board/davinci/da8xxevm/da850evm.c
board/dhelectronics/dh_imx6/dh_imx6.c
board/gateworks/gw_ventana/gw_ventana.c
board/ge/mx53ppd/mx53ppd.c
board/kosagi/novena/novena.c
board/logicpd/zoom1/zoom1.c
board/phytec/pcm051/board.c
board/phytec/phycore_rk3288/phycore-rk3288.c
board/raspberrypi/rpi/rpi.c
board/renesas/alt/alt.c
board/renesas/blanche/blanche.c
board/renesas/gose/gose.c
board/renesas/koelsch/koelsch.c
board/renesas/lager/lager.c
board/renesas/sh7752evb/sh7752evb.c
board/renesas/sh7753evb/sh7753evb.c
board/renesas/sh7757lcr/sh7757lcr.c
board/renesas/silk/silk.c
board/renesas/stout/stout.c
board/rockchip/tinker_rk3288/tinker-rk3288.c
board/samtec/vining_2000/vining_2000.c
board/samtec/vining_fpga/socfpga.c
board/siemens/common/factoryset.c
board/siemens/pxm2/board.c
board/silica/pengwyn/board.c
board/technologic/ts4800/ts4800.c
board/theobroma-systems/puma_rk3399/puma-rk3399.c
board/ti/am43xx/board.c
board/ti/ti814x/evm.c
board/ti/ti816x/evm.c
board/timll/devkit8000/devkit8000.c
board/toradex/common/tdx-common.c
cmd/elf.c
cmd/ethsw.c
cmd/nvedit.c
drivers/net/cpsw-common.c
drivers/net/fec_mxc.c
drivers/net/fsl_mcdmafec.c
drivers/net/mcffec.c
drivers/net/ne2000_base.c
drivers/net/sh_eth.c
drivers/usb/gadget/ether.c
include/environment.h
include/net.h
net/eth_common.c