[PATCH 12/22] Convert CONFIG_LSCHLV2 to Kconfig et al

Michael Walle michael at walle.cc
Thu Mar 24 18:48:55 CET 2022


Am 2022-03-23 22:19, schrieb Tom Rini:
> This converts the following to Kconfig:
>    CONFIG_LSCHLV2
>    CONFIG_LSXHL
> 
> Cc: Michael Walle <michael at walle.cc>
> Signed-off-by: Tom Rini <trini at konsulko.com>

Reviewed-by: Michael Walle <michael at walle.cc>

thanks,
-michael

> ---
>  board/buffalo/lsxl/Kconfig | 11 +++++++++++
>  configs/lschlv2_defconfig  |  2 +-
>  configs/lsxhl_defconfig    |  2 +-
>  3 files changed, 13 insertions(+), 2 deletions(-)
> 
> diff --git a/board/buffalo/lsxl/Kconfig b/board/buffalo/lsxl/Kconfig
> index ef7889637806..fd8f0542c31a 100644
> --- a/board/buffalo/lsxl/Kconfig
> +++ b/board/buffalo/lsxl/Kconfig
> @@ -9,4 +9,15 @@ config SYS_VENDOR
>  config SYS_CONFIG_NAME
>  	default "lsxl"
> 
> +choice
> +	prompt "Board model"
> +
> +config LSCHLV2
> +	bool "LSCHLV2 support"
> +
> +config LSXHL
> +	bool "LSXHL support"
> +
> +endchoice
> +
>  endif
> diff --git a/configs/lschlv2_defconfig b/configs/lschlv2_defconfig
> index 0cfa6d0c7bdf..8ec6ca2c8445 100644
> --- a/configs/lschlv2_defconfig
> +++ b/configs/lschlv2_defconfig
> @@ -7,6 +7,7 @@ 
> CONFIG_SYS_KWD_CONFIG="board/buffalo/lsxl/kwbimage-lschl.cfg"
>  CONFIG_SYS_TEXT_BASE=0x600000
>  CONFIG_NR_DRAM_BANKS=2
>  CONFIG_TARGET_LSXL=y
> +CONFIG_LSCHLV2=y
>  CONFIG_ENV_SIZE=0x10000
>  CONFIG_ENV_OFFSET=0x70000
>  CONFIG_ENV_SECT_SIZE=0x10000
> @@ -15,7 +16,6 @@ CONFIG_IDENT_STRING=" LS-CHLv2"
>  CONFIG_DISTRO_DEFAULTS=y
>  CONFIG_SYS_LOAD_ADDR=0x800000
>  CONFIG_API=y
> -CONFIG_SYS_EXTRA_OPTIONS="LSCHLV2"
>  CONFIG_SHOW_BOOT_PROGRESS=y
>  CONFIG_BOOTDELAY=3
>  CONFIG_USE_BOOTARGS=y
> diff --git a/configs/lsxhl_defconfig b/configs/lsxhl_defconfig
> index 046db90742f7..0de6fc55c6af 100644
> --- a/configs/lsxhl_defconfig
> +++ b/configs/lsxhl_defconfig
> @@ -7,6 +7,7 @@ 
> CONFIG_SYS_KWD_CONFIG="board/buffalo/lsxl/kwbimage-lsxhl.cfg"
>  CONFIG_SYS_TEXT_BASE=0x600000
>  CONFIG_NR_DRAM_BANKS=2
>  CONFIG_TARGET_LSXL=y
> +CONFIG_LSXHL=y
>  CONFIG_ENV_SIZE=0x10000
>  CONFIG_ENV_OFFSET=0x70000
>  CONFIG_ENV_SECT_SIZE=0x10000
> @@ -15,7 +16,6 @@ CONFIG_IDENT_STRING=" LS-XHL"
>  CONFIG_DISTRO_DEFAULTS=y
>  CONFIG_SYS_LOAD_ADDR=0x800000
>  CONFIG_API=y
> -CONFIG_SYS_EXTRA_OPTIONS="LSXHL"
>  CONFIG_SHOW_BOOT_PROGRESS=y
>  CONFIG_BOOTDELAY=3
>  CONFIG_USE_BOOTARGS=y

-- 
-michael


More information about the U-Boot mailing list