Changeset 90713f7 in rtems-tools


Ignore:
Timestamp:
Mar 4, 2020, 4:27:52 PM (4 months ago)
Author:
Amar Takhar <amar@…>
Branches:
5, master
Children:
e29d0a6
Parents:
e8c180f
git-author:
Amar Takhar <amar@…> (03/04/20 16:27:52)
git-committer:
Amar Takhar <verm@…> (03/04/20 23:07:21)
Message:

Remove EOL whitespace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • misc/tools/mkimage.py

    re8c180f r90713f7  
    33# A quickly bashed together replacement for u-boot's mkimage written in python
    44#
    5 # Copyright 2010 Craig Barker 
     5# Copyright 2010 Craig Barker
    66#
    7 # Redistribution and use in source and binary forms, with or without 
     7# Redistribution and use in source and binary forms, with or without
    88# modification, are permitted provided that the following conditions are met:
    99#
    10 # 1. Redistributions of source code must retain the above copyright notice, 
     10# 1. Redistributions of source code must retain the above copyright notice,
    1111#    this list of conditions and the following disclaimer.
    1212#
     
    1515#    and/or other materials provided with the distribution.
    1616#
    17 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
    18 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
    19 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
    20 # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 
    21 # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
    22 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
    23 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
    24 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
    25 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
    26 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
     17# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
     18# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     19# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     20# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
     21# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     22# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     23# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     24# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     25# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     26# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    2727# POSSIBILITY OF SUCH DAMAGE.
    2828
     
    5656usage = "usage: %prog [options] image"
    5757parser = OptionParser(usage=usage)
    58 parser.add_option("-A","--arch", dest="arch", default="powerpc", 
     58parser.add_option("-A","--arch", dest="arch", default="powerpc",
    5959                  help="set architecture to 'arch'", metavar="ARCH")
    6060parser.add_option("-O","--os", dest="os", default="linux",
     
    7979if len(args) != 1: parser.print_help()
    8080
    81 if options.arch not in archs: 
     81if options.arch not in archs:
    8282        print "Invalid architecture specified, aborting"
    8383        sys.exit(2)
     
    8585if options.os not in oss:
    8686        print "Invalid operating system specified, aborting"
    87         sys.exit(2) 
     87        sys.exit(2)
    8888
    8989if options.comp not in comps:
    9090        print "Invalid compression specified, aborting"
    91         sys.exit(2) 
     91        sys.exit(2)
    9292
    9393if options.type not in types:
    9494        print "Invalid image type specified, aborting"
    95         sys.exit(2) 
     95        sys.exit(2)
    9696
    9797try:
     
    124124inputcrc = inputcrc & 0xffffffff
    125125
    126 structdata = struct.pack(MAGIC, 0, int(time.time()), inputsize, 
    127                 int(options.addr,16), int(options.ep,16), inputcrc, 
    128                 oss[options.os], archs[options.arch], types[options.type], 
     126structdata = struct.pack(MAGIC, 0, int(time.time()), inputsize,
     127                int(options.addr,16), int(options.ep,16), inputcrc,
     128                oss[options.os], archs[options.arch], types[options.type],
    129129                comps[options.comp], options.name)
    130130
Note: See TracChangeset for help on using the changeset viewer.