Convert CONFIG_BOARD_LATE_INIT to Kconfig
Subsystems (3)
PATCH v2 1/1 Convert CONFIG_BOARD_LATE_INIT to Kconfig
This converts the remaining board definedCONFIG_BOARD_LATE_INIT to Kconfig.
---
Changes in v2:
* Removed config from Kconfig as it already exists on common/Kconfig.
* Changed the commit message.
configs/am335x_pdu001_defconfig | 1 + configs/bcm7445_defconfig | 1 + configs/cl-som-imx7_defconfig | 1 + configs/controlcenterdc_defconfig | 1 + configs/hsdk_defconfig | 1 + configs/mccmon6_nor_defconfig | 1 + configs/mccmon6_sd_defconfig | 1 + configs/mx53ppd_defconfig | 1 + configs/stm32f746-disco_defconfig | 1 + configs/stm32h743-disco_defconfig | 1 + configs/stm32h743-eval_defconfig | 1 + include/configs/bcmstb.h | 1 - include/configs/cl-som-imx7.h | 2 -- include/configs/controlcenterdc.h | 1 - include/configs/hsdk.h | 1 - include/configs/mccmon6.h | 1 - include/configs/mx53ppd.h | 1 - include/configs/pdu001.h | 1 - include/configs/stm32f746-disco.h | 1 - include/configs/stm32h743-disco.h | 1 - include/configs/stm32h743-eval.h | 1 - include/configs/xilinx_zynqmp_mini.h | 1 - include/configs/zynq_cse.h | 1 - 23 files changed, 11 insertions(+), 13 deletions(-)
configs/am335x_pdu001_defconfig +1 -0
@@ -11,6 +11,7 @@ CONFIG_SPL_FAT_SUPPORT=y CONFIG_SPL_LIBDISK_SUPPORT=y CONFIG_DEFAULT_DEVICE_TREE="am335x-pdu001" CONFIG_LOCALVERSION="-EETS-1.0.0" +CONFIG_BOARD_LATE_INIT=y CONFIG_DISTRO_DEFAULTS=y CONFIG_BOOTDELAY=1 # CONFIG_USE_BOOTCOMMAND is not set
configs/bcm7445_defconfig +1 -0
@@ -2,6 +2,7 @@ CONFIG_ARM=y CONFIG_ARCH_BCMSTB=y CONFIG_SYS_TEXT_BASE=0x80100000 CONFIG_TARGET_BCM7445=y +CONFIG_BOARD_LATE_INIT=y CONFIG_FIT=y CONFIG_FIT_SIGNATURE=y CONFIG_BOOTDELAY=1
configs/cl-som-imx7_defconfig +1 -0
@@ -13,6 +13,7 @@ CONFIG_SPL_SPI_SUPPORT=y CONFIG_ARMV7_BOOT_SEC_DEFAULT=y CONFIG_IMX_RDC=y CONFIG_IMX_BOOTAUX=y +CONFIG_BOARD_LATE_INIT=y CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/mach-imx/spl_sd.cfg" CONFIG_SPI_BOOT=y CONFIG_BOOTDELAY=3
configs/controlcenterdc_defconfig +1 -0
@@ -12,6 +12,7 @@ CONFIG_SPL_SPI_FLASH_SUPPORT=y CONFIG_SPL_SPI_SUPPORT=y CONFIG_DEFAULT_DEVICE_TREE="armada-38x-controlcenterdc" CONFIG_DEBUG_UART=y +CONFIG_BOARD_LATE_INIT=y CONFIG_FIT=y CONFIG_FIT_SIGNATURE=y CONFIG_FIT_VERBOSE=y
configs/hsdk_defconfig +1 -0
@@ -7,6 +7,7 @@ CONFIG_DEBUG_UART_CLOCK=33333333 CONFIG_SYS_CLK_FREQ=500000000 CONFIG_DEFAULT_DEVICE_TREE="hsdk" CONFIG_DEBUG_UART=y +CONFIG_BOARD_LATE_INIT=y CONFIG_USE_BOOTARGS=y CONFIG_BOOTARGS="console=ttyS0,115200n8" CONFIG_BOARD_EARLY_INIT_F=y
configs/mccmon6_nor_defconfig +1 -0
@@ -7,6 +7,7 @@ CONFIG_TARGET_MCCMON6=y CONFIG_SPL_SERIAL_SUPPORT=y CONFIG_SPL=y # CONFIG_CMD_BMODE is not set +CONFIG_BOARD_LATE_INIT=y CONFIG_DISTRO_DEFAULTS=y CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/liebherr/mccmon6/mon6_imximage_nor.cfg" # CONFIG_USE_BOOTCOMMAND is not set
configs/mccmon6_sd_defconfig +1 -0
@@ -8,6 +8,7 @@ CONFIG_SPL_MMC_SUPPORT=y CONFIG_SPL_SERIAL_SUPPORT=y CONFIG_SPL=y # CONFIG_CMD_BMODE is not set +CONFIG_BOARD_LATE_INIT=y CONFIG_DISTRO_DEFAULTS=y CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/liebherr/mccmon6/mon6_imximage_sd.cfg" # CONFIG_USE_BOOTCOMMAND is not set
configs/mx53ppd_defconfig +1 -0
@@ -2,6 +2,7 @@ CONFIG_ARM=y CONFIG_ARCH_MX5=y CONFIG_SYS_TEXT_BASE=0x77800000 CONFIG_TARGET_MX53PPD=y +CONFIG_BOARD_LATE_INIT=y CONFIG_FIT=y CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/ge/mx53ppd/imximage.cfg" CONFIG_BOOTDELAY=1
configs/stm32f746-disco_defconfig +1 -0
@@ -5,6 +5,7 @@ CONFIG_SYS_MALLOC_F_LEN=0xC00 CONFIG_STM32F7=y CONFIG_TARGET_STM32F746_DISCO=y CONFIG_DEFAULT_DEVICE_TREE="stm32f746-disco" +CONFIG_BOARD_LATE_INIT=y CONFIG_ENV_VARS_UBOOT_CONFIG=y CONFIG_BOOTDELAY=3 CONFIG_USE_BOOTARGS=y
configs/stm32h743-disco_defconfig +1 -0
@@ -5,6 +5,7 @@ CONFIG_SYS_MALLOC_F_LEN=0xF00 CONFIG_STM32H7=y CONFIG_TARGET_STM32H743_DISCO=y CONFIG_DEFAULT_DEVICE_TREE="stm32h743i-disco" +CONFIG_BOARD_LATE_INIT=y CONFIG_DISTRO_DEFAULTS=y CONFIG_BOOTDELAY=3 # CONFIG_USE_BOOTCOMMAND is not set
configs/stm32h743-eval_defconfig +1 -0
@@ -5,6 +5,7 @@ CONFIG_SYS_MALLOC_F_LEN=0xF00 CONFIG_STM32H7=y CONFIG_TARGET_STM32H743_EVAL=y CONFIG_DEFAULT_DEVICE_TREE="stm32h743i-eval" +CONFIG_BOARD_LATE_INIT=y CONFIG_DISTRO_DEFAULTS=y CONFIG_BOOTDELAY=3 # CONFIG_USE_BOOTCOMMAND is not set
include/configs/bcmstb.h +0 -1
@@ -183,6 +183,5 @@ extern phys_addr_t prior_stage_fdt_address;* Set fdtaddr to prior stage-provided DTB in board_late_init, when * writeable environment is available. */ -#define CONFIG_BOARD_LATE_INIT #endif /* __BCMSTB_H */
include/configs/cl-som-imx7.h +0 -2
@@ -17,8 +17,6 @@/* Size of malloc() pool */ #define CONFIG_SYS_MALLOC_LEN (32 * SZ_1M) -#define CONFIG_BOARD_LATE_INIT -/* Uncomment to enable secure boot support */ /* #define CONFIG_SECURE_BOOT */ #define CONFIG_CSF_SIZE 0x4000
include/configs/controlcenterdc.h +0 -1
@@ -13,7 +13,6 @@#define CONFIG_CUSTOMER_BOARD_SUPPORT #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ -#define CONFIG_BOARD_LATE_INIT /* * TEXT_BASE needs to be below 16MiB, since this area is scrubbed
include/configs/hsdk.h +0 -1
@@ -128,6 +128,5 @@ setenv core_iccm_3 0x6; setenv core_dccm_3 0x6;\0"/* * Callback configuration */ -#define CONFIG_BOARD_LATE_INIT #endif /* _CONFIG_HSDK_H_ */
include/configs/mccmon6.h +0 -1
@@ -35,7 +35,6 @@#define CONFIG_SYS_MALLOC_LEN (10 * SZ_1M)#define CONFIG_BOARD_EARLY_INIT_F -#define CONFIG_BOARD_LATE_INIT #define CONFIG_MXC_UART #define CONFIG_MXC_UART_BASE UART1_BASE
include/configs/mx53ppd.h +0 -1
@@ -27,7 +27,6 @@#define CONFIG_WATCHDOG_TIMEOUT_MSECS 8000#define CONFIG_MISC_INIT_R -#define CONFIG_BOARD_LATE_INIT #define CONFIG_REVISION_TAG #define CONFIG_MXC_UART
include/configs/pdu001.h +0 -1
@@ -23,7 +23,6 @@#define MACH_TYPE_PDU001 5075#define CONFIG_MACH_TYPE MACH_TYPE_PDU001 -#define CONFIG_BOARD_LATE_INIT /* Clock Defines */ #define V_OSCK 24000000/* Clock output from T2 */
include/configs/stm32f746-disco.h +0 -1
@@ -57,7 +57,6 @@/* * Command line configuration. */ -#define CONFIG_BOARD_LATE_INIT #define CONFIG_DISPLAY_BOARDINFO /* For SPL */
include/configs/stm32h743-disco.h +0 -1
@@ -49,6 +49,5 @@/* * Command line configuration. */ -#define CONFIG_BOARD_LATE_INIT #endif /* __CONFIG_H */
include/configs/stm32h743-eval.h +0 -1
@@ -49,6 +49,5 @@/* * Command line configuration. */ -#define CONFIG_BOARD_LATE_INIT #endif /* __CONFIG_H */
include/configs/xilinx_zynqmp_mini.h +0 -1
@@ -24,7 +24,6 @@#undef CONFIG_BOOTM_NETBSD#undef CONFIG_BOOTM_VXWORKS#undef CONFIG_BOOTM_LINUX -#undef CONFIG_BOARD_LATE_INIT/* BOOTP options */ #undef CONFIG_BOOTP_BOOTFILESIZE
include/configs/zynq_cse.h +0 -1
@@ -17,7 +17,6 @@/* Undef unneeded configs */ #undef CONFIG_EXTRA_ENV_SETTINGS -#undef CONFIG_BOARD_LATE_INIT#undef CONFIG_ZLIB#undef CONFIG_GZIP
Signature · 1 line
2.18.0
PATCH v2 1/1 Convert CONFIG_BOARD_LATE_INIT to Kconfig
Quoted 9 lines · Ramon Fried
This converts the remaining board defined
CONFIG_BOARD_LATE_INITtoKconfig.Signed-off-by Ramon Fried <[email protected]>---
Changes in v2:
* Removed config fromKconfigas it already exists on common/Kconfig.
* Changed the commit message.
OK, I went to apply this and I see where I sent you in the wrong direction, sorry. BOARD_LATE_INIT is something that the boards (or SoCs) in question should be select'ing, which is what everything else that uses it is doing. Thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180819/86d607ef/attachment.sig>
PATCH v2 1/1 Convert CONFIG_BOARD_LATE_INIT to Kconfig
Quoted 12 lines · Tom Rini
Quoted 9 lines · Ramon Fried
This converts the remaining board defined
CONFIG_BOARD_LATE_INITtoKconfig.Signed-off-by Ramon Fried <[email protected]>---
Changes in v2:
* Removed config fromKconfigas it already exists on common/Kconfig.
* Changed the commit message.
Quoted 4 lines
OK, I went to apply this and I see where I sent you in the wrong direction, sorry.
BOARD_LATE_INITis something that the boards (or SoCs) in question should be select'ing, which is what everything else that uses it is doing. Thanks!
For zynq and zynqmp case we need to disable this option for mini configuration because we don't want to do full initialization in these cases. That's why for zynq/zynqmp we need to move this symbol from select to imply in Kconfig and fill a name for it.
It means for us it is not one line change.
I am going to send a patch to show conversion for zynq/zynqmp when builds are done.
Thanks,
Michal
PATCH v2 1/1 Convert CONFIG_BOARD_LATE_INIT to Kconfig
In reply to Tom RiniQuoted 12 lines · Tom Rini
Quoted 9 lines · Ramon Fried
This converts the remaining board defined
CONFIG_BOARD_LATE_INITtoKconfig.Signed-off-by Ramon Fried <[email protected]>---
Changes in v2:
* Removed config fromKconfigas it already exists on common/Kconfig.
* Changed the commit message.
Quoted 4 lines
OK, I went to apply this and I see where I sent you in the wrong direction, sorry.
BOARD_LATE_INITis something that the boards (or SoCs) in question should be select'ing, which is what everything else that uses it is doing. Thanks!
Again, wouldn't it rather make sense to convert the board_late_init to __weak symbol instead and drop the Kconfig option ?
Signature · 2 lines
Best regards, Marek Vasut
PATCH v2 1/1 Convert CONFIG_BOARD_LATE_INIT to Kconfig
Quoted 13 lines · Marek Vasut
Quoted 12 lines · Tom Rini
Quoted 9 lines · Ramon Fried
This converts the remaining board defined
CONFIG_BOARD_LATE_INITtoKconfig.Signed-off-by Ramon Fried <[email protected]>---
Changes in v2:
* Removed config fromKconfigas it already exists on common/Kconfig.
* Changed the commit message.
Quoted 8 lines
Quoted 4 lines
OK, I went to apply this and I see where I sent you in the wrong direction, sorry.
BOARD_LATE_INITis something that the boards (or SoCs) in question should be select'ing, which is what everything else that uses it is doing. Thanks!Again, wouldn't it rather make sense to convert the
board_late_initto__weaksymbol instead and drop theKconfigoption ?
That's not an option for us because we need to enable this functionality for full targets but not use them for mini configurations which don't require it and it just wasting our limited space.
Thanks,
Michal
PATCH v2 1/1 Convert CONFIG_BOARD_LATE_INIT to Kconfig
Quoted 19 lines · Michal Simek
Quoted 18 lines · Marek Vasut
Quoted 16 lines · Tom Rini
Quoted 9 lines · Ramon Fried
This converts the remaining board defined
CONFIG_BOARD_LATE_INITtoKconfig.Signed-off-by Ramon Fried <[email protected]>---
Changes in v2:
* Removed config fromKconfigas it already exists on common/Kconfig.
* Changed the commit message.OK, I went to apply this and I see where I sent you in the wrong direction, sorry.
BOARD_LATE_INITis something that the boards (or SoCs) in question should be select'ing, which is what everything else that uses it is doing. Thanks!
Quoted 7 lines
Quoted 3 lines
Again, wouldn't it rather make sense to convert the
board_late_initto__weaksymbol instead and drop theKconfigoption ?That's not an option for us because we need to enable this functionality for full targets but not use them for mini configurations which don't require it and it just wasting our limited space.
Then maybe you need a different ifdef for those machines ?
Signature · 2 lines
Best regards, Marek Vasut
PATCH v2 1/1 Convert CONFIG_BOARD_LATE_INIT to Kconfig
In reply to Marek VasutQuoted 13 lines · Marek Vasut
Quoted 12 lines · Tom Rini
Quoted 9 lines · Ramon Fried
This converts the remaining board defined
CONFIG_BOARD_LATE_INITtoKconfig.Signed-off-by Ramon Fried <[email protected]>---
Changes in v2:
* Removed config fromKconfigas it already exists on common/Kconfig.
* Changed the commit message.
Quoted 7 lines
Quoted 4 lines
OK, I went to apply this and I see where I sent you in the wrong direction, sorry.
BOARD_LATE_INITis something that the boards (or SoCs) in question should be select'ing, which is what everything else that uses it is doing. Thanks!Again, wouldn't it rather make sense to convert the
board_late_initto__weaksymbol instead and drop theKconfigoption ?
Despite being what I thought was the only fan of weak functions left, no, this hook isn't nearly widely used enough to justify being used that way.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180820/dace68fd/attachment.sig>