[PATCH] usb: dfu: Migrate CONFIG_SYS_DFU_DATA_BUF_SIZE and CONFIG_SYS_DFU_MAX_FILE_SIZE to Kconfig

Heiko Schocher hs at denx.de
Thu Feb 25 06:11:03 CET 2021


Hello Aswath,

On 23.02.21 07:14, Aswath Govindraju wrote:
> Currently the config options CONFIG_SYS_DFU_DATA_BUF_SIZE and
> CONFIG_SYS_DFU_MAX_FILE_SIZE are being set in include/configs/<board>.h
> files and also in <board_name>_defconfig files without a Kconfig option. It
> is easier for users to set these configs in defconfig files than in config
> header files as they are a part of the source code.
> 
> Add Kconfig symbols, and update the defconfigs by using tools/moveconfig.py
> script.
> 
> Suggested-by: Pratyush Yadav <p.yadav at ti.com>
> Signed-off-by: Aswath Govindraju <a-govindraju at ti.com>
> ---
>  configs/am65x_evm_a53_defconfig           |  2 ++
>  configs/am65x_evm_r5_usbdfu_defconfig     |  2 ++
>  configs/am65x_hs_evm_a53_defconfig        |  2 ++
>  configs/beaver_defconfig                  |  2 ++
>  configs/cei-tk1-som_defconfig             |  2 ++
>  configs/colibri-imx6ull_defconfig         |  2 ++
>  configs/colibri_vf_defconfig              |  2 ++
>  configs/corvus_defconfig                  |  2 ++
>  configs/dalmore_defconfig                 |  2 ++
>  configs/dh_imx6_defconfig                 |  2 ++
>  configs/draco_defconfig                   |  2 ++
>  configs/e2220-1170_defconfig              |  2 ++
>  configs/etamin_defconfig                  |  2 ++
>  configs/jetson-tk1_defconfig              |  2 ++
>  configs/nyan-big_defconfig                |  2 ++
>  configs/odroid-xu3_defconfig              |  2 ++
>  configs/odroid_defconfig                  |  2 ++
>  configs/origen_defconfig                  |  2 ++
>  configs/p2371-0000_defconfig              |  2 ++
>  configs/p2371-2180_defconfig              |  2 ++
>  configs/p2571_defconfig                   |  2 ++
>  configs/p3450-0000_defconfig              |  2 ++
>  configs/pico-dwarf-imx6ul_defconfig       |  2 ++
>  configs/pico-hobbit-imx6ul_defconfig      |  2 ++
>  configs/pico-imx6_defconfig               |  2 ++
>  configs/pico-imx6ul_defconfig             |  2 ++
>  configs/pico-pi-imx6ul_defconfig          |  2 ++
>  configs/pxm2_defconfig                    |  2 ++
>  configs/rastaban_defconfig                |  2 ++
>  configs/rpi_4_32b_defconfig               |  2 ++
>  configs/rpi_4_defconfig                   |  2 ++
>  configs/rut_defconfig                     |  2 ++
>  configs/s5p_goni_defconfig                |  2 ++
>  configs/s5pc210_universal_defconfig       |  2 ++
>  configs/smartweb_defconfig                |  2 ++
>  configs/socfpga_arria5_defconfig          |  2 ++
>  configs/socfpga_cyclone5_defconfig        |  2 ++
>  configs/socfpga_dbm_soc1_defconfig        |  2 ++
>  configs/socfpga_de0_nano_soc_defconfig    |  2 ++
>  configs/socfpga_de10_nano_defconfig       |  2 ++
>  configs/socfpga_mcvevk_defconfig          |  2 ++
>  configs/socfpga_sockit_defconfig          |  2 ++
>  configs/socfpga_socrates_defconfig        |  2 ++
>  configs/socfpga_vining_fpga_defconfig     |  2 ++
>  configs/taurus_defconfig                  |  2 ++
>  configs/thuban_defconfig                  |  2 ++
>  configs/topic_miami_defconfig             |  2 ++
>  configs/topic_miamilite_defconfig         |  2 ++
>  configs/topic_miamiplus_defconfig         |  2 ++
>  configs/trats2_defconfig                  |  2 ++
>  configs/trats_defconfig                   |  2 ++
>  configs/venice2_defconfig                 |  2 ++
>  configs/warp7_bl33_defconfig              |  2 ++
>  configs/warp7_defconfig                   |  2 ++
>  configs/warp_defconfig                    |  2 ++
>  configs/xilinx_versal_virt_defconfig      |  2 ++
>  configs/xilinx_zynq_virt_defconfig        |  2 ++
>  configs/xilinx_zynqmp_virt_defconfig      |  2 ++
>  drivers/dfu/Kconfig                       | 20 ++++++++++++++++++++
>  include/configs/am65x_evm.h               |  8 --------
>  include/configs/colibri-imx6ull.h         |  1 -
>  include/configs/colibri_vf.h              |  1 -
>  include/configs/corvus.h                  |  1 -
>  include/configs/dh_imx6.h                 |  1 -
>  include/configs/exynos4-common.h          |  1 -
>  include/configs/odroid_xu3.h              |  1 -
>  include/configs/pico-imx6.h               |  1 -
>  include/configs/pico-imx6ul.h             |  1 -
>  include/configs/rpi.h                     |  3 ---
>  include/configs/s5p_goni.h                |  1 -
>  include/configs/siemens-am33x-common.h    |  1 -
>  include/configs/smartweb.h                |  1 -
>  include/configs/socfpga_common.h          |  1 -
>  include/configs/taurus.h                  |  1 -
>  include/configs/tegra-common-usb-gadget.h |  2 --
>  include/configs/warp.h                    |  1 -
>  include/configs/warp7.h                   |  1 -
>  include/configs/xilinx_versal.h           |  1 -
>  include/configs/xilinx_zynqmp.h           |  1 -
>  include/configs/zynq-common.h             |  1 -
>  include/dfu.h                             |  6 ------
>  scripts/config_whitelist.txt              |  2 --
>  82 files changed, 136 insertions(+), 39 deletions(-)

Reviewed-by: Heiko Schocher <hs at denx.de>

Thanks!
bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de


More information about the U-Boot mailing list