30 Sep, 2018

1 commit

  • In some cases it is useful to add a group of files to the image and be
    able to access them at run-time. Of course it is possible to generate
    the binman config file with a set of blobs each with a filename. But for
    convenience, add an entry type which can do this.

    Add required support (for adding nodes and string properties) into the
    state module.

    Signed-off-by: Simon Glass

    Simon Glass
     

29 Sep, 2018

1 commit

  • When tools are needed but not present, at present we just get an error
    which can be confusing for the user. Try to be helpful by reporting the
    tool as missing and suggesting a possible remedy.

    Also update the Run() method to support this.

    Signed-off-by: Simon Glass

    Simon Glass
     

08 Aug, 2018

1 commit


02 Aug, 2018

3 commits


27 Jul, 2018

1 commit


19 Jul, 2018

1 commit


09 Jul, 2018

2 commits


23 Jun, 2018

3 commits


08 Jun, 2018

1 commit


07 May, 2018

1 commit

  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have a single declared
    license in the tag as both the before and after are identical in tag
    contents. There's also a few places where I found we did not have a tag
    and have introduced one.

    Signed-off-by: Tom Rini

    Tom Rini
     

29 Jan, 2018

1 commit


22 Jan, 2018

1 commit


23 Nov, 2017

1 commit


14 Sep, 2017

1 commit

  • This section of the settings file may be missing. Handle that gracefully
    rather than emitting an error.

    Also update patman to write this section when a new settings file is
    created.

    Fixes: e11aa602 (patman: add support for omitting bouncing addresses)

    Signed-off-by: Simon Glass
    Reviewed-by: Chris Packham
    Tested-by: Bin Meng

    Simon Glass
     

12 Sep, 2017

1 commit


09 Jun, 2017

10 commits

  • The existing test (patman --test) only covers basic checkpatch output.
    We have had some problems with unicode processing and could use test
    coverage for the various tags patman supports.

    Add a new functional test which runs most of the patman flow on a few
    test commits and checks that the results are correct.

    See the documentation in the test for a description of what it does.

    Signed-off-by: Simon Glass
    Tested-by: Philipp Tomsich

    Simon Glass
     
  • This is not a good variable name in Python because 'list' is a type. It
    shows up highlighted in some editors. Rename it.

    Signed-off-by: Simon Glass
    Tested-by: Philipp Tomsich

    Simon Glass
     
  • Allow the add_maintainers parameter to be a list of maintainers, thus
    allowing us to simulate calling the script in tests without actually
    needing it to work.

    Signed-off-by: Simon Glass
    Tested-by: Philipp Tomsich

    Simon Glass
     
  • Add some unicode to the test patches to make sure that patman does the
    right thing.

    Signed-off-by: Simon Glass
    Tested-by: Philipp Tomsich

    Simon Glass
     
  • There is no need for this function to return the same object that was
    passed in. Drop the return value.

    Signed-off-by: Simon Glass
    Tested-by: Philipp Tomsich

    Simon Glass
     
  • Unicode characters may appear in input patches so we should not warn about
    them. Drop this warning.

    Signed-off-by: Simon Glass
    Tested-by: Philipp Tomsich

    Simon Glass
     
  • This is not a good variable name in Python because 'str' is a type. It
    shows up highlighted in some editors. Rename it.

    Signed-off-by: Simon Glass
    Tested-by: Philipp Tomsich

    Simon Glass
     
  • The communication filter reads data in blocks and converts each block to
    unicode (if necessary) one at a time. In the unlikely event that a unicode
    character in the input spans a block this will not work. We get an error
    like:

    UnicodeDecodeError: 'utf8' codec can't decode bytes in position 1022-1023:
    unexpected end of data

    There is no need to change the input to unicode, so the easiest fix is to
    drop this feature.

    Signed-off-by: Simon Glass
    Tested-by: Philipp Tomsich

    Simon Glass
     
  • Don't mess with the email address when outputting them. Just make sure
    they are encoded with utf-8.

    Signed-off-by: Simon Glass
    Tested-by: Philipp Tomsich

    Simon Glass
     
  • This change encodes the CC list to UTF-8 to avoid failures on
    maintainer-addresses that include non-ASCII characters (observed on
    Debian 7.11 with Python 2.7.3).

    Without this, I get the following failure:
    Traceback (most recent call last):
    File "tools/patman/patman", line 159, in
    options.add_maintainers)
    File "[snip]/u-boot/tools/patman/series.py", line 234, in MakeCcFile
    print(commit.patch, ', '.join(set(list)), file=fd)
    UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 81: ordinal not in range(128)
    from Heiko's email address:
    [..., u'"Heiko St\xfcbner" ', ...]

    While with this change added this encodes to:
    "=?UTF-8?q?Heiko=20St=C3=BCbner?= "

    Signed-off-by: Philipp Tomsich
    Reviewed-by: Simon Glass
    Signed-off-by: Simon Glass
    Tested-by: Simon Glass
    Tested-by: Philipp Tomsich

    Philipp Tomsich
     

14 Apr, 2017

1 commit

  • os.read() returns a byte array in Python 3.5.2 and needs to be converted
    into a string. Check if the returned value is an instance of bytes and
    if it is decode it as a utf-8 string. If it is not a utf-8 encoded string
    the decoding may fail with an exception.

    Prior to this fix the comparisions check data == "" would fail when data
    was b'' and would cause an infinite memory leaking loop. joins would
    also fail with an exception below but due to the infinite loop it never
    made it that far.

    Signed-off-by: George McCollister
    Acked-by: Simon Glass

    George McCollister
     

08 Feb, 2017

2 commits


09 Oct, 2016

7 commits