Skip to content
Snippets Groups Projects
  1. Aug 06, 2014
  2. Aug 05, 2014
  3. Aug 04, 2014
  4. Aug 01, 2014
  5. Jul 30, 2014
    • Masahiro Yamada's avatar
      include: remove CONFIG_SPL/CONFIG_TPL definition in config headers · 25b4adbb
      Masahiro Yamada authored
      
      Now CONFIG_SPL and CONFIG_TPL are defined in Kconfig.
      
      Remove the redundant definition in config headers.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      25b4adbb
    • Masahiro Yamada's avatar
      powerpc: remove redundant CPU definition · c6d12624
      Masahiro Yamada authored
      
      CONFIG_${CPU} is defined by Kconfig.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      Acked-by: default avatarStefan Roese <sr@denx.de>
      c6d12624
    • Masahiro Yamada's avatar
      kconfig: delete redundant CONFIG_${ARCH} definition · 90f984e3
      Masahiro Yamada authored
      
      CONFIG_${ARCH} is defined by Kconfig.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      90f984e3
    • Masahiro Yamada's avatar
      buildman: adjust for Kconfig · 73f30b9b
      Masahiro Yamada authored
      
      Use "make <board>_defconfig" instead of "make <board>_config".
      
      Invoke tools/genboardscfg.py to generate boards.cfg when it is missing.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      73f30b9b
    • Masahiro Yamada's avatar
      MAKEALL: adjust for Kconfig · bb6da87d
      Masahiro Yamada authored
      
       - Use "make <board>_defconfig" instead of "make <board>_config".
      
       - Invoke tools/genboardscfg.py to generate boards.cfg when it is
         missing.
      
       - Show "Building ${BOARD_NAME} board..." message.
         (Prior to Kconfig, instead, mkconfig script displayed
         "Configuring for ${BOARD_NAME} board..." but it was removed.)
         Without this message, we cannot know which board is currently
         being built.
      
       - Do not show "# configuration written to .config".
         This message is useless and just annoying for MAKEALL.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      bb6da87d
    • Masahiro Yamada's avatar
      kconfig: remove mkconfig and boards.cfg · a2580ebb
      Masahiro Yamada authored
      
      The old configuration script is no longer necessary.
      Nor is boards.cfg a primary database.
      We can generate it with the genboardscfg.py tool
      based on the latest Kconfig, defconfig and MAINTAINERS.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      a2580ebb
    • Masahiro Yamada's avatar
      tools: add genboardscfg.py · 3c08e8b8
      Masahiro Yamada authored
      
      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 all the supported 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 the future, but it would take some time.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      3c08e8b8
    • Masahiro Yamada's avatar
      Add board MAINTAINERS files · 93d4334f
      Masahiro Yamada authored
      
      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 script.
      
      After some discussion, we chose to put a MAINTAINERS file under each
      board directory, not the top-level one because we want to collect
      relevant information for a board into a single place.
      
      TODO:
      Modify get_maintainer.pl to scan multiple MAINTAINERS files.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Suggested-by: default avatarTom Rini <trini@ti.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      93d4334f
    • Masahiro Yamada's avatar
      kconfig: switch to Kconfig · 51148790
      Masahiro Yamada authored
      
      This commit enables Kconfig.
      Going forward, we use Kconfig for the board configuration.
      mkconfig will never be used. Nor will include/config.mk be generated.
      
      Kconfig must be adjusted for U-Boot because our situation is
      a little more complicated than Linux Kernel.
      We have to generate multiple boot images (Normal, SPL, TPL)
      from one source tree.
      Each image needs its own configuration input.
      
      Usage:
      
      Run "make <board>_defconfig" to do the board configuration.
      
      It will create the .config file and additionally spl/.config, tpl/.config
      if SPL, TPL is enabled, respectively.
      
      You can use "make config", "make menuconfig" etc. to create
      a new .config or modify the existing one.
      
      Use "make spl/config", "make spl/menuconfig" etc. for spl/.config
      and do likewise for tpl/.config file.
      
      The generic syntax of configuration targets for SPL, TPL is:
      
        <target_image>/<config_command>
      
      Here, <target_image> is either 'spl' or 'tpl'
            <config_command> is 'config', 'menuconfig', 'xconfig', etc.
      
      When the configuration is done, run "make".
      (Or "make <board>_defconfig all" will do the configuration and build
      in one time.)
      
      For futher information of how Kconfig works in U-Boot,
      please read the comment block of scripts/multiconfig.py.
      
      By the way, there is another item worth remarking here:
      coexistence of Kconfig and board herder files.
      
      Prior to Kconfig, we used C headers to define a set of configs.
      
      We expect a very long term to migrate from C headers to Kconfig.
      Two different infractructure must coexist in the interim.
      
      In our former configuration scheme, include/autoconf.mk was generated
      for use in makefiles.
      It is still generated under include/, spl/include/, tpl/include/ directory
      for the Normal, SPL, TPL image, respectively.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      51148790
Loading