08 Jul, 2014

3 commits

  • '-elf' appears twice in the toolchain priority_list.
    The second one is rudundant.

    Signed-off-by: Masahiro Yamada
    Cc: Simon Glass
    Acked-by: Simon Glass

    Masahiro Yamada
     
  • Toolchains.__init__ is expected to display a warning message
    when the [toolchain] section is missing from ~/.buildman file.
    But it never works.
    In that case, instead, buildmain fails with an error message
    which is difficult to understand:

    Traceback (most recent call last):
    File "tools/buildman/buildman", line 126, in
    control.DoBuildman(options, args)
    File "/home/foo/u-boot/tools/buildman/control.py", line 78, in DoBuildman
    toolchains = toolchain.Toolchains()
    File "/home/foo/u-boot/tools/buildman/toolchain.py", line 106, in __init__
    config_fname)
    NameError: global name 'config_fname' is not defined

    Signed-off-by: Masahiro Yamada
    Cc: Simon Glass
    Acked-by: Simon Glass

    Masahiro Yamada
     
  • When patman applies the patches it checks out a new branch, uses 'git am'
    to apply the patches one by one, and then tries to go back to the old
    branch. If you try this when the branch is 'undefined', this doesn't work
    as patman cannot restore the correct branch after applying the patches.
    It seems that 'undefined' is created by git and is persistent after it is
    created, so that you can end up on quite an old branch.

    Add a check for the 'undefined' branch to avoid this.

    Reported-by: Masahiro Yamada
    Signed-off-by: Simon Glass

    Simon Glass
     

23 Jun, 2014

1 commit

  • move fdtdec_get_int() out of lib/fdtdec.c into lib/fdtdec_common.c
    as this function is also used, if CONFIG_OF_CONTROL is not
    used. Poped up on the ids8313 board using signed FIT images,
    and activating CONFIG_SYS_GENERIC_BOARD. Without this patch
    it shows on boot:

    No valid FDT found - please append one to U-Boot binary, use u-boot-dtb.bin or define CONFIG_OF_EMBED. For sandbox, use -d

    With this patch, it boots again with CONFIG_SYS_GENERIC_BOARD
    enabled.

    Signed-off-by: Heiko Schocher
    Acked-by: Simon Glass
    Cc: Tom Rini

    Heiko Schocher
     

19 Jun, 2014

6 commits


12 Jun, 2014

6 commits

  • GCC on Cygwin generates executables with .exe extension,
    for example:
    scripts/basic/fixdep.exe
    scripts/docproc.exe

    To ignore them, *.exe pattern should be moved
    from tools/.gitignore to ./.gitignore

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • "SFX = .exe" was originally added for Cygwin environment.

    It is true that GCC on Cygwin spits executables with .exe extention.

    For example,

    gcc -o foo foo.c

    will generate "foo.exe", not "foo".

    But GNU make is also nicely adjusted for Cygwin.

    For example,

    foo: foo.c
    gcc -o $@ $<

    will compare the timestamp between "foo.exe" and "foo.c".

    You do not have to tweak Makefiles like this:

    foo$(SFX): foo.c
    gcc -o $@ $<

    And "make clean" works as well without adjustment for Cygwin because
    the command "rm foo" on Cygwin will delete both "foo" and "foo.exe".

    In conclusion, makefiles do not need special care for Cygwin.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • There are many source files shared between U-boot image and tools.
    Instead of adding a lot of dummy wrapper files that just include
    the corresponding file in lib/ or common/ directory,
    Makefile should automatically generate them.

    The original inspiration for this came from
    scripts/Makefile.asm-generic of Linux Kernel.

    Signed-off-by: Masahiro Yamada
    Acked-by: Simon Glass
    Tested-by: Simon Glass

    Masahiro Yamada
     
  • When adding hashes or signatures, the target FDT may be full. Detect this
    and automatically try again after making 1KB of space.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Make the error handling common, and make sure the file is always closed
    on error. Rename the parameter to be more description and add comments.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • When building tools the u-boot specific sha256.h is required, but the
    host version of sha256.h is used when present. This leads to build errors
    on FreeBSD which does have a system sha256.h include. Like libfdt_env.h
    explicitly include u-boot's sha256.h.

    cc: Simon Glass
    Signed-off-by: Jeroen Hofstee
    Acked-by: Simon Glass

    Jeroen Hofstee
     

06 Jun, 2014

4 commits


27 May, 2014

2 commits

  • For sama5d3xek we need to modify the SPL image for correct detection by ROM
    code.

    Signed-off-by: Andreas Bießmann
    Tested-by: Bo Shen

    Andreas Bießmann
     
  • The new atmelimage converts a machine code BLOB to bootable ROM image. Atmel
    ROM has no sophisticated image format, it only checks the first 7 ARM vectors.
    The vectors can contain valid B or LDR opcodes, the 6'th vector contains the
    image size to load.

    Additionally the PMECC header can be written by the atmelimage target. The
    parameters must be given via the -n switch as a coma separated list. For
    example:

    mkimage -T atmelimage \
    -n usePmecc=1,sectorPerPage=4,sectorSize=512,spareSize=64,eccBits=4,eccOffset=36 \
    -d spl/u-boot-spl.bin boot.bin

    A provided image can be checked for correct header setup. It prints out the
    PMECC header parameters if it has one and the 6'th interrupt vector content.

    ---88---

    A SPL binary modified with the atmelimage mkimage target was succesfully
    booted on a sama5d34ek via MMC and NAND.

    Signed-off-by: Andreas Bießmann
    Cc: Bo Shen
    Cc: Heiko Schocher
    Tested-by: Bo Shen

    Andreas Bießmann
     

25 May, 2014

1 commit


17 May, 2014

1 commit

  • There is an unfortunate bug in the signoff suppression logic. The first
    pass is performed with 'git log', and all signoffs are added to the
    supression set, such that the second time (when processing the real
    patches) we always suppress the signoffs.

    Correct this by only suppressing signoffs in the second pass.

    Signed-off-by: Simon Glass
    Tested-by: Michal Simek
    Tested-by: Andreas Bießmann

    Simon Glass
     

13 May, 2014

2 commits


10 May, 2014

3 commits


09 May, 2014

1 commit


05 May, 2014

1 commit


19 Apr, 2014

1 commit


18 Apr, 2014

4 commits


23 Mar, 2014

1 commit

  • Add a new Patch-cc: tag which performs the service now provided by
    the Cc: tag. The Cc: tag is interpreted by git send-email but
    ignored by patman.

    So now:

    Cc: patman does nothing. (git send-email can cc patches)
    Patch-cc: patman Cc's patch and removes this tag from the patch

    Signed-off-by: Simon Glass

    Simon Glass
     

22 Mar, 2014

3 commits