[U-Boot] [PATCH v2 2/3] Convert CONFIG_UBIFS_SILENCE_MSG to Kconfig

Heiko Schocher hs at denx.de
Fri Mar 23 19:09:44 UTC 2018


Hello Petr,

Am 19.03.2018 um 11:08 schrieb Petr Vorel:
> Signed-off-by: Petr Vorel <petr.vorel at gmail.com>
> Cc: Joe Hershberger <joe.hershberger at ni.com>
> Cc: Heiko Schocher <hs at denx.de>
> ---
>   README                            | 6 ------
>   configs/am335x_igep003x_defconfig | 1 +
>   configs/igep0032_defconfig        | 1 +
>   env/Kconfig                       | 1 -
>   fs/ubifs/Kconfig                  | 7 +++++++
>   include/configs/am335x_igep003x.h | 1 -
>   include/configs/omap3_igep00x0.h  | 1 -
>   scripts/config_whitelist.txt      | 1 -
>   8 files changed, 9 insertions(+), 10 deletions(-)

Your patch drops an compile error for sun5i, see:

https://travis-ci.org/hsdenx/u-boot-test/jobs/357259797

Hmm ... shouldn;t be y depended on CONFIG_UBIFS_SILENCE_MSG ?

> diff --git a/README b/README
> index 5fd6428c5c..af7fbb6561 100644
> --- a/README
> +++ b/README
> @@ -2549,12 +2549,6 @@ FIT uImage format:
>   		Enable UBI fastmap debug
>   		default: 0
>   
> -- UBIFS support
> -		CONFIG_UBIFS_SILENCE_MSG
> -
> -		Make the verbose messages from UBIFS stop printing.  This leaves
> -		warnings and errors enabled.
> -
>   - SPL framework
>   		CONFIG_SPL
>   		Enable building of SPL globally.
> diff --git a/configs/am335x_igep003x_defconfig b/configs/am335x_igep003x_defconfig
> index d2026da7b3..324f6e5289 100644
> --- a/configs/am335x_igep003x_defconfig
> +++ b/configs/am335x_igep003x_defconfig
> @@ -38,6 +38,7 @@ CONFIG_MTDIDS_DEFAULT="nand0=omap2-nand.0"
>   CONFIG_MTDPARTS_DEFAULT="mtdparts=omap2-nand.0:512k(SPL),-(UBI)"
>   CONFIG_CMD_UBI=y
>   # CONFIG_CMD_UBIFS is not set
> +# CONFIG_UBIFS_SILENCE_MSG is not set

This option should be enabled for this board, or?

>   CONFIG_ENV_IS_IN_UBI=y
>   CONFIG_MMC_OMAP_HS=y
>   CONFIG_NAND=y
> diff --git a/configs/igep0032_defconfig b/configs/igep0032_defconfig
> index 0a3dff7796..0199250812 100644
> --- a/configs/igep0032_defconfig
> +++ b/configs/igep0032_defconfig
> @@ -28,6 +28,7 @@ CONFIG_CMD_CACHE=y
>   CONFIG_CMD_EXT4_WRITE=y
>   CONFIG_CMD_UBI=y
>   # CONFIG_CMD_UBIFS is not set
> +# CONFIG_UBIFS_SILENCE_MSG is not set

Here too ...

>   CONFIG_NET_RANDOM_ETHADDR=y
>   CONFIG_MMC_OMAP_HS=y
>   CONFIG_NAND=y
> diff --git a/env/Kconfig b/env/Kconfig
> index a3c6298273..36d6e799fc 100644
> --- a/env/Kconfig
> +++ b/env/Kconfig
> @@ -361,7 +361,6 @@ config ENV_IS_IN_UBI
>   	  It is assumed that both volumes are in the same MTD partition.
>   
>   	  - CONFIG_UBI_SILENCE_MSG
> -	  - CONFIG_UBIFS_SILENCE_MSG
>   
>   	  You will probably want to define these to avoid a really noisy system
>   	  when storing the env in UBI.
> diff --git a/fs/ubifs/Kconfig b/fs/ubifs/Kconfig
> index e69de29bb2..1a8f084e36 100644
> --- a/fs/ubifs/Kconfig
> +++ b/fs/ubifs/Kconfig
> @@ -0,0 +1,7 @@
> +config UBIFS_SILENCE_MSG
> +	bool "UBIFS silence verbose messages"
> +	depends on CMD_UBIFS
> +	default ENV_IS_IN_UBI
> +	help
> +	  Make the verbose messages from UBIFS stop printing. This leaves
> +	  warnings and errors enabled.
> diff --git a/include/configs/am335x_igep003x.h b/include/configs/am335x_igep003x.h
> index 50fd46a589..e00c73dab3 100644
> --- a/include/configs/am335x_igep003x.h
> +++ b/include/configs/am335x_igep003x.h
> @@ -24,7 +24,6 @@
>   
>   /* Make the verbose messages from UBI stop printing */
>   #define CONFIG_UBI_SILENCE_MSG
> -#define CONFIG_UBIFS_SILENCE_MSG
>   
>   #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
>   
> diff --git a/include/configs/omap3_igep00x0.h b/include/configs/omap3_igep00x0.h
> index 76d8e13d52..ab54a25d1a 100644
> --- a/include/configs/omap3_igep00x0.h
> +++ b/include/configs/omap3_igep00x0.h
> @@ -137,7 +137,6 @@
>   #define CONFIG_ENV_UBI_VOLUME		"config"
>   #define CONFIG_ENV_UBI_VOLUME_REDUND	"config_r"
>   #define CONFIG_UBI_SILENCE_MSG		1
> -#define CONFIG_UBIFS_SILENCE_MSG	1
>   #define CONFIG_ENV_SIZE			(32*1024)
>   
>   #endif /* __IGEP00X0_H */
> diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
> index b0958d7a80..84c1e4a822 100644
> --- a/scripts/config_whitelist.txt
> +++ b/scripts/config_whitelist.txt
> @@ -4629,7 +4629,6 @@ CONFIG_T_SH7706LSR
>   CONFIG_UART_BR_PRELIM
>   CONFIG_UART_OR_PRELIM
>   CONFIG_UBIBLOCK
> -CONFIG_UBIFS_SILENCE_MSG
>   CONFIG_UBIFS_VOLUME
>   CONFIG_UBI_PART
>   CONFIG_UBI_SILENCE_MSG
> 

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