24 Apr, 2015

2 commits


19 Apr, 2015

7 commits

  • Make cover letter shows like 0/x, 00/xx and 000/xxx etc.

    Signed-off-by: Josh Wu
    Acked-by: Simon Glass

    Wu, Josh
     
  • The help text for -V says we will pass V=1 but all it really did was not
    pass in -s. Change the logic to pass make V=1 with given to buildman -V or
    -s to make otherwise.

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

    Tom Rini
     
  • When told to keep outputs, be much more liberal in what files we keep.
    In addition to adding 'MLO', keep anything that matches u-boot-spl.* (so
    that we keep the map file as well) and anything we generate about
    'u-boot itself. A large number of bootable formats now match this and
    thus it's easier to build many targets and then boot them afterwards
    using buildman.

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

    Tom Rini
     
  • It is useful to be able to see CONFIG changes made by commits. Add this
    feature to buildman using the -K flag so that all CONFIG changes are
    reported.

    The CONFIG options exist in a number of files. Each is reported
    individually as well as a summary that covers all files. The output
    shows three parts: green for additions, red for removals and yellow for
    changes.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Store all config file output so that we can compare changes if requested.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • At present buildman tries to detect an aborted build and doesn't record a
    result in that case. This is to make sure that an abort (e.g. with Ctrl-C)
    does not mark the build as done. Without this option, buildman would never
    retry the build unless -f/-F are provided. The effect is that aborting the
    build creates 'fake errors' on whatever builds buildman happens to be
    working on at the time.

    Unfortunately the current test is not reliable and this detection can
    trigger if a required toolchain tool is missing. In this case the toolchain
    problem is never reported.

    Adjust the logic to continue processing the build result, mark the build as
    done (and failed), but with a return code which indicates that it should be
    retried.

    The correct fix is to fully and correctly detect an aborted build, quit
    buildman immediately and not write any partial build results in this case.
    Unfortunately this is currently beyond my powers and is left as an exercise
    for the reader (and patches are welcome).

    Signed-off-by: Simon Glass

    Simon Glass
     
  • When a verbose build it selected, show the make command before the output of
    that command.

    Signed-off-by: Simon Glass

    Simon Glass
     

10 Apr, 2015

1 commit


03 Apr, 2015

1 commit


31 Mar, 2015

1 commit


29 Mar, 2015

1 commit

  • The current head revision of mkenvimage
    (e72be8947e129f5ab274c0a9f235d2cc0014b2ea) will prevent you from creating
    an env image from a text file that is larger than the env length specified
    by the '-s' option. That doesn't make sense given that the tool now allows
    comments and blank lines. This patch removes that limitation and allows
    longer text files to be used.

    I don't have time / desire at the moment to figure out "patman" and could
    really care less if this is adopted up stream. Just figured I would share
    in case anybody else finds it useful enough to take time to do a proper
    patch.

    >From 39ff30190c2bf687861f4b4b33230f1944fb64f9 Mon Sep 17 00:00:00 2001
    From: Brian McFarland
    Date: Thu, 12 Mar 2015 11:37:19 -0400
    Subject: [PATCH] In mkenvimage, removed the check that prevented using a
    source text file larger than the output environment image. Instead, the main
    parsing loop checks to see if the environment buffer is full, and quits if it
    is. After the main parse loop, a second loop swallows comments and
    whitespace until either the EOF is reached or more env vars are found, in
    which case an error will be thrown.

    Brian McFarland
     

06 Mar, 2015

4 commits


17 Feb, 2015

4 commits

  • For example on a raspberry pi the u-boot environment can be
    saved in a file on the first VFAT partition.
    This example illustrates how to use it with fw_printenv/fw_setenv.

    Signed-off-by: Waldemar Brodkorb

    Waldemar Brodkorb
     
  • Tom Rini
     
  • Now my PS3 can be also used to build u-boot for sunxi devices.

    Signed-off-by: Siarhei Siamashka
    Acked-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Siarhei Siamashka
     
  • Commit a93648d197df48fa46dd55f925ff70468bd81c71 introduced linker generated
    lists for imagetool which is the base for some host tools (mkimage, dumpimage,
    et al.). Unfortunately some host tool chains do not support the used type of
    linker scripts. Therefore this commit broke these host-tools for them, namely
    FreeBSD and Darwin (OS/X).

    This commit tries to fix this. In order to have a clean distinction between host
    and embedded code space we need to introduce our own linker generated list
    instead of re-using the available linker_lists.h provided functionality. So we
    copy the implementation used in linux kernel script/mod/file2alias.c which has
    the very same problem (cause it is a host tool). This code also comes with an
    abstraction for Mach-O binary format used in Darwin systems.

    Signed-off-by: Andreas Bießmann
    Cc: Guilherme Maciel Ferreira

    Andreas Bießmann
     

16 Feb, 2015

3 commits


10 Feb, 2015

3 commits


07 Feb, 2015

2 commits


06 Feb, 2015

1 commit


01 Feb, 2015

1 commit


31 Jan, 2015

3 commits

  • Add an explanation for how to set up git so that patman can find the alias
    file. Fix up the get_maintainers message too.

    Reported-by: Scott Wood
    Signed-off-by: Simon Glass

    Simon Glass
     
  • True commit lines start at column zero. Anything that is indented
    is part of the commit message instead. I noticed this by trying to
    run buildman with commit e3a4facdfc07179ebe017a07b8de6224a935a9f3
    as master, which contained a reference to a Linux commit inside
    the commit message. ProcessLine saw that as a genuite commit
    line, and thus buildman tried to build it, and died with an
    exception because that SHA is not present in the U-Boot tree.

    Signed-off-by: Scott Wood
    Acked-by: Simon Glass

    Scott Wood
     
  • When run with the --dry-run argument patman prints out information
    showing what it would do. This information currently doesn't line up
    with what patman/git send-email really do. Some basic examples:
    - If an email address is addressed via "Series-cc" and "Patch-cc" patman
    shows that email address would be CC-ed two times.
    - If an email address is addressed via "Series-to" and "Patch-cc" patman
    shows that email address would be sent TO and CC-ed.
    - If an email address is addressed from a combination of tag aliases,
    get_maintainer.pl output, "Series-cc", "Patch-cc", etc patman shows
    that the email address would be CC-ed multiple times.

    Patman currently does try to send duplicate emails like the --dry-run
    output shows, but "git send-email" intelligently removes duplicate
    addresses so this patch shouldn't change the non-dry-run functionality.

    Change patman's output and email addressing to line up with the
    "git send-email" logic. This trims down patman's dry-run output and
    prevents confusion about what patman will do when emails are actually
    sent.

    Signed-off-by: Peter Tyser
    Acked-by: Simon Glass
    Tested-by: Simon Glass

    Peter Tyser
     

30 Jan, 2015

6 commits

  • Tom Rini
     
  • Signed-off-by: Ruchika Gupta
    CC: Simon Glass
    Acked-by: Simon Glass

    Ruchika Gupta
     
  • Public exponentiation which is required in rsa verify functionality is
    tightly integrated with verification code in rsa_verify.c. The patch
    splits the file into twp separating the modular exponentiation.

    1. rsa-verify.c
    - The file parses device tree keys node to fill a keyprop structure.
    The keyprop structure can then be converted to implementation specific
    format.
    (struct rsa_pub_key for sw implementation)
    - The parsed device tree node is then passed to a generic rsa_mod_exp
    function.

    2. rsa-mod-exp.c
    Move the software specific functions related to modular exponentiation
    from rsa-verify.c to this file.

    Signed-off-by: Ruchika Gupta
    CC: Simon Glass
    Acked-by: Simon Glass

    Ruchika Gupta
     
  • default_image.c and socfpgaimage.c are the only image modules that print error
    messages during header verification. The verify_header() is used to query if a
    given image file is processed by the image format. Thus, if the image format
    can't handle the file, it must simply return an error. Otherwise we pollute the
    screen with errors messages until we find the image format that handle a given
    image file.

    Signed-off-by: Guilherme Maciel Ferreira

    Guilherme Maciel Ferreira
     
  • The dumpimage is able to extract components contained in a FIT image:

    $ ./dumpimage -T flat_dt -i CONTAINER.ITB -p INDEX FILE

    The CONTAINER.ITB is a regular FIT container file. The INDEX is the poisition
    of the sub-image to be retrieved, and FILE is the file (path+name) to save the
    extracted sub-image.

    For example, given the following kernel.its to build a kernel.itb:

    /dts-v1/;
    / {
    ...
    images {
    kernel@1 {
    description = "Kernel 2.6.32-34";
    data = /incbin/("/boot/vmlinuz-2.6.32-34-generic");
    type = "kernel";
    arch = "ppc";
    os = "linux";
    compression = "gzip";
    load = ;
    entry = ;
    hash@1 {
    algo = "md5";
    };
    };
    ...
    };
    ...
    };

    The dumpimage can extract the 'kernel@1' node through the following command:

    $ ./dumpimage -T flat_dt -i kernel.itb -p 0 kernel
    Extracted:
    Image 0 (kernel@1)
    Description: Kernel 2.6.32-34
    Created: Wed Oct 22 15:50:26 2014
    Type: Kernel Image
    Compression: gzip compressed
    Data Size: 4040128 Bytes = 3945.44 kB = 3.85 MB
    Architecture: PowerPC
    OS: Linux
    Load Address: 0x00000000
    Entry Point: 0x00000000
    Hash algo: md5
    Hash value: 22352ad39bdc03e2e50f9cc28c1c3652

    Which results in the file 'kernel' being exactly the same as '/boot/vmlinuz-2.6.32-34-generic'.

    Signed-off-by: Guilherme Maciel Ferreira

    Guilherme Maciel Ferreira
     
  • Signed-off-by: Guilherme Maciel Ferreira

    Guilherme Maciel Ferreira