Skip to content
Snippets Groups Projects
  1. May 13, 2011
    • Wolfgang Denk's avatar
      Revert "Fix building tools alone with host compiler" · 91081e01
      Wolfgang Denk authored
      This reverts commit bbc6353c.
      It breaks building on many systems:
      ...
      .../common/env_embedded.c:28:20: fatal error: config.h: No such file or directory
      compilation terminated.
      .../common/image.c:27:20: fatal error: common.h: No such file or directory
      compilation terminated.
      .../lib/crc32.c:12:20: fatal error: common.h: No such file or directory
      compilation terminated.
      .../lib/md5.c:28:22: fatal error: compiler.h: No such file or directory
      compilation terminated.
      .../lib/sha1.c:33:20: fatal error: common.h: No such file or directory
      compilation terminated.
      91081e01
  2. May 12, 2011
  3. Apr 29, 2011
  4. Apr 20, 2011
    • Jon Povey's avatar
      tools/env: fix redundant env flag comparison · 735eb0f0
      Jon Povey authored
      
      This fixes two bugs with comparison of redundant environment flags on
      read.
      
      flag0 and flag1 in fw_env_open() were declared signed instead of
      unsigned char breaking BOOLEAN mode "== 0xFF" tests and in INCREMENTAL
      mode the wrong environment would be chosen where the flag values are
      127 and 128 (either way round). With both flags over 128, both signs
      flipped and the logic worked by happy accident.
      
      Also there was a logic bug in the INCREMENTAL test (after signedness was
      fixed) in the case flag0=0, flag1=255, env 1 would be incorrectly chosen.
      
      Fix both of these.
      
      Signed-off-by: default avatarJon Povey <jon.povey@racelogic.co.uk>
      735eb0f0
  5. Apr 12, 2011
  6. Feb 01, 2011
  7. Jan 18, 2011
  8. Nov 27, 2010
  9. Nov 14, 2010
  10. Oct 27, 2010
    • Wolfgang Denk's avatar
      make-asm-offsets: fix sed script · e4691f5e
      Wolfgang Denk authored
      
      When copying the "sed" script to generate the asm-offsets.h file from
      the Linux Kbuild script into the make-asm-offsets file I missed the
      fact that the former runs in a "make" context and thus uses double
      "$$" to escape a single "$", while the latter is a shell script, where
      this must not be done.  Unfortunately the problem did not show up
      during the initial tests on Power Architecture systems, but on ARM the
      generated asm-offsets.h was not correct.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Tested-by: default avatarHeiko Schocher <hs@denx.de>
      Tested-by: default avatarBen Gardiner <bengardiner@nanometrics.ca>
      e4691f5e
  11. Oct 26, 2010
    • Wolfgang Denk's avatar
      include/asm-offsets.h: automatically generate assembler constants · 16a354f9
      Wolfgang Denk authored
      
      A recurrent issue is that certain C level constructs like sizeof() or
      offsetof() cannot be used in assembler files, which is inconvenient
      when such constructs are used in the definition of macro names etc.
      
      To avoid duplication of such definitions (and thus another cause of
      problems), we adapt the Linux way to automatically generate the
      respective definitions from the respective C header files.
      
      In Linux, this is implemented in include/linux/kbuild.h, Kbuild, and
      arch/*/kernel/asm-offsets.c; we adapt the code from the Linux v2.6.36
      kernel tree.
      
      We also copy the concept of the include/generated/ directory which can
      be used to hold other automatically generated files as well.
      
      We start with an architecture-independent lib/asm-offsets.c which
      generates include/generated/generic-asm-offsets.h (included by
      include/asm-offsets.h, which is what will be referred to in the actual
      source code).  Later this may be extended by architecture-specific
      arch/*/lib/asm-offsets.c files that will generate a
      include/generated/asm-offsets.h.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Acked-by: default avatarKumar Gala <galak@kernel.crashing.org>
      16a354f9
  12. Oct 18, 2010
  13. Oct 12, 2010
  14. Sep 21, 2010
  15. Sep 19, 2010
  16. Sep 18, 2010
  17. Aug 10, 2010
  18. Aug 08, 2010
  19. Jul 25, 2010
  20. Jul 24, 2010
  21. Jun 29, 2010
  22. Apr 30, 2010
  23. Apr 24, 2010
  24. Apr 13, 2010
  25. Apr 09, 2010
    • Peter Tyser's avatar
      mkimage: Fix strict-aliasing compiler warning · a2513e27
      Peter Tyser authored
      
      Version 4.2.4 of gcc produces the following warnings without this change:
        mkimage.c: In function ‘main’:
        mkimage.c:204: warning: dereferencing type-punned pointer will break strict-aliasing rules
        mkimage.c:222: warning: dereferencing type-punned pointer will break strict-aliasing rules
      
      Signed-off-by: default avatarPeter Tyser <ptyser@xes-inc.com>
      a2513e27
  26. Mar 27, 2010
  27. Mar 11, 2010
    • Mike Frysinger's avatar
      mkimage: dont force entry point with xip · 1b691bb0
      Mike Frysinger authored
      
      Some people boot images with the entry point in the middle of the blob
      (like Linux with the head code in discardable .init.text), and there is no
      no real requirement that the entry point be right after the mkimage header
      when doing XIP, so let people specify whatever they want.  If they do need
      an entry right after the header, then they still can do that with normal
      -e behavior.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      1b691bb0
  28. Feb 23, 2010
  29. Feb 12, 2010
Loading