1. 05 11月, 2014 1 次提交
  2. 31 10月, 2014 2 次提交
    • S
      tools/kwbimage: Fix compilation warning · 934a529f
      Stefan Roese 提交于
      This patch fixes a compilation warning of kwbimage.c:
      
      tools/kwbimage.c: In function ‘kwbimage_set_header’:
      tools/kwbimage.c:784:8: warning: ‘headersz’ may be used uninitialized in this function [-Wmaybe-uninitialized]
        memcpy(ptr, image, headersz);
              ^
      Instead of using multiple if statements, use a switch statement with
      a default entry. And return with error if an unsupported version
      is configured in the cfg file.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Acked-By: NWolfgang Denk <wd@denx.de>
      934a529f
    • A
      tools/kwbimage.c: fix build on darwin · e5f1a586
      Andreas Bießmann 提交于
      kwbimage uses get_current_dir_name(3) which is a gnu extension and not
      available on darwin host. Fix this by converting to portable getcwd(3)
      function.
      
      This patch fixes the following error:
      ---8<---
        HOSTCC  tools/kwbimage.o
      tools/kwbimage.c:399:16: warning: implicit declaration of function 'get_current_dir_name' is invalid in C99 [-Wimplicit-function-declaration]
                              char *cwd = get_current_dir_name();
                                          ^
      tools/kwbimage.c:399:10: warning: incompatible integer to pointer conversion initializing 'char *' with an expression of type 'int' [-Wint-conversion]
                              char *cwd = get_current_dir_name();
                                    ^     ~~~~~~~~~~~~~~~~~~~~~~
      2 warnings generated.
      ...
      Undefined symbols for architecture x86_64:
        "_get_current_dir_name", referenced from:
            _image_headersz_v1 in kwbimage.o
      ld: symbol(s) not found for architecture x86_64
      --->8---
      Signed-off-by: NAndreas Bießmann <andreas.devel@googlemail.com>
      Cc: Stefan Roese <sr@denx.de>
      Acked-by: NStefan Roese <sr@denx.de>
      [agust: fixed getcwd() return warning]
      Signed-off-by: NAnatolij Gustschin <agust@denx.de>
      e5f1a586
  3. 23 10月, 2014 1 次提交
    • S
      tools: kwbimage: Add image version 1 support for Armada XP / 370 · 4acd2d24
      Stefan Roese 提交于
      This patch integrates the Barebox version of this kwbimage.c file into
      U-Boot. As this version supports the image version 1 type for the
      Armada XP / 370 SoCs.
      
      It was easier to integrate the existing and known to be working Barebox
      source than to update the current U-Boot version to support this
      v1 image header format. Now all Marvell MVEBU SoCs are supported:
      
      Image type 0: Kirkwood & Dove
      Image type 1: Armada 370 & Armada XP
      
      Please note that the current v1 support has this restuction (same as
      has Barebox version):
      
      Not implemented: support for the register headers and secure headers
      in v1 images
      
      Tested on Marvell DB-78460-BP eval board.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Tested-by: NLuka Perkov <luka@openwrt.org>
      4acd2d24
  4. 13 12月, 2013 1 次提交
    • G
      tools: moved code common to all image tools to a separated module. · f86ed6a8
      Guilherme Maciel Ferreira 提交于
      In order to avoid duplicating code and keep only one point of modification,
      the functions, structs and defines useful for "dumpimage" were moved from
      "mkimage" to a common module called "imagetool".
      
      This modification also weakens the coupling between image types (FIT, IMX, MXS,
      and so on) and image tools (mkimage and dumpimage). Any tool may initialize the
      "imagetool" through register_image_tool() function, while the image types
      register themselves within an image tool using the register_image_type()
      function:
      
                                                            +---------------+
                                                     +------|   fit_image   |
       +--------------+          +-----------+       |      +---------------+
       |    mkimage   |--------> |           | <-----+
       +--------------+          |           |              +---------------+
                                 | imagetool | <------------|    imximage   |
       +--------------+          |           |              +---------------+
       |  dumpimage   |--------> |           | <-----+
       +--------------+          +-----------+       |      +---------------+
                                                     +------| default_image |
                                                            +---------------+
      
                register_image_tool()           register_image_type()
      
      Also, the struct "mkimage_params" was renamed to "image_tool_params" to make
      clear its general purpose.
      Signed-off-by: NGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      f86ed6a8
  5. 17 8月, 2013 1 次提交
  6. 24 7月, 2013 1 次提交
  7. 13 5月, 2011 1 次提交
  8. 19 1月, 2011 1 次提交
  9. 03 10月, 2009 3 次提交
  10. 16 9月, 2009 1 次提交
  11. 11 9月, 2009 2 次提交