Do not apply: tools: add gen_maintainers

 ========================================
 Do not apply this patch to the main line
 ========================================

This tool generates MAINTAINERS files based on boards.cfg file.

Because it is used only once, it should not be applied.
Add MAINTAINERS files

We have switched to Kconfig and the boards.cfg file is going to
be removed. We have to retrieve the board status and maintainers
information from it.

The MAINTAINERS format as in Linux Kernel would be nice
because we can crib the scripts/get_maintainer.pl for our use.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
tools: add genboardscfg

Now the primary data for each board is in Kconfig, defconfig and
MAINTAINERS.

It is true boards.cfg is needed for MAKEALL and buildman and
might be useful to brouse boards in a single database.
But it would be painful to maintain the boards.cfg in sync.

So, this is the solution.
Add a tool to generate the equivalent boards.cfg file based on
the latest Kconfig, defconfig and MAINTAINERS.

We can keep all the functions of MAKEALL and buildman with it.

The best thing would be to change MAKEALL and buildman for not
depending on boards.cfg in future, but it will take some time.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
kconfig: remove mkconfig and boards.cfg

The old configuration script is no longer necessary.

And boards.cfg is not a primary database, but derived from
Kconfig, defconfig and MAINTAINERS files.

We can generate the latest boards.cfg with the genboardscfg tool.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Series-changes: 4
  - Remove boards.cfg
MAKEALL: adjust for Kconfig

Use "make <board>_defconfig" instead of "make <board>_config".

Invoke tools/genboardscfg to generate boards.cfg when it is missing.
buildman: adjust for Kconfig

Use "make <board>_defconfig" instead of "make <board>_config".

FIXME!
This fixup is bad because it still depends on boards.cfg
to support options such as -a <ARCH>, -c <CPU> etc.
We want to delete it when switching to Kconfig.

We have to invent another method without using boards.cfg.
MAKEALL: Show configuration
kconfig: delete redundant CONFIG_${ARCH} definition

CONFIG_${ARCH} is defined by Kconfig.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Series-changes: 4
  - Rebase on the current u-boot/master
kbuild: remove CONFIG_SPL/CONFIG_TPL definition in config headers

Now CONFIG_SPL and CONFIG_TPL are defined in Kconfig.

Remove the redundant definition in config headers.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Series-changes: 4
  - Rebase on the current u-boot/master

Series-changes: 3
  - Rebase on the current u-boot/master

Series-changes: 2
  - Rebase on the current u-boot/master
kconfig: add CONFIG_CROSS_COMPILE

Copy from Linux Kernel (with a few adjustments in comments).
kconfig: add CONFIG_CC_OPTIMIZE_FOR_SIZE
Do not apply: tools: add updatedefconfig
kconfig: zynq: refactor Zynq Kconfig and defconfig

Move Zynq board select menu to arch/arm/cpu/armv7/Kconfig.

Move common setting (CONFIG_SYS_SOC="zynq" etc.)
to arch/arm/cpu/armv7/Kconfig.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
tegra:
tools: move_config
buildman update