[U-Boot] [RFC PATCH v2] Add patch submission script all in one commit

Simon Glass sjg at chromium.org
Wed Nov 16 07:08:05 CET 2011


Hi,

On Thu, Oct 20, 2011 at 4:13 PM, Anton Staaf <robotboy at chromium.org> wrote:
> On Thu, Oct 20, 2011 at 3:39 PM, Simon Glass <sjg at chromium.org> wrote:
>> This is a script for automating submission of patches to the U-Boot mailing
>> list.
>>
[snip]
>> +def FindCheckPatch():
>> +    # Look in current dir
>> +    for path in [os.getcwd(), '%s/bin' % os.getenv('HOME')]:
>> +        fname = os.path.join(path, 'checkpatch.pl')
>> +        if os.path.isfile(fname):
>> +            return fname
>> +
>> +    # Look upwwards for a Chrome OS tree
>> +    while not os.path.ismount(path):
>> +        fname = os.path.join(path, 'src', 'third_party', 'kernel', 'files',
>> +                'scripts', 'checkpatch.pl')
>> +        if os.path.isfile(fname):
>> +            return fname
>> +        path = os.path.dirname(path)
>> +    print 'Could not find checkpatch.pl'
>> +    return None
>> +
>
> This should be able to be simplified now that checkpatch is being imported into
> U-Boot.

When will checkpatch appear in the tree? I see a patch on the list -
can I assume this will go in before this util?

If there are no other changes I will tidy this up and a few other
fixes and submit v3.

After that assuming this goes in I can perhaps look at integrating with MAKEALL.

Regards,
Simon


More information about the U-Boot mailing list