|
| 1 | +Valid-License-Identifier: Apache-2.0 |
| 2 | +SPDX-URL: https://spdx.org/licenses/Apache-2.0.html |
| 3 | +Usage-Guide: |
| 4 | + Do NOT use on OpenOCD code. The Apache-2.0 is not GPL2 compatible. It may only |
| 5 | + be used for dual-licensed files where the other license is GPL2 compatible. |
| 6 | + If you end up using this it MUST be used together with a GPL2 compatible |
| 7 | + license using "OR". |
| 8 | + It may also be used for stand-alone code NOT linked within the OpenOCD binary |
| 9 | + but distributed with OpenOCD. |
| 10 | + To use the Apache License version 2.0 put the following SPDX tag/value |
| 11 | + pair into a comment according to the placement guidelines in the |
| 12 | + licensing rules documentation: |
| 13 | + SPDX-License-Identifier: Apache-2.0 |
| 14 | +License-Text: |
| 15 | + |
| 16 | +Apache License |
| 17 | + |
| 18 | +Version 2.0, January 2004 |
| 19 | + |
| 20 | +http://www.apache.org/licenses/ |
| 21 | + |
| 22 | +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION |
| 23 | + |
| 24 | +1. Definitions. |
| 25 | + |
| 26 | +"License" shall mean the terms and conditions for use, reproduction, and |
| 27 | +distribution as defined by Sections 1 through 9 of this document. |
| 28 | + |
| 29 | +"Licensor" shall mean the copyright owner or entity authorized by the |
| 30 | +copyright owner that is granting the License. |
| 31 | + |
| 32 | +"Legal Entity" shall mean the union of the acting entity and all other |
| 33 | +entities that control, are controlled by, or are under common control with |
| 34 | +that entity. For the purposes of this definition, "control" means (i) the |
| 35 | +power, direct or indirect, to cause the direction or management of such |
| 36 | +entity, whether by contract or otherwise, or (ii) ownership of fifty |
| 37 | +percent (50%) or more of the outstanding shares, or (iii) beneficial |
| 38 | +ownership of such entity. |
| 39 | + |
| 40 | +"You" (or "Your") shall mean an individual or Legal Entity exercising |
| 41 | +permissions granted by this License. |
| 42 | + |
| 43 | +"Source" form shall mean the preferred form for making modifications, |
| 44 | +including but not limited to software source code, documentation source, |
| 45 | +and configuration files. |
| 46 | + |
| 47 | +"Object" form shall mean any form resulting from mechanical transformation |
| 48 | +or translation of a Source form, including but not limited to compiled |
| 49 | +object code, generated documentation, and conversions to other media types. |
| 50 | + |
| 51 | +"Work" shall mean the work of authorship, whether in Source or Object form, |
| 52 | +made available under the License, as indicated by a copyright notice that |
| 53 | +is included in or attached to the work (an example is provided in the |
| 54 | +Appendix below). |
| 55 | + |
| 56 | +"Derivative Works" shall mean any work, whether in Source or Object form, |
| 57 | +that is based on (or derived from) the Work and for which the editorial |
| 58 | +revisions, annotations, elaborations, or other modifications represent, as |
| 59 | +a whole, an original work of authorship. For the purposes of this License, |
| 60 | +Derivative Works shall not include works that remain separable from, or |
| 61 | +merely link (or bind by name) to the interfaces of, the Work and Derivative |
| 62 | +Works thereof. |
| 63 | + |
| 64 | +"Contribution" shall mean any work of authorship, including the original |
| 65 | +version of the Work and any modifications or additions to that Work or |
| 66 | +Derivative Works thereof, that is intentionally submitted to Licensor for |
| 67 | +inclusion in the Work by the copyright owner or by an individual or Legal |
| 68 | +Entity authorized to submit on behalf of the copyright owner. For the |
| 69 | +purposes of this definition, "submitted" means any form of electronic, |
| 70 | +verbal, or written communication sent to the Licensor or its |
| 71 | +representatives, including but not limited to communication on electronic |
| 72 | +mailing lists, source code control systems, and issue tracking systems that |
| 73 | +are managed by, or on behalf of, the Licensor for the purpose of discussing |
| 74 | +and improving the Work, but excluding communication that is conspicuously |
| 75 | +marked or otherwise designated in writing by the copyright owner as "Not a |
| 76 | +Contribution." |
| 77 | + |
| 78 | +"Contributor" shall mean Licensor and any individual or Legal Entity on |
| 79 | +behalf of whom a Contribution has been received by Licensor and |
| 80 | +subsequently incorporated within the Work. |
| 81 | + |
| 82 | +2. Grant of Copyright License. Subject to the terms and conditions of this |
| 83 | + License, each Contributor hereby grants to You a perpetual, worldwide, |
| 84 | + non-exclusive, no-charge, royalty-free, irrevocable copyright license to |
| 85 | + reproduce, prepare Derivative Works of, publicly display, publicly |
| 86 | + perform, sublicense, and distribute the Work and such Derivative Works |
| 87 | + in Source or Object form. |
| 88 | + |
| 89 | +3. Grant of Patent License. Subject to the terms and conditions of this |
| 90 | + License, each Contributor hereby grants to You a perpetual, worldwide, |
| 91 | + non-exclusive, no-charge, royalty-free, irrevocable (except as stated in |
| 92 | + this section) patent license to make, have made, use, offer to sell, |
| 93 | + sell, import, and otherwise transfer the Work, where such license |
| 94 | + applies only to those patent claims licensable by such Contributor that |
| 95 | + are necessarily infringed by their Contribution(s) alone or by |
| 96 | + combination of their Contribution(s) with the Work to which such |
| 97 | + Contribution(s) was submitted. If You institute patent litigation |
| 98 | + against any entity (including a cross-claim or counterclaim in a |
| 99 | + lawsuit) alleging that the Work or a Contribution incorporated within |
| 100 | + the Work constitutes direct or contributory patent infringement, then |
| 101 | + any patent licenses granted to You under this License for that Work |
| 102 | + shall terminate as of the date such litigation is filed. |
| 103 | + |
| 104 | +4. Redistribution. You may reproduce and distribute copies of the Work or |
| 105 | + Derivative Works thereof in any medium, with or without modifications, |
| 106 | + and in Source or Object form, provided that You meet the following |
| 107 | + conditions: |
| 108 | + |
| 109 | + a. You must give any other recipients of the Work or Derivative Works a |
| 110 | + copy of this License; and |
| 111 | + |
| 112 | + b. You must cause any modified files to carry prominent notices stating |
| 113 | + that You changed the files; and |
| 114 | + |
| 115 | + c. You must retain, in the Source form of any Derivative Works that You |
| 116 | + distribute, all copyright, patent, trademark, and attribution notices |
| 117 | + from the Source form of the Work, excluding those notices that do not |
| 118 | + pertain to any part of the Derivative Works; and |
| 119 | + |
| 120 | + d. If the Work includes a "NOTICE" text file as part of its |
| 121 | + distribution, then any Derivative Works that You distribute must |
| 122 | + include a readable copy of the attribution notices contained within |
| 123 | + such NOTICE file, excluding those notices that do not pertain to any |
| 124 | + part of the Derivative Works, in at least one of the following |
| 125 | + places: within a NOTICE text file distributed as part of the |
| 126 | + Derivative Works; within the Source form or documentation, if |
| 127 | + provided along with the Derivative Works; or, within a display |
| 128 | + generated by the Derivative Works, if and wherever such third-party |
| 129 | + notices normally appear. The contents of the NOTICE file are for |
| 130 | + informational purposes only and do not modify the License. You may |
| 131 | + add Your own attribution notices within Derivative Works that You |
| 132 | + distribute, alongside or as an addendum to the NOTICE text from the |
| 133 | + Work, provided that such additional attribution notices cannot be |
| 134 | + construed as modifying the License. |
| 135 | + |
| 136 | + You may add Your own copyright statement to Your modifications and may |
| 137 | + provide additional or different license terms and conditions for use, |
| 138 | + reproduction, or distribution of Your modifications, or for any such |
| 139 | + Derivative Works as a whole, provided Your use, reproduction, and |
| 140 | + distribution of the Work otherwise complies with the conditions stated |
| 141 | + in this License. |
| 142 | + |
| 143 | +5. Submission of Contributions. Unless You explicitly state otherwise, any |
| 144 | + Contribution intentionally submitted for inclusion in the Work by You to |
| 145 | + the Licensor shall be under the terms and conditions of this License, |
| 146 | + without any additional terms or conditions. Notwithstanding the above, |
| 147 | + nothing herein shall supersede or modify the terms of any separate |
| 148 | + license agreement you may have executed with Licensor regarding such |
| 149 | + Contributions. |
| 150 | + |
| 151 | +6. Trademarks. This License does not grant permission to use the trade |
| 152 | + names, trademarks, service marks, or product names of the Licensor, |
| 153 | + except as required for reasonable and customary use in describing the |
| 154 | + origin of the Work and reproducing the content of the NOTICE file. |
| 155 | + |
| 156 | +7. Disclaimer of Warranty. Unless required by applicable law or agreed to |
| 157 | + in writing, Licensor provides the Work (and each Contributor provides |
| 158 | + its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS |
| 159 | + OF ANY KIND, either express or implied, including, without limitation, |
| 160 | + any warranties or conditions of TITLE, NON-INFRINGEMENT, |
| 161 | + MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely |
| 162 | + responsible for determining the appropriateness of using or |
| 163 | + redistributing the Work and assume any risks associated with Your |
| 164 | + exercise of permissions under this License. |
| 165 | + |
| 166 | +8. Limitation of Liability. In no event and under no legal theory, whether |
| 167 | + in tort (including negligence), contract, or otherwise, unless required |
| 168 | + by applicable law (such as deliberate and grossly negligent acts) or |
| 169 | + agreed to in writing, shall any Contributor be liable to You for |
| 170 | + damages, including any direct, indirect, special, incidental, or |
| 171 | + consequential damages of any character arising as a result of this |
| 172 | + License or out of the use or inability to use the Work (including but |
| 173 | + not limited to damages for loss of goodwill, work stoppage, computer |
| 174 | + failure or malfunction, or any and all other commercial damages or |
| 175 | + losses), even if such Contributor has been advised of the possibility of |
| 176 | + such damages. |
| 177 | + |
| 178 | +9. Accepting Warranty or Additional Liability. While redistributing the |
| 179 | + Work or Derivative Works thereof, You may choose to offer, and charge a |
| 180 | + fee for, acceptance of support, warranty, indemnity, or other liability |
| 181 | + obligations and/or rights consistent with this License. However, in |
| 182 | + accepting such obligations, You may act only on Your own behalf and on |
| 183 | + Your sole responsibility, not on behalf of any other Contributor, and |
| 184 | + only if You agree to indemnify, defend, and hold each Contributor |
| 185 | + harmless for any liability incurred by, or claims asserted against, such |
| 186 | + Contributor by reason of your accepting any such warranty or additional |
| 187 | + liability. |
| 188 | + |
| 189 | +END OF TERMS AND CONDITIONS |
0 commit comments