xref: /openbmc/qemu/COPYING (revision d06cddf5)
13ef693a0Sbellard		    GNU GENERAL PUBLIC LICENSE
23ef693a0Sbellard		       Version 2, June 1991
33ef693a0Sbellard
4*a013cc65Saurel32 Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5*a013cc65Saurel32 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
63ef693a0Sbellard Everyone is permitted to copy and distribute verbatim copies
73ef693a0Sbellard of this license document, but changing it is not allowed.
83ef693a0Sbellard
93ef693a0Sbellard			    Preamble
103ef693a0Sbellard
113ef693a0Sbellard  The licenses for most software are designed to take away your
123ef693a0Sbellardfreedom to share and change it.  By contrast, the GNU General Public
133ef693a0SbellardLicense is intended to guarantee your freedom to share and change free
143ef693a0Sbellardsoftware--to make sure the software is free for all its users.  This
153ef693a0SbellardGeneral Public License applies to most of the Free Software
163ef693a0SbellardFoundation's software and to any other program whose authors commit to
173ef693a0Sbellardusing it.  (Some other Free Software Foundation software is covered by
18*a013cc65Saurel32the GNU Lesser General Public License instead.)  You can apply it to
193ef693a0Sbellardyour programs, too.
203ef693a0Sbellard
213ef693a0Sbellard  When we speak of free software, we are referring to freedom, not
223ef693a0Sbellardprice.  Our General Public Licenses are designed to make sure that you
233ef693a0Sbellardhave the freedom to distribute copies of free software (and charge for
243ef693a0Sbellardthis service if you wish), that you receive source code or can get it
253ef693a0Sbellardif you want it, that you can change the software or use pieces of it
263ef693a0Sbellardin new free programs; and that you know you can do these things.
273ef693a0Sbellard
283ef693a0Sbellard  To protect your rights, we need to make restrictions that forbid
293ef693a0Sbellardanyone to deny you these rights or to ask you to surrender the rights.
303ef693a0SbellardThese restrictions translate to certain responsibilities for you if you
313ef693a0Sbellarddistribute copies of the software, or if you modify it.
323ef693a0Sbellard
333ef693a0Sbellard  For example, if you distribute copies of such a program, whether
343ef693a0Sbellardgratis or for a fee, you must give the recipients all the rights that
353ef693a0Sbellardyou have.  You must make sure that they, too, receive or can get the
363ef693a0Sbellardsource code.  And you must show them these terms so they know their
373ef693a0Sbellardrights.
383ef693a0Sbellard
393ef693a0Sbellard  We protect your rights with two steps: (1) copyright the software, and
403ef693a0Sbellard(2) offer you this license which gives you legal permission to copy,
413ef693a0Sbellarddistribute and/or modify the software.
423ef693a0Sbellard
433ef693a0Sbellard  Also, for each author's protection and ours, we want to make certain
443ef693a0Sbellardthat everyone understands that there is no warranty for this free
453ef693a0Sbellardsoftware.  If the software is modified by someone else and passed on, we
463ef693a0Sbellardwant its recipients to know that what they have is not the original, so
473ef693a0Sbellardthat any problems introduced by others will not reflect on the original
483ef693a0Sbellardauthors' reputations.
493ef693a0Sbellard
503ef693a0Sbellard  Finally, any free program is threatened constantly by software
513ef693a0Sbellardpatents.  We wish to avoid the danger that redistributors of a free
523ef693a0Sbellardprogram will individually obtain patent licenses, in effect making the
533ef693a0Sbellardprogram proprietary.  To prevent this, we have made it clear that any
543ef693a0Sbellardpatent must be licensed for everyone's free use or not licensed at all.
553ef693a0Sbellard
563ef693a0Sbellard  The precise terms and conditions for copying, distribution and
573ef693a0Sbellardmodification follow.
583ef693a0Sbellard
593ef693a0Sbellard		    GNU GENERAL PUBLIC LICENSE
603ef693a0Sbellard   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
613ef693a0Sbellard
623ef693a0Sbellard  0. This License applies to any program or other work which contains
633ef693a0Sbellarda notice placed by the copyright holder saying it may be distributed
643ef693a0Sbellardunder the terms of this General Public License.  The "Program", below,
653ef693a0Sbellardrefers to any such program or work, and a "work based on the Program"
663ef693a0Sbellardmeans either the Program or any derivative work under copyright law:
673ef693a0Sbellardthat is to say, a work containing the Program or a portion of it,
683ef693a0Sbellardeither verbatim or with modifications and/or translated into another
693ef693a0Sbellardlanguage.  (Hereinafter, translation is included without limitation in
703ef693a0Sbellardthe term "modification".)  Each licensee is addressed as "you".
713ef693a0Sbellard
723ef693a0SbellardActivities other than copying, distribution and modification are not
733ef693a0Sbellardcovered by this License; they are outside its scope.  The act of
743ef693a0Sbellardrunning the Program is not restricted, and the output from the Program
753ef693a0Sbellardis covered only if its contents constitute a work based on the
763ef693a0SbellardProgram (independent of having been made by running the Program).
773ef693a0SbellardWhether that is true depends on what the Program does.
783ef693a0Sbellard
793ef693a0Sbellard  1. You may copy and distribute verbatim copies of the Program's
803ef693a0Sbellardsource code as you receive it, in any medium, provided that you
813ef693a0Sbellardconspicuously and appropriately publish on each copy an appropriate
823ef693a0Sbellardcopyright notice and disclaimer of warranty; keep intact all the
833ef693a0Sbellardnotices that refer to this License and to the absence of any warranty;
843ef693a0Sbellardand give any other recipients of the Program a copy of this License
853ef693a0Sbellardalong with the Program.
863ef693a0Sbellard
873ef693a0SbellardYou may charge a fee for the physical act of transferring a copy, and
883ef693a0Sbellardyou may at your option offer warranty protection in exchange for a fee.
893ef693a0Sbellard
903ef693a0Sbellard  2. You may modify your copy or copies of the Program or any portion
913ef693a0Sbellardof it, thus forming a work based on the Program, and copy and
923ef693a0Sbellarddistribute such modifications or work under the terms of Section 1
933ef693a0Sbellardabove, provided that you also meet all of these conditions:
943ef693a0Sbellard
953ef693a0Sbellard    a) You must cause the modified files to carry prominent notices
963ef693a0Sbellard    stating that you changed the files and the date of any change.
973ef693a0Sbellard
983ef693a0Sbellard    b) You must cause any work that you distribute or publish, that in
993ef693a0Sbellard    whole or in part contains or is derived from the Program or any
1003ef693a0Sbellard    part thereof, to be licensed as a whole at no charge to all third
1013ef693a0Sbellard    parties under the terms of this License.
1023ef693a0Sbellard
1033ef693a0Sbellard    c) If the modified program normally reads commands interactively
1043ef693a0Sbellard    when run, you must cause it, when started running for such
1053ef693a0Sbellard    interactive use in the most ordinary way, to print or display an
1063ef693a0Sbellard    announcement including an appropriate copyright notice and a
1073ef693a0Sbellard    notice that there is no warranty (or else, saying that you provide
1083ef693a0Sbellard    a warranty) and that users may redistribute the program under
1093ef693a0Sbellard    these conditions, and telling the user how to view a copy of this
1103ef693a0Sbellard    License.  (Exception: if the Program itself is interactive but
1113ef693a0Sbellard    does not normally print such an announcement, your work based on
1123ef693a0Sbellard    the Program is not required to print an announcement.)
1133ef693a0Sbellard
1143ef693a0SbellardThese requirements apply to the modified work as a whole.  If
1153ef693a0Sbellardidentifiable sections of that work are not derived from the Program,
1163ef693a0Sbellardand can be reasonably considered independent and separate works in
1173ef693a0Sbellardthemselves, then this License, and its terms, do not apply to those
1183ef693a0Sbellardsections when you distribute them as separate works.  But when you
1193ef693a0Sbellarddistribute the same sections as part of a whole which is a work based
1203ef693a0Sbellardon the Program, the distribution of the whole must be on the terms of
1213ef693a0Sbellardthis License, whose permissions for other licensees extend to the
1223ef693a0Sbellardentire whole, and thus to each and every part regardless of who wrote it.
1233ef693a0Sbellard
1243ef693a0SbellardThus, it is not the intent of this section to claim rights or contest
1253ef693a0Sbellardyour rights to work written entirely by you; rather, the intent is to
1263ef693a0Sbellardexercise the right to control the distribution of derivative or
1273ef693a0Sbellardcollective works based on the Program.
1283ef693a0Sbellard
1293ef693a0SbellardIn addition, mere aggregation of another work not based on the Program
1303ef693a0Sbellardwith the Program (or with a work based on the Program) on a volume of
1313ef693a0Sbellarda storage or distribution medium does not bring the other work under
1323ef693a0Sbellardthe scope of this License.
1333ef693a0Sbellard
1343ef693a0Sbellard  3. You may copy and distribute the Program (or a work based on it,
1353ef693a0Sbellardunder Section 2) in object code or executable form under the terms of
1363ef693a0SbellardSections 1 and 2 above provided that you also do one of the following:
1373ef693a0Sbellard
1383ef693a0Sbellard    a) Accompany it with the complete corresponding machine-readable
1393ef693a0Sbellard    source code, which must be distributed under the terms of Sections
1403ef693a0Sbellard    1 and 2 above on a medium customarily used for software interchange; or,
1413ef693a0Sbellard
1423ef693a0Sbellard    b) Accompany it with a written offer, valid for at least three
1433ef693a0Sbellard    years, to give any third party, for a charge no more than your
1443ef693a0Sbellard    cost of physically performing source distribution, a complete
1453ef693a0Sbellard    machine-readable copy of the corresponding source code, to be
1463ef693a0Sbellard    distributed under the terms of Sections 1 and 2 above on a medium
1473ef693a0Sbellard    customarily used for software interchange; or,
1483ef693a0Sbellard
1493ef693a0Sbellard    c) Accompany it with the information you received as to the offer
1503ef693a0Sbellard    to distribute corresponding source code.  (This alternative is
1513ef693a0Sbellard    allowed only for noncommercial distribution and only if you
1523ef693a0Sbellard    received the program in object code or executable form with such
1533ef693a0Sbellard    an offer, in accord with Subsection b above.)
1543ef693a0Sbellard
1553ef693a0SbellardThe source code for a work means the preferred form of the work for
1563ef693a0Sbellardmaking modifications to it.  For an executable work, complete source
1573ef693a0Sbellardcode means all the source code for all modules it contains, plus any
1583ef693a0Sbellardassociated interface definition files, plus the scripts used to
1593ef693a0Sbellardcontrol compilation and installation of the executable.  However, as a
1603ef693a0Sbellardspecial exception, the source code distributed need not include
1613ef693a0Sbellardanything that is normally distributed (in either source or binary
1623ef693a0Sbellardform) with the major components (compiler, kernel, and so on) of the
1633ef693a0Sbellardoperating system on which the executable runs, unless that component
1643ef693a0Sbellarditself accompanies the executable.
1653ef693a0Sbellard
1663ef693a0SbellardIf distribution of executable or object code is made by offering
1673ef693a0Sbellardaccess to copy from a designated place, then offering equivalent
1683ef693a0Sbellardaccess to copy the source code from the same place counts as
1693ef693a0Sbellarddistribution of the source code, even though third parties are not
1703ef693a0Sbellardcompelled to copy the source along with the object code.
1713ef693a0Sbellard
1723ef693a0Sbellard  4. You may not copy, modify, sublicense, or distribute the Program
1733ef693a0Sbellardexcept as expressly provided under this License.  Any attempt
1743ef693a0Sbellardotherwise to copy, modify, sublicense or distribute the Program is
1753ef693a0Sbellardvoid, and will automatically terminate your rights under this License.
1763ef693a0SbellardHowever, parties who have received copies, or rights, from you under
1773ef693a0Sbellardthis License will not have their licenses terminated so long as such
1783ef693a0Sbellardparties remain in full compliance.
1793ef693a0Sbellard
1803ef693a0Sbellard  5. You are not required to accept this License, since you have not
1813ef693a0Sbellardsigned it.  However, nothing else grants you permission to modify or
1823ef693a0Sbellarddistribute the Program or its derivative works.  These actions are
1833ef693a0Sbellardprohibited by law if you do not accept this License.  Therefore, by
1843ef693a0Sbellardmodifying or distributing the Program (or any work based on the
1853ef693a0SbellardProgram), you indicate your acceptance of this License to do so, and
1863ef693a0Sbellardall its terms and conditions for copying, distributing or modifying
1873ef693a0Sbellardthe Program or works based on it.
1883ef693a0Sbellard
1893ef693a0Sbellard  6. Each time you redistribute the Program (or any work based on the
1903ef693a0SbellardProgram), the recipient automatically receives a license from the
1913ef693a0Sbellardoriginal licensor to copy, distribute or modify the Program subject to
1923ef693a0Sbellardthese terms and conditions.  You may not impose any further
1933ef693a0Sbellardrestrictions on the recipients' exercise of the rights granted herein.
1943ef693a0SbellardYou are not responsible for enforcing compliance by third parties to
1953ef693a0Sbellardthis License.
1963ef693a0Sbellard
1973ef693a0Sbellard  7. If, as a consequence of a court judgment or allegation of patent
1983ef693a0Sbellardinfringement or for any other reason (not limited to patent issues),
1993ef693a0Sbellardconditions are imposed on you (whether by court order, agreement or
2003ef693a0Sbellardotherwise) that contradict the conditions of this License, they do not
2013ef693a0Sbellardexcuse you from the conditions of this License.  If you cannot
2023ef693a0Sbellarddistribute so as to satisfy simultaneously your obligations under this
2033ef693a0SbellardLicense and any other pertinent obligations, then as a consequence you
2043ef693a0Sbellardmay not distribute the Program at all.  For example, if a patent
2053ef693a0Sbellardlicense would not permit royalty-free redistribution of the Program by
2063ef693a0Sbellardall those who receive copies directly or indirectly through you, then
2073ef693a0Sbellardthe only way you could satisfy both it and this License would be to
2083ef693a0Sbellardrefrain entirely from distribution of the Program.
2093ef693a0Sbellard
2103ef693a0SbellardIf any portion of this section is held invalid or unenforceable under
2113ef693a0Sbellardany particular circumstance, the balance of the section is intended to
2123ef693a0Sbellardapply and the section as a whole is intended to apply in other
2133ef693a0Sbellardcircumstances.
2143ef693a0Sbellard
2153ef693a0SbellardIt is not the purpose of this section to induce you to infringe any
2163ef693a0Sbellardpatents or other property right claims or to contest validity of any
2173ef693a0Sbellardsuch claims; this section has the sole purpose of protecting the
2183ef693a0Sbellardintegrity of the free software distribution system, which is
2193ef693a0Sbellardimplemented by public license practices.  Many people have made
2203ef693a0Sbellardgenerous contributions to the wide range of software distributed
2213ef693a0Sbellardthrough that system in reliance on consistent application of that
2223ef693a0Sbellardsystem; it is up to the author/donor to decide if he or she is willing
2233ef693a0Sbellardto distribute software through any other system and a licensee cannot
2243ef693a0Sbellardimpose that choice.
2253ef693a0Sbellard
2263ef693a0SbellardThis section is intended to make thoroughly clear what is believed to
2273ef693a0Sbellardbe a consequence of the rest of this License.
2283ef693a0Sbellard
2293ef693a0Sbellard  8. If the distribution and/or use of the Program is restricted in
2303ef693a0Sbellardcertain countries either by patents or by copyrighted interfaces, the
2313ef693a0Sbellardoriginal copyright holder who places the Program under this License
2323ef693a0Sbellardmay add an explicit geographical distribution limitation excluding
2333ef693a0Sbellardthose countries, so that distribution is permitted only in or among
2343ef693a0Sbellardcountries not thus excluded.  In such case, this License incorporates
2353ef693a0Sbellardthe limitation as if written in the body of this License.
2363ef693a0Sbellard
2373ef693a0Sbellard  9. The Free Software Foundation may publish revised and/or new versions
2383ef693a0Sbellardof the General Public License from time to time.  Such new versions will
2393ef693a0Sbellardbe similar in spirit to the present version, but may differ in detail to
2403ef693a0Sbellardaddress new problems or concerns.
2413ef693a0Sbellard
2423ef693a0SbellardEach version is given a distinguishing version number.  If the Program
2433ef693a0Sbellardspecifies a version number of this License which applies to it and "any
2443ef693a0Sbellardlater version", you have the option of following the terms and conditions
2453ef693a0Sbellardeither of that version or of any later version published by the Free
2463ef693a0SbellardSoftware Foundation.  If the Program does not specify a version number of
2473ef693a0Sbellardthis License, you may choose any version ever published by the Free Software
2483ef693a0SbellardFoundation.
2493ef693a0Sbellard
2503ef693a0Sbellard  10. If you wish to incorporate parts of the Program into other free
2513ef693a0Sbellardprograms whose distribution conditions are different, write to the author
2523ef693a0Sbellardto ask for permission.  For software which is copyrighted by the Free
2533ef693a0SbellardSoftware Foundation, write to the Free Software Foundation; we sometimes
2543ef693a0Sbellardmake exceptions for this.  Our decision will be guided by the two goals
2553ef693a0Sbellardof preserving the free status of all derivatives of our free software and
2563ef693a0Sbellardof promoting the sharing and reuse of software generally.
2573ef693a0Sbellard
2583ef693a0Sbellard			    NO WARRANTY
2593ef693a0Sbellard
2603ef693a0Sbellard  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
2613ef693a0SbellardFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
2623ef693a0SbellardOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
2633ef693a0SbellardPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
2643ef693a0SbellardOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
2653ef693a0SbellardMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
2663ef693a0SbellardTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
2673ef693a0SbellardPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
2683ef693a0SbellardREPAIR OR CORRECTION.
2693ef693a0Sbellard
2703ef693a0Sbellard  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
2713ef693a0SbellardWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
2723ef693a0SbellardREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
2733ef693a0SbellardINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
2743ef693a0SbellardOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
2753ef693a0SbellardTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
2763ef693a0SbellardYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
2773ef693a0SbellardPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
2783ef693a0SbellardPOSSIBILITY OF SUCH DAMAGES.
2793ef693a0Sbellard
2803ef693a0Sbellard		     END OF TERMS AND CONDITIONS
2813ef693a0Sbellard
2823ef693a0Sbellard	    How to Apply These Terms to Your New Programs
2833ef693a0Sbellard
2843ef693a0Sbellard  If you develop a new program, and you want it to be of the greatest
2853ef693a0Sbellardpossible use to the public, the best way to achieve this is to make it
2863ef693a0Sbellardfree software which everyone can redistribute and change under these terms.
2873ef693a0Sbellard
2883ef693a0Sbellard  To do so, attach the following notices to the program.  It is safest
2893ef693a0Sbellardto attach them to the start of each source file to most effectively
2903ef693a0Sbellardconvey the exclusion of warranty; and each file should have at least
2913ef693a0Sbellardthe "copyright" line and a pointer to where the full notice is found.
2923ef693a0Sbellard
2933ef693a0Sbellard    <one line to give the program's name and a brief idea of what it does.>
294*a013cc65Saurel32    Copyright (C) <year>  <name of author>
2953ef693a0Sbellard
2963ef693a0Sbellard    This program is free software; you can redistribute it and/or modify
2973ef693a0Sbellard    it under the terms of the GNU General Public License as published by
2983ef693a0Sbellard    the Free Software Foundation; either version 2 of the License, or
2993ef693a0Sbellard    (at your option) any later version.
3003ef693a0Sbellard
3013ef693a0Sbellard    This program is distributed in the hope that it will be useful,
3023ef693a0Sbellard    but WITHOUT ANY WARRANTY; without even the implied warranty of
3033ef693a0Sbellard    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3043ef693a0Sbellard    GNU General Public License for more details.
3053ef693a0Sbellard
306*a013cc65Saurel32    You should have received a copy of the GNU General Public License along
307*a013cc65Saurel32    with this program; if not, write to the Free Software Foundation, Inc.,
308*a013cc65Saurel32    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
3093ef693a0Sbellard
3103ef693a0SbellardAlso add information on how to contact you by electronic and paper mail.
3113ef693a0Sbellard
3123ef693a0SbellardIf the program is interactive, make it output a short notice like this
3133ef693a0Sbellardwhen it starts in an interactive mode:
3143ef693a0Sbellard
315*a013cc65Saurel32    Gnomovision version 69, Copyright (C) year name of author
3163ef693a0Sbellard    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
3173ef693a0Sbellard    This is free software, and you are welcome to redistribute it
3183ef693a0Sbellard    under certain conditions; type `show c' for details.
3193ef693a0Sbellard
3203ef693a0SbellardThe hypothetical commands `show w' and `show c' should show the appropriate
3213ef693a0Sbellardparts of the General Public License.  Of course, the commands you use may
3223ef693a0Sbellardbe called something other than `show w' and `show c'; they could even be
3233ef693a0Sbellardmouse-clicks or menu items--whatever suits your program.
3243ef693a0Sbellard
3253ef693a0SbellardYou should also get your employer (if you work as a programmer) or your
3263ef693a0Sbellardschool, if any, to sign a "copyright disclaimer" for the program, if
3273ef693a0Sbellardnecessary.  Here is a sample; alter the names:
3283ef693a0Sbellard
3293ef693a0Sbellard  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
3303ef693a0Sbellard  `Gnomovision' (which makes passes at compilers) written by James Hacker.
3313ef693a0Sbellard
3323ef693a0Sbellard  <signature of Ty Coon>, 1 April 1989
3333ef693a0Sbellard  Ty Coon, President of Vice
3343ef693a0Sbellard
3353ef693a0SbellardThis General Public License does not permit incorporating your program into
3363ef693a0Sbellardproprietary programs.  If your program is a subroutine library, you may
3373ef693a0Sbellardconsider it more useful to permit linking proprietary applications with the
338*a013cc65Saurel32library.  If this is what you want to do, use the GNU Lesser General
3393ef693a0SbellardPublic License instead of this License.
340