Skip to content

Commit

Permalink
net: Convert CONFIG_TFTP_BLOCKSIZE to Kconfig
Browse files Browse the repository at this point in the history
Convert CONFIG_TFTP_BLOCKSIZE to Kconfig, update defconfigs,
headers and whitelist.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Christian Gmeiner <[email protected]>
Cc: Joe Hershberger <[email protected]>
  • Loading branch information
marex authored and trini committed Jun 14, 2019
1 parent 3f6bcdf commit b618b37
Show file tree
Hide file tree
Showing 25 changed files with 18 additions and 13 deletions.
1 change: 1 addition & 0 deletions configs/apalis-imx8qm_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ CONFIG_CMD_EXT4_WRITE=y
CONFIG_DEFAULT_DEVICE_TREE="fsl-imx8qm-apalis"
CONFIG_ENV_IS_IN_MMC=y
CONFIG_IP_DEFRAG=y
CONFIG_TFTP_BLOCKSIZE=4096
CONFIG_CLK_IMX8=y
CONFIG_CPU=y
CONFIG_DM_GPIO=y
Expand Down
1 change: 1 addition & 0 deletions configs/apalis-tk1_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ CONFIG_CMD_EXT4_WRITE=y
CONFIG_OF_LIVE=y
CONFIG_DEFAULT_DEVICE_TREE="tegra124-apalis"
CONFIG_IP_DEFRAG=y
CONFIG_TFTP_BLOCKSIZE=16352
CONFIG_SPL_DM=y
CONFIG_DFU_MMC=y
CONFIG_DFU_RAM=y
Expand Down
1 change: 1 addition & 0 deletions configs/apalis_imx6_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ CONFIG_DEFAULT_DEVICE_TREE="imx6-apalis"
CONFIG_ENV_IS_IN_MMC=y
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
CONFIG_IP_DEFRAG=y
CONFIG_TFTP_BLOCKSIZE=4096
CONFIG_DWC_AHSATA=y
CONFIG_DFU_MMC=y
CONFIG_DM_GPIO=y
Expand Down
1 change: 1 addition & 0 deletions configs/apalis_t30_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ CONFIG_CMD_EXT4_WRITE=y
CONFIG_OF_LIVE=y
CONFIG_DEFAULT_DEVICE_TREE="tegra30-apalis"
CONFIG_IP_DEFRAG=y
CONFIG_TFTP_BLOCKSIZE=16352
CONFIG_SPL_DM=y
CONFIG_DFU_MMC=y
CONFIG_DFU_RAM=y
Expand Down
1 change: 1 addition & 0 deletions configs/colibri-imx6ull_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ CONFIG_DEFAULT_DEVICE_TREE="imx6ull-colibri"
CONFIG_ENV_IS_IN_NAND=y
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
CONFIG_IP_DEFRAG=y
CONFIG_TFTP_BLOCKSIZE=16352
CONFIG_DFU_MMC=y
CONFIG_DFU_NAND=y
CONFIG_DM_GPIO=y
Expand Down
1 change: 1 addition & 0 deletions configs/colibri-imx8qxp_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ CONFIG_CMD_EXT4_WRITE=y
CONFIG_DEFAULT_DEVICE_TREE="fsl-imx8qxp-colibri"
CONFIG_ENV_IS_IN_MMC=y
CONFIG_IP_DEFRAG=y
CONFIG_TFTP_BLOCKSIZE=4096
CONFIG_CLK_IMX8=y
CONFIG_CPU=y
CONFIG_DM_GPIO=y
Expand Down
1 change: 1 addition & 0 deletions configs/colibri_imx6_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ CONFIG_DEFAULT_DEVICE_TREE="imx6-colibri"
CONFIG_ENV_IS_IN_MMC=y
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
CONFIG_IP_DEFRAG=y
CONFIG_TFTP_BLOCKSIZE=16352
CONFIG_DFU_MMC=y
CONFIG_DM_GPIO=y
CONFIG_DM_I2C=y
Expand Down
1 change: 1 addition & 0 deletions configs/colibri_imx7_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ CONFIG_DEFAULT_DEVICE_TREE="imx7-colibri-rawnand"
CONFIG_ENV_IS_IN_NAND=y
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
CONFIG_IP_DEFRAG=y
CONFIG_TFTP_BLOCKSIZE=16352
CONFIG_FSL_CAAM=y
CONFIG_DFU_NAND=y
CONFIG_DM_GPIO=y
Expand Down
1 change: 1 addition & 0 deletions configs/colibri_imx7_emmc_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ CONFIG_DEFAULT_DEVICE_TREE="imx7-colibri-emmc"
CONFIG_ENV_IS_IN_MMC=y
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
CONFIG_IP_DEFRAG=y
CONFIG_TFTP_BLOCKSIZE=16352
CONFIG_FSL_CAAM=y
CONFIG_DFU_MMC=y
CONFIG_DM_GPIO=y
Expand Down
1 change: 1 addition & 0 deletions configs/colibri_t20_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ CONFIG_OF_LIVE=y
CONFIG_DEFAULT_DEVICE_TREE="tegra20-colibri"
CONFIG_ENV_IS_IN_NAND=y
CONFIG_IP_DEFRAG=y
CONFIG_TFTP_BLOCKSIZE=1536
CONFIG_SPL_DM=y
CONFIG_DFU_MMC=y
CONFIG_DFU_RAM=y
Expand Down
1 change: 1 addition & 0 deletions configs/colibri_t30_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ CONFIG_CMD_EXT4_WRITE=y
CONFIG_OF_LIVE=y
CONFIG_DEFAULT_DEVICE_TREE="tegra30-colibri"
CONFIG_IP_DEFRAG=y
CONFIG_TFTP_BLOCKSIZE=16352
CONFIG_SPL_DM=y
CONFIG_DFU_MMC=y
CONFIG_DFU_RAM=y
Expand Down
1 change: 1 addition & 0 deletions configs/xilinx_versal_virt_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ CONFIG_EFI_PARTITION=y
CONFIG_OF_BOARD=y
CONFIG_NET_RANDOM_ETHADDR=y
CONFIG_IP_DEFRAG=y
CONFIG_TFTP_BLOCKSIZE=4096
CONFIG_SPL_DM_SEQ_ALIAS=y
CONFIG_DM_GPIO=y
CONFIG_DM_I2C=y
Expand Down
1 change: 0 additions & 1 deletion include/configs/apalis-imx8.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
/* Networking */
#define FEC_QUIRK_ENET_MAC

#define CONFIG_TFTP_BLOCKSIZE SZ_4K
#define CONFIG_TFTP_TSIZE

#define CONFIG_IPADDR 192.168.10.2
Expand Down
1 change: 0 additions & 1 deletion include/configs/apalis-tk1.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#define CONFIG_E1000_NO_NVM

/* General networking support */
#define CONFIG_TFTP_BLOCKSIZE 16352
#define CONFIG_TFTP_TSIZE

#undef CONFIG_IPADDR
Expand Down
1 change: 0 additions & 1 deletion include/configs/apalis_imx6.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
#define CONFIG_FEC_XCV_TYPE RGMII
#define CONFIG_ETHPRIME "FEC"
#define CONFIG_FEC_MXC_PHYADDR 6
#define CONFIG_TFTP_BLOCKSIZE 4096
#define CONFIG_TFTP_TSIZE

/* USB Configs */
Expand Down
1 change: 0 additions & 1 deletion include/configs/apalis_t30.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#define CONFIG_E1000_NO_NVM

/* General networking support */
#define CONFIG_TFTP_BLOCKSIZE 16352
#define CONFIG_TFTP_TSIZE

/* Increase console I/O buffer size */
Expand Down
1 change: 0 additions & 1 deletion include/configs/colibri-imx6ull.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#define CONFIG_SYS_MALLOC_LEN (32 * SZ_1M)

/* Network */
#define CONFIG_TFTP_BLOCKSIZE 16352
#define CONFIG_TFTP_TSIZE

/* ENET1 */
Expand Down
1 change: 0 additions & 1 deletion include/configs/colibri-imx8x.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
/* Networking */
#define FEC_QUIRK_ENET_MAC

#define CONFIG_TFTP_BLOCKSIZE SZ_4K
#define CONFIG_TFTP_TSIZE

#define CONFIG_IPADDR 192.168.10.2
Expand Down
1 change: 0 additions & 1 deletion include/configs/colibri_imx6.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
#define CONFIG_FEC_XCV_TYPE RMII
#define CONFIG_ETHPRIME "FEC"
#define CONFIG_FEC_MXC_PHYADDR 1
#define CONFIG_TFTP_BLOCKSIZE 16352
#define CONFIG_TFTP_TSIZE

/* USB Configs */
Expand Down
1 change: 0 additions & 1 deletion include/configs/colibri_imx7.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#define CONFIG_ETHPRIME "FEC"
#define CONFIG_FEC_MXC_PHYADDR 0

#define CONFIG_TFTP_BLOCKSIZE 16352
#define CONFIG_TFTP_TSIZE

/* ENET1 */
Expand Down
1 change: 0 additions & 1 deletion include/configs/colibri_t20.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#define CONFIG_MACH_TYPE MACH_TYPE_COLIBRI_TEGRA2

/* General networking support */
#define CONFIG_TFTP_BLOCKSIZE 1536
#define CONFIG_TFTP_TSIZE

/* LCD support */
Expand Down
1 change: 0 additions & 1 deletion include/configs/colibri_t30.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#define CONFIG_SYS_MMC_ENV_PART 1

/* General networking support */
#define CONFIG_TFTP_BLOCKSIZE 16352
#define CONFIG_TFTP_TSIZE

/* Increase console I/O buffer size */
Expand Down
2 changes: 0 additions & 2 deletions include/configs/xilinx_versal.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
#define CONFIG_BOOTP_BOOTFILESIZE
#define CONFIG_BOOTP_MAY_FAIL

#define CONFIG_TFTP_BLOCKSIZE 4096

/* Miscellaneous configurable options */
#define CONFIG_SYS_LOAD_ADDR 0x8000000

Expand Down
6 changes: 6 additions & 0 deletions net/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,10 @@ config IP_DEFRAG
Selecting this will enable IP datagram reassembly according
to the algorithm in RFC815.

config TFTP_BLOCKSIZE
int "TFTP block size"
default 512
help
Default TFTP block size.

endif # if NET
1 change: 0 additions & 1 deletion scripts/config_whitelist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4250,7 +4250,6 @@ CONFIG_TESTPIN_MASK
CONFIG_TESTPIN_REG
CONFIG_TEST_LIST_SORT
CONFIG_TFP410_I2C_ADDR
CONFIG_TFTP_BLOCKSIZE
CONFIG_TFTP_FILE_NAME_MAX_LEN
CONFIG_TFTP_PORT
CONFIG_TFTP_TSIZE
Expand Down

0 comments on commit b618b37

Please sign in to comment.