xref: /OK3568_Linux_fs/yocto/poky/meta/files/common-licenses/GPL-1.0-or-later (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunGNU GENERAL PUBLIC LICENSE
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunVersion 1, February 1989
4*4882a593Smuzhiyun
5*4882a593SmuzhiyunCopyright (C) 1989 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor,
6*4882a593SmuzhiyunBoston, MA 02110-1301 USA
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunEveryone is permitted to copy and distribute verbatim copies of this license
9*4882a593Smuzhiyundocument, but changing it is not allowed.
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunPreamble
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunThe license agreements of most software companies try to keep users at the
14*4882a593Smuzhiyunmercy of those companies. By contrast, our General Public License is intended
15*4882a593Smuzhiyunto guarantee your freedom to share and change free software--to make sure
16*4882a593Smuzhiyunthe software is free for all its users. The General Public License applies
17*4882a593Smuzhiyunto the Free Software Foundation's software and to any other program whose
18*4882a593Smuzhiyunauthors commit to using it. You can use it for your programs, too.
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunWhen we speak of free software, we are referring to freedom, not price. Specifically,
21*4882a593Smuzhiyunthe General Public License is designed to make sure that you have the freedom
22*4882a593Smuzhiyunto give away or sell copies of free software, that you receive source code
23*4882a593Smuzhiyunor can get it if you want it, that you can change the software or use pieces
24*4882a593Smuzhiyunof it in new free programs; and that you know you can do these things.
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunTo protect your rights, we need to make restrictions that forbid anyone to
27*4882a593Smuzhiyundeny you these rights or to ask you to surrender the rights. These restrictions
28*4882a593Smuzhiyuntranslate to certain responsibilities for you if you distribute copies of
29*4882a593Smuzhiyunthe software, or if you modify it.
30*4882a593Smuzhiyun
31*4882a593SmuzhiyunFor example, if you distribute copies of a such a program, whether gratis
32*4882a593Smuzhiyunor for a fee, you must give the recipients all the rights that you have. You
33*4882a593Smuzhiyunmust make sure that they, too, receive or can get the source code. And you
34*4882a593Smuzhiyunmust tell them their rights.
35*4882a593Smuzhiyun
36*4882a593SmuzhiyunWe protect your rights with two steps: (1) copyright the software, and (2)
37*4882a593Smuzhiyunoffer you this license which gives you legal permission to copy, distribute
38*4882a593Smuzhiyunand/or modify the software.
39*4882a593Smuzhiyun
40*4882a593SmuzhiyunAlso, for each author's protection and ours, we want to make certain that
41*4882a593Smuzhiyuneveryone understands that there is no warranty for this free software. If
42*4882a593Smuzhiyunthe software is modified by someone else and passed on, we want its recipients
43*4882a593Smuzhiyunto know that what they have is not the original, so that any problems introduced
44*4882a593Smuzhiyunby others will not reflect on the original authors' reputations.
45*4882a593Smuzhiyun
46*4882a593SmuzhiyunThe precise terms and conditions for copying, distribution and modification
47*4882a593Smuzhiyunfollow.
48*4882a593Smuzhiyun
49*4882a593SmuzhiyunGNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION
50*4882a593SmuzhiyunAND MODIFICATION
51*4882a593Smuzhiyun
52*4882a593Smuzhiyun0. This License Agreement applies to any program or other work which contains
53*4882a593Smuzhiyuna notice placed by the copyright holder saying it may be distributed under
54*4882a593Smuzhiyunthe terms of this General Public License. The "Program", below, refers to
55*4882a593Smuzhiyunany such program or work, and a "work based on the Program" means either the
56*4882a593SmuzhiyunProgram or any work containing the Program or a portion of it, either verbatim
57*4882a593Smuzhiyunor with modifications. Each licensee is addressed as "you".
58*4882a593Smuzhiyun
59*4882a593Smuzhiyun1. You may copy and distribute verbatim copies of the Program's source code
60*4882a593Smuzhiyunas you receive it, in any medium, provided that you conspicuously and appropriately
61*4882a593Smuzhiyunpublish on each copy an appropriate copyright notice and disclaimer of warranty;
62*4882a593Smuzhiyunkeep intact all the notices that refer to this General Public License and
63*4882a593Smuzhiyunto the absence of any warranty; and give any other recipients of the Program
64*4882a593Smuzhiyuna copy of this General Public License along with the Program. You may charge
65*4882a593Smuzhiyuna fee for the physical act of transferring a copy.
66*4882a593Smuzhiyun
67*4882a593Smuzhiyun2. You may modify your copy or copies of the Program or any portion of it,
68*4882a593Smuzhiyunand copy and distribute such modifications under the terms of Paragraph 1
69*4882a593Smuzhiyunabove, provided that you also do the following:
70*4882a593Smuzhiyun
71*4882a593Smuzhiyuna) cause the modified files to carry prominent notices stating that you changed
72*4882a593Smuzhiyunthe files and the date of any change; and
73*4882a593Smuzhiyun
74*4882a593Smuzhiyunb) cause the whole of any work that you distribute or publish, that in whole
75*4882a593Smuzhiyunor in part contains the Program or any part thereof, either with or without
76*4882a593Smuzhiyunmodifications, to be licensed at no charge to all third parties under the
77*4882a593Smuzhiyunterms of this General Public License (except that you may choose to grant
78*4882a593Smuzhiyunwarranty protection to some or all third parties, at your option).
79*4882a593Smuzhiyun
80*4882a593Smuzhiyunc) If the modified program normally reads commands interactively when run,
81*4882a593Smuzhiyunyou must cause it, when started running for such interactive use in the simplest
82*4882a593Smuzhiyunand most usual way, to print or display an announcement including an appropriate
83*4882a593Smuzhiyuncopyright notice and a notice that there is no warranty (or else, saying that
84*4882a593Smuzhiyunyou provide a warranty) and that users may redistribute the program under
85*4882a593Smuzhiyunthese conditions, and telling the user how to view a copy of this General
86*4882a593SmuzhiyunPublic License.
87*4882a593Smuzhiyun
88*4882a593Smuzhiyund) You may charge a fee for the physical act of transferring a copy, and you
89*4882a593Smuzhiyunmay at your option offer warranty protection in exchange for a fee.
90*4882a593Smuzhiyun
91*4882a593SmuzhiyunMere aggregation of another independent work with the Program (or its derivative)
92*4882a593Smuzhiyunon a volume of a storage or distribution medium does not bring the other work
93*4882a593Smuzhiyununder the scope of these terms.
94*4882a593Smuzhiyun
95*4882a593Smuzhiyun3. You may copy and distribute the Program (or a portion or derivative of
96*4882a593Smuzhiyunit, under Paragraph 2) in object code or executable form under the terms of
97*4882a593SmuzhiyunParagraphs 1 and 2 above provided that you also do one of the following:
98*4882a593Smuzhiyun
99*4882a593Smuzhiyuna) accompany it with the complete corresponding machine-readable source code,
100*4882a593Smuzhiyunwhich must be distributed under the terms of Paragraphs 1 and 2 above; or,
101*4882a593Smuzhiyun
102*4882a593Smuzhiyunb) accompany it with a written offer, valid for at least three years, to give
103*4882a593Smuzhiyunany third party free (except for a nominal charge for the cost of distribution)
104*4882a593Smuzhiyuna complete machine-readable copy of the corresponding source code, to be distributed
105*4882a593Smuzhiyununder the terms of Paragraphs 1 and 2 above; or,
106*4882a593Smuzhiyun
107*4882a593Smuzhiyunc) accompany it with the information you received as to where the corresponding
108*4882a593Smuzhiyunsource code may be obtained. (This alternative is allowed only for noncommercial
109*4882a593Smuzhiyundistribution and only if you received the program in object code or executable
110*4882a593Smuzhiyunform alone.)
111*4882a593Smuzhiyun
112*4882a593SmuzhiyunSource code for a work means the preferred form of the work for making modifications
113*4882a593Smuzhiyunto it. For an executable file, complete source code means all the source code
114*4882a593Smuzhiyunfor all modules it contains; but, as a special exception, it need not include
115*4882a593Smuzhiyunsource code for modules which are standard libraries that accompany the operating
116*4882a593Smuzhiyunsystem on which the executable file runs, or for standard header files or
117*4882a593Smuzhiyundefinitions files that accompany that operating system.
118*4882a593Smuzhiyun
119*4882a593Smuzhiyun4. You may not copy, modify, sublicense, distribute or transfer the Program
120*4882a593Smuzhiyunexcept as expressly provided under this General Public License. Any attempt
121*4882a593Smuzhiyunotherwise to copy, modify, sublicense, distribute or transfer the Program
122*4882a593Smuzhiyunis void, and will automatically terminate your rights to use the Program under
123*4882a593Smuzhiyunthis License. However, parties who have received copies, or rights to use
124*4882a593Smuzhiyuncopies, from you under this General Public License will not have their licenses
125*4882a593Smuzhiyunterminated so long as such parties remain in full compliance.
126*4882a593Smuzhiyun
127*4882a593Smuzhiyun5. By copying, distributing or modifying the Program (or any work based on
128*4882a593Smuzhiyunthe Program) you indicate your acceptance of this license to do so, and all
129*4882a593Smuzhiyunits terms and conditions.
130*4882a593Smuzhiyun
131*4882a593Smuzhiyun6. Each time you redistribute the Program (or any work based on the Program),
132*4882a593Smuzhiyunthe recipient automatically receives a license from the original licensor
133*4882a593Smuzhiyunto copy, distribute or modify the Program subject to these terms and conditions.
134*4882a593SmuzhiyunYou may not impose any further restrictions on the recipients' exercise of
135*4882a593Smuzhiyunthe rights granted herein.
136*4882a593Smuzhiyun
137*4882a593Smuzhiyun7. The Free Software Foundation may publish revised and/or new versions of
138*4882a593Smuzhiyunthe General Public License from time to time. Such new versions will be similar
139*4882a593Smuzhiyunin spirit to the present version, but may differ in detail to address new
140*4882a593Smuzhiyunproblems or concerns.
141*4882a593Smuzhiyun
142*4882a593SmuzhiyunEach version is given a distinguishing version number. If the Program specifies
143*4882a593Smuzhiyuna version number of the license which applies to it and "any later version",
144*4882a593Smuzhiyunyou have the option of following the terms and conditions either of that version
145*4882a593Smuzhiyunor of any later version published by the Free Software Foundation. If the
146*4882a593SmuzhiyunProgram does not specify a version number of the license, you may choose any
147*4882a593Smuzhiyunversion ever published by the Free Software Foundation.
148*4882a593Smuzhiyun
149*4882a593Smuzhiyun8. If you wish to incorporate parts of the Program into other free programs
150*4882a593Smuzhiyunwhose distribution conditions are different, write to the author to ask for
151*4882a593Smuzhiyunpermission. For software which is copyrighted by the Free Software Foundation,
152*4882a593Smuzhiyunwrite to the Free Software Foundation; we sometimes make exceptions for this.
153*4882a593SmuzhiyunOur decision will be guided by the two goals of preserving the free status
154*4882a593Smuzhiyunof all derivatives of our free software and of promoting the sharing and reuse
155*4882a593Smuzhiyunof software generally.
156*4882a593Smuzhiyun
157*4882a593Smuzhiyun
158*4882a593Smuzhiyun
159*4882a593Smuzhiyun   NO WARRANTY 9.
160*4882a593Smuzhiyun
161*4882a593SmuzhiyunBECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE
162*4882a593SmuzhiyunPROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE
163*4882a593SmuzhiyunSTATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM
164*4882a593Smuzhiyun"AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
165*4882a593SmuzhiyunBUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
166*4882a593SmuzhiyunFOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
167*4882a593SmuzhiyunOF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME
168*4882a593SmuzhiyunTHE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
169*4882a593Smuzhiyun
170*4882a593Smuzhiyun10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
171*4882a593SmuzhiyunWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE
172*4882a593SmuzhiyunTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
173*4882a593SmuzhiyunGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE
174*4882a593SmuzhiyunOR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA
175*4882a593SmuzhiyunOR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES
176*4882a593SmuzhiyunOR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH
177*4882a593SmuzhiyunHOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
178*4882a593SmuzhiyunEND OF TERMS AND CONDITIONS
179*4882a593Smuzhiyun
180*4882a593SmuzhiyunAppendix: How to Apply These Terms to Your New Programs
181*4882a593Smuzhiyun
182*4882a593SmuzhiyunIf you develop a new program, and you want it to be of the greatest possible
183*4882a593Smuzhiyunuse to humanity, the best way to achieve this is to make it free software
184*4882a593Smuzhiyunwhich everyone can redistribute and change under these terms.
185*4882a593Smuzhiyun
186*4882a593SmuzhiyunTo do so, attach the following notices to the program. It is safest to attach
187*4882a593Smuzhiyunthem to the start of each source file to most effectively convey the exclusion
188*4882a593Smuzhiyunof warranty; and each file should have at least the "copyright" line and a
189*4882a593Smuzhiyunpointer to where the full notice is found.
190*4882a593Smuzhiyun
191*4882a593Smuzhiyun<one line to give the program's name and a brief idea of what it does.>
192*4882a593Smuzhiyun
193*4882a593SmuzhiyunCopyright (C) 19yy <name of author>
194*4882a593Smuzhiyun
195*4882a593SmuzhiyunThis program is free software; you can redistribute it and/or modify it under
196*4882a593Smuzhiyunthe terms of the GNU General Public License as published by the Free Software
197*4882a593SmuzhiyunFoundation; either version 1, or (at your option) any later version.
198*4882a593Smuzhiyun
199*4882a593SmuzhiyunThis program is distributed in the hope that it will be useful, but WITHOUT
200*4882a593SmuzhiyunANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
201*4882a593SmuzhiyunFOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
202*4882a593Smuzhiyun
203*4882a593SmuzhiyunYou should have received a copy of the GNU General Public License along with
204*4882a593Smuzhiyunthis program; if not, write to the Free Software Foundation, Inc., 675 Mass
205*4882a593SmuzhiyunAve, Cambridge, MA 02139, USA.
206*4882a593Smuzhiyun
207*4882a593SmuzhiyunAlso add information on how to contact you by electronic and paper mail.
208*4882a593Smuzhiyun
209*4882a593SmuzhiyunIf the program is interactive, make it output a short notice like this when
210*4882a593Smuzhiyunit starts in an interactive mode:
211*4882a593Smuzhiyun
212*4882a593SmuzhiyunGnomovision version 69, Copyright (C) 19xx name of author Gnomovision comes
213*4882a593Smuzhiyunwith ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software,
214*4882a593Smuzhiyunand you are welcome to redistribute it under certain conditions; type `show
215*4882a593Smuzhiyunc' for details.
216*4882a593Smuzhiyun
217*4882a593SmuzhiyunThe hypothetical commands `show w' and `show c' should show the appropriate
218*4882a593Smuzhiyunparts of the General Public License. Of course, the commands you use may be
219*4882a593Smuzhiyuncalled something other than `show w' and `show c'; they could even be mouse-clicks
220*4882a593Smuzhiyunor menu items--whatever suits your program.
221*4882a593Smuzhiyun
222*4882a593SmuzhiyunYou should also get your employer (if you work as a programmer) or your school,
223*4882a593Smuzhiyunif any, to sign a "copyright disclaimer" for the program, if necessary. Here
224*4882a593Smuzhiyuna sample; alter the names:
225*4882a593Smuzhiyun
226*4882a593SmuzhiyunYoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision'
227*4882a593Smuzhiyun(a program to direct compilers to make passes at assemblers) written by James
228*4882a593SmuzhiyunHacker.
229*4882a593Smuzhiyun
230*4882a593Smuzhiyun<signature of Ty Coon>, 1 April 1989 Ty Coon, President of Vice
231*4882a593Smuzhiyun
232*4882a593SmuzhiyunThat's all there is to it!
233