[U-Boot] [PATCH v2 0/5] Build AM335x when CONFIG_NET isn't defined

Alex Kiernan alex.kiernan at gmail.com
Sun Apr 1 09:22:33 UTC 2018


Attempting to build AM335x without CONFIG_NET defined fails in assorted
ways. This series fixes up those failures.

Green Travis build:

https://travis-ci.org/akiernan/u-boot/builds/360614817

Changes in v2:
- Move DRIVER_TI_CPSW outside of the NETDEVICES guard
- Don't mark DRIVER_TI_CPSW default if ARCH_OMAP2PLUS to fix mistranslations
  by moveconfig
- Moved enetaddr env access declarations to include/environment.h
- Replace uchar with uint8_t in eth_env_* to avoid dependency on
  include/common.h
- include environment.h where needed to satisfy eth_env_* dependencies

Alex Kiernan (5):
  Migrate CONFIG_DRIVER_TI_CPSW to Kconfig
  ti: am335x: Fix bootargs when building without NET
  usb: gadget: USB_ETHER requires network support
  ti: am335x: Fix build when networking is disabled
  net: Move enetaddr env access code to env config instead of net config

 arch/arm/cpu/arm926ejs/spear/spr_misc.c           |  1 +
 arch/arm/mach-davinci/misc.c                      |  1 +
 arch/arm/mach-omap2/utils.c                       |  1 +
 arch/powerpc/cpu/mpc85xx/fdt.c                    |  1 +
 board/BuR/common/common.c                         |  1 +
 board/CZ.NIC/turris_omnia/turris_omnia.c          |  1 +
 board/LaCie/net2big_v2/net2big_v2.c               |  1 +
 board/LaCie/netspace_v2/netspace_v2.c             |  1 +
 board/amlogic/khadas-vim/khadas-vim.c             |  1 +
 board/amlogic/libretech-cc/libretech-cc.c         |  1 +
 board/amlogic/odroid-c2/odroid-c2.c               |  1 +
 board/amlogic/p212/p212.c                         |  1 +
 board/atmel/common/mac_eeprom.c                   |  1 +
 board/buffalo/lsxl/lsxl.c                         |  1 +
 board/compulab/cl-som-am57x/eth.c                 |  1 +
 board/compulab/cl-som-imx7/cl-som-imx7.c          |  1 +
 board/compulab/cm_fx6/cm_fx6.c                    |  1 +
 board/compulab/cm_t335/cm_t335.c                  |  1 +
 board/compulab/cm_t35/cm_t35.c                    |  1 +
 board/compulab/cm_t3517/cm_t3517.c                |  1 +
 board/compulab/cm_t54/cm_t54.c                    |  1 +
 board/davinci/da8xxevm/da850evm.c                 |  1 +
 board/dhelectronics/dh_imx6/dh_imx6.c             |  1 +
 board/gateworks/gw_ventana/gw_ventana.c           |  1 +
 board/ge/mx53ppd/mx53ppd.c                        |  1 +
 board/kosagi/novena/novena.c                      |  1 +
 board/logicpd/zoom1/zoom1.c                       |  1 +
 board/phytec/pcm051/board.c                       |  1 +
 board/phytec/phycore_rk3288/phycore-rk3288.c      |  1 +
 board/raspberrypi/rpi/rpi.c                       |  1 +
 board/renesas/alt/alt.c                           |  1 +
 board/renesas/blanche/blanche.c                   |  1 +
 board/renesas/gose/gose.c                         |  1 +
 board/renesas/koelsch/koelsch.c                   |  1 +
 board/renesas/lager/lager.c                       |  1 +
 board/renesas/sh7752evb/sh7752evb.c               |  1 +
 board/renesas/sh7753evb/sh7753evb.c               |  1 +
 board/renesas/sh7757lcr/sh7757lcr.c               |  1 +
 board/renesas/silk/silk.c                         |  1 +
 board/renesas/stout/stout.c                       |  1 +
 board/rockchip/tinker_rk3288/tinker-rk3288.c      |  1 +
 board/samtec/vining_2000/vining_2000.c            |  1 +
 board/samtec/vining_fpga/socfpga.c                |  1 +
 board/siemens/common/factoryset.c                 |  1 +
 board/siemens/pxm2/board.c                        |  1 +
 board/silica/pengwyn/board.c                      |  1 +
 board/technologic/ts4800/ts4800.c                 |  1 +
 board/theobroma-systems/puma_rk3399/puma-rk3399.c |  1 +
 board/ti/am335x/board.c                           |  8 +++---
 board/ti/am43xx/board.c                           |  1 +
 board/ti/ti814x/evm.c                             |  1 +
 board/ti/ti816x/evm.c                             |  1 +
 board/timll/devkit8000/devkit8000.c               |  1 +
 board/toradex/common/tdx-common.c                 |  1 +
 cmd/elf.c                                         |  1 +
 cmd/ethsw.c                                       |  1 +
 cmd/nvedit.c                                      | 30 ++++++++++++++++++++++
 configs/am335x_baltos_defconfig                   |  4 +--
 configs/am335x_boneblack_defconfig                |  4 +--
 configs/am335x_boneblack_vboot_defconfig          |  4 +--
 configs/am335x_evm_defconfig                      |  4 +--
 configs/am335x_evm_nor_defconfig                  |  4 +--
 configs/am335x_evm_norboot_defconfig              |  2 +-
 configs/am335x_evm_spiboot_defconfig              |  4 +--
 configs/am335x_evm_usbspl_defconfig               |  4 +--
 configs/am335x_hs_evm_defconfig                   |  4 +--
 configs/am335x_hs_evm_uart_defconfig              |  4 +--
 configs/am335x_igep003x_defconfig                 |  6 ++---
 configs/am335x_pdu001_defconfig                   |  3 ++-
 configs/am335x_shc_defconfig                      |  4 +--
 configs/am335x_shc_ict_defconfig                  |  4 +--
 configs/am335x_shc_netboot_defconfig              |  4 +--
 configs/am335x_shc_prompt_defconfig               |  4 +--
 configs/am335x_shc_sdboot_defconfig               |  4 +--
 configs/am335x_shc_sdboot_prompt_defconfig        |  4 +--
 configs/am335x_sl50_defconfig                     |  4 +--
 configs/am43xx_evm_defconfig                      |  4 +--
 configs/am43xx_evm_ethboot_defconfig              |  4 +--
 configs/am43xx_evm_qspiboot_defconfig             |  2 +-
 configs/am43xx_evm_usbhost_boot_defconfig         |  4 +--
 configs/am43xx_hs_evm_defconfig                   |  4 +--
 configs/am57xx_evm_defconfig                      |  4 +--
 configs/am57xx_hs_evm_defconfig                   |  4 +--
 configs/birdland_bav335a_defconfig                |  4 +--
 configs/birdland_bav335b_defconfig                |  4 +--
 configs/brppt1_mmc_defconfig                      |  4 +--
 configs/brppt1_nand_defconfig                     |  4 +--
 configs/brppt1_spi_defconfig                      |  4 +--
 configs/brxre1_defconfig                          |  4 +--
 configs/chiliboard_defconfig                      |  4 +--
 configs/cl-som-am57x_defconfig                    |  4 +--
 configs/cm_t335_defconfig                         |  4 +--
 configs/cm_t43_defconfig                          |  4 +--
 configs/dra7xx_evm_defconfig                      |  4 +--
 configs/dra7xx_hs_evm_defconfig                   |  4 +--
 configs/draco_defconfig                           |  4 +--
 configs/etamin_defconfig                          |  4 +--
 configs/pcm051_rev1_defconfig                     |  4 +--
 configs/pcm051_rev3_defconfig                     |  4 +--
 configs/pengwyn_defconfig                         |  4 +--
 configs/pepper_defconfig                          |  4 +--
 configs/pxm2_defconfig                            |  4 +--
 configs/rastaban_defconfig                        |  4 +--
 configs/rut_defconfig                             |  4 +--
 configs/thuban_defconfig                          |  4 +--
 configs/ti814x_evm_defconfig                      |  4 +--
 drivers/net/Kconfig                               |  7 +++++
 drivers/net/cpsw-common.c                         |  1 +
 drivers/net/fec_mxc.c                             |  1 +
 drivers/net/fsl_mcdmafec.c                        |  1 +
 drivers/net/mcffec.c                              |  1 +
 drivers/net/ne2000_base.c                         |  1 +
 drivers/net/sh_eth.c                              |  1 +
 drivers/usb/gadget/Kconfig                        |  1 +
 drivers/usb/gadget/ether.c                        |  1 +
 include/configs/am335x_evm.h                      | 16 ++++++++++--
 include/configs/am335x_shc.h                      |  1 -
 include/configs/am43xx_evm.h                      |  1 -
 include/configs/am57xx_evm.h                      |  1 -
 include/configs/bur_am335x_common.h               |  1 -
 include/configs/cl-som-am57x.h                    |  1 -
 include/configs/cm_t43.h                          |  1 -
 include/configs/dra7xx_evm.h                      |  1 -
 include/configs/siemens-am33x-common.h            |  1 -
 include/configs/ti814x_evm.h                      |  1 -
 include/configs/ti_am335x_common.h                |  1 -
 include/environment.h                             |  4 +++
 include/net.h                                     |  3 ---
 net/eth_common.c                                  | 31 +----------------------
 scripts/config_whitelist.txt                      |  1 -
 130 files changed, 219 insertions(+), 147 deletions(-)

-- 
2.7.4



More information about the U-Boot mailing list