Skip to content
Snippets Groups Projects
  1. Aug 24, 2014
    • Thomas Chou's avatar
      70fbc461
    • Vasili Galka's avatar
      nios2: Fix printf size_t format related warnings (again...) · 00a2517f
      Vasili Galka authored
      When compiling the current code on GCC 4.8.3, the following warnings
      appear:
      
      warning: format '%zu' expects argument of type 'size_t', but argument
      2 has type 'long unsigned int' [-Wformat=]
      
      There were many mails about such warnings on different architectures.
      This patch limits itself to the nios2 architecture.
      
      The problem is that for the size_t (%zu, %zd, ...) arguments of
      printf GCC does not verify the type match to size_t type. It verifies
      the type match to the compiler-defined __SIZE_TYPE__ type. Thus, if
      size_t is defined different from __SIZE_TYPE__ - warnings inevitably
      appear.
      
      There is a comment by Thomas Chou to the (rejected) patch:
      http://patchwork.ozlabs.org/patch/272102/
      
      
      which explains that the older GCC toolchains (gcc-3.4.6 and gcc-4.1.2)
      expect size_t to be "unsigned long" and the newer expect it to be
      "unsigned int". Thus, no matter how we define size_t - either way
      warnings appear when using some GCC version.
      
      By rejecting that patch, a choice was made to prefer older GCC versions
      and leave the warnings when building with the newer toolchains.
      Personally, I disagree with this choice...
      
      In any case, this patch proposes a way to fix the warnings for any GCC
      version. Just define size_t using the __SIZE_TYPE__ compiler-defined
      type and the type verification will pass.
      
      I tested that this fixes the warning on GCC 4.8.3. I don't have an
      older toolchain to test with, but __SIZE_TYPE__ was definitely defined
      in GCC 3.4.6, so it should work there too.
      
      Signed-off-by: default avatarVasili Galka <vvv444@gmail.com>
      Signed-off-by: default avatarThomas Chou <thomas@wytron.com.tw>
      00a2517f
  2. Aug 21, 2014
  3. Aug 20, 2014
  4. Aug 12, 2014
  5. Aug 09, 2014
  6. Aug 07, 2014
  7. Aug 04, 2014
  8. Aug 01, 2014
  9. Jul 30, 2014
    • 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
      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
    • Masahiro Yamada's avatar
      kconfig: add basic Kconfig files · 51631259
      Masahiro Yamada authored
      
      This commit adds more Kconfig files, which were written by hand.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      51631259
    • Masahiro Yamada's avatar
      kconfig: add board Kconfig and defconfig files · dd84058d
      Masahiro Yamada authored
      
      This commit adds:
       - arch/${ARCH}/Kconfig
          provide a menu to select target boards
       - board/${VENDOR}/${BOARD}/Kconfig or board/${BOARD}/Kconfig
          set CONFIG macros to the appropriate values for each board
       - configs/${TARGET_BOARD}_defconfig
          default setting of each board
      
      (This commit was automatically generated by a conversion script
      based on boards.cfg)
      
      In Linux Kernel, defconfig files are located under
      arch/${ARCH}/configs/ directory.
      It works in Linux Kernel since ARCH is always given from the
      command line for cross compile.
      
      But in U-Boot, ARCH is not given from the command line.
      Which means we cannot know ARCH until the board configuration is done.
      That is why all the "*_defconfig" files should be gathered into a
      single directory ./configs/.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      dd84058d
  10. Jul 28, 2014
Loading