[U-Boot] [PATCH v2 02/15] zynq: kconfig: move board select menu and commonsettings

Masahiro Yamada yamada.m at jp.panasonic.com
Wed Aug 6 11:48:13 CEST 2014


Hi Michal,


On Wed, 6 Aug 2014 11:10:14 +0200
Michal Simek <michal.simek at xilinx.com> wrote:


> 
> Based on steps below - defconfigs are both empty.
> Linux kernel is taking .config from /boot/config-`uname -r`.

Yes, but the .config of U-Boot is not installed anywhere in the host PC.
I guess that is why DEFCONFIG_LIST seems meaningless...

I have to admit I am still searching for the usage of this option.




> Maybe I do something wrong and Kconfig handles it differently
> but currently I can't see a reason to have this option there.


I don't think you did anything wrong.


> [u-boot]$ make mrproper
> [u-boot]$ make savedefconfig
>   HOSTCC  scripts/basic/fixdep
>   HOSTCC  scripts/kconfig/conf.o
>   SHIPPED scripts/kconfig/zconf.tab.c
>   SHIPPED scripts/kconfig/zconf.lex.c
>   SHIPPED scripts/kconfig/zconf.hash.c
>   HOSTCC  scripts/kconfig/zconf.tab.o
>   HOSTLD  scripts/kconfig/conf
> scripts/kconfig/conf --savedefconfig=defconfig Kconfig
> #
> # using defaults found in configs/sandbox_defconfig
> #
> [u-boot]$ cat defconfig

In this case, savedefconfig was done based on
configs/sandbox_defconfig which is empty for now,
but which will have more options in the future.


> [u-boot]$ vim Kconfig
> [u-boot]$ git diff
> diff --git a/Kconfig b/Kconfig
> index 9e77a6e28b46..1a3864557df4 100644
> --- a/Kconfig
> +++ b/Kconfig
> @@ -12,12 +12,6 @@ config KCONFIG_OBJDIR
>         string
>         option env="KCONFIG_OBJDIR"
> 
> -config DEFCONFIG_LIST
> -       string
> -       depends on !SPL_BUILD
> -       option defconfig_list
> -       default "configs/sandbox_defconfig"
> -
>  menu "General setup"
> 
>  config SPL_BUILD
> [u-boot]$ make mrproper
>   CLEAN   scripts/basic
>   CLEAN   scripts/kconfig
> [u-boot]$ make savedefconfig
>   HOSTCC  scripts/basic/fixdep
>   HOSTCC  scripts/kconfig/conf.o
>   SHIPPED scripts/kconfig/zconf.tab.c
>   SHIPPED scripts/kconfig/zconf.lex.c
>   SHIPPED scripts/kconfig/zconf.hash.c
>   HOSTCC  scripts/kconfig/zconf.tab.o
>   HOSTLD  scripts/kconfig/conf
> scripts/kconfig/conf --savedefconfig=defconfig Kconfig
> [u-boot]$ cat defconfig
> [u-boot]$
> 

Whereas, this case, savedefconfig failed,
that is why the file is empty.




Best Regards
Masahiro Yamada



More information about the U-Boot mailing list