summaryrefslogtreecommitdiffstats
path: root/meta/files
diff options
context:
space:
mode:
Diffstat (limited to 'meta/files')
-rw-r--r--meta/files/common-licenses/DocBook-XML48
-rw-r--r--meta/files/common-licenses/GPL-2.0-with-Linux-syscall-note357
-rw-r--r--meta/files/common-licenses/OASIS13
-rw-r--r--meta/files/license-hashes.csv94
-rw-r--r--meta/files/overlayfs-create-dirs.service.in5
-rw-r--r--meta/files/overlayfs-etc-preinit.sh.in3
-rw-r--r--meta/files/overlayfs-unit.mount.in2
-rw-r--r--meta/files/toolchain-shar-extract.sh37
-rw-r--r--meta/files/toolchain-shar-relocate.sh12
9 files changed, 538 insertions, 33 deletions
diff --git a/meta/files/common-licenses/DocBook-XML b/meta/files/common-licenses/DocBook-XML
new file mode 100644
index 0000000000..0a82d60c1c
--- /dev/null
+++ b/meta/files/common-licenses/DocBook-XML
@@ -0,0 +1,48 @@
1Copyright
2---------
3Copyright (C) 1999-2007 Norman Walsh
4Copyright (C) 2003 Jiří Kosek
5Copyright (C) 2004-2007 Steve Ball
6Copyright (C) 2005-2008 The DocBook Project
7Copyright (C) 2011-2012 O'Reilly Media
8
9Permission is hereby granted, free of charge, to any person
10obtaining a copy of this software and associated documentation
11files (the ``Software''), to deal in the Software without
12restriction, including without limitation the rights to use,
13copy, modify, merge, publish, distribute, sublicense, and/or
14sell copies of the Software, and to permit persons to whom the
15Software is furnished to do so, subject to the following
16conditions:
17
18The above copyright notice and this permission notice shall be
19included in all copies or substantial portions of the Software.
20
21Except as contained in this notice, the names of individuals
22credited with contribution to this software shall not be used in
23advertising or otherwise to promote the sale, use or other
24dealings in this Software without prior written authorization
25from the individuals in question.
26
27Any stylesheet derived from this Software that is publically
28distributed will be identified with a different name and the
29version strings in any derived Software will be changed so that
30no possibility of confusion between the derived package and this
31Software will exist.
32
33Warranty
34--------
35THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38NONINFRINGEMENT. IN NO EVENT SHALL NORMAN WALSH OR ANY OTHER
39CONTRIBUTOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42OTHER DEALINGS IN THE SOFTWARE.
43
44Contacting the Author
45---------------------
46The DocBook XSL stylesheets are maintained by Norman Walsh,
47<ndw@nwalsh.com>, and members of the DocBook Project,
48<docbook-developers@sf.net>
diff --git a/meta/files/common-licenses/GPL-2.0-with-Linux-syscall-note b/meta/files/common-licenses/GPL-2.0-with-Linux-syscall-note
new file mode 100644
index 0000000000..90b059c286
--- /dev/null
+++ b/meta/files/common-licenses/GPL-2.0-with-Linux-syscall-note
@@ -0,0 +1,357 @@
1
2 GNU GENERAL PUBLIC LICENSE
3 Version 2, June 1991
4
5 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
6 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
7 Everyone is permitted to copy and distribute verbatim copies
8 of this license document, but changing it is not allowed.
9
10 Preamble
11
12 The licenses for most software are designed to take away your
13freedom to share and change it. By contrast, the GNU General Public
14License is intended to guarantee your freedom to share and change free
15software--to make sure the software is free for all its users. This
16General Public License applies to most of the Free Software
17Foundation's software and to any other program whose authors commit to
18using it. (Some other Free Software Foundation software is covered by
19the GNU Library General Public License instead.) You can apply it to
20your programs, too.
21
22 When we speak of free software, we are referring to freedom, not
23price. Our General Public Licenses are designed to make sure that you
24have the freedom to distribute copies of free software (and charge for
25this service if you wish), that you receive source code or can get it
26if you want it, that you can change the software or use pieces of it
27in new free programs; and that you know you can do these things.
28
29 To protect your rights, we need to make restrictions that forbid
30anyone to deny you these rights or to ask you to surrender the rights.
31These restrictions translate to certain responsibilities for you if you
32distribute copies of the software, or if you modify it.
33
34 For example, if you distribute copies of such a program, whether
35gratis or for a fee, you must give the recipients all the rights that
36you have. You must make sure that they, too, receive or can get the
37source code. And you must show them these terms so they know their
38rights.
39
40 We protect your rights with two steps: (1) copyright the software, and
41(2) offer you this license which gives you legal permission to copy,
42distribute and/or modify the software.
43
44 Also, for each author's protection and ours, we want to make certain
45that everyone understands that there is no warranty for this free
46software. If the software is modified by someone else and passed on, we
47want its recipients to know that what they have is not the original, so
48that any problems introduced by others will not reflect on the original
49authors' reputations.
50
51 Finally, any free program is threatened constantly by software
52patents. We wish to avoid the danger that redistributors of a free
53program will individually obtain patent licenses, in effect making the
54program proprietary. To prevent this, we have made it clear that any
55patent must be licensed for everyone's free use or not licensed at all.
56
57 The precise terms and conditions for copying, distribution and
58modification follow.
59
60 GNU GENERAL PUBLIC LICENSE
61 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
62
63 0. This License applies to any program or other work which contains
64a notice placed by the copyright holder saying it may be distributed
65under the terms of this General Public License. The "Program", below,
66refers to any such program or work, and a "work based on the Program"
67means either the Program or any derivative work under copyright law:
68that is to say, a work containing the Program or a portion of it,
69either verbatim or with modifications and/or translated into another
70language. (Hereinafter, translation is included without limitation in
71the term "modification".) Each licensee is addressed as "you".
72
73Activities other than copying, distribution and modification are not
74covered by this License; they are outside its scope. The act of
75running the Program is not restricted, and the output from the Program
76is covered only if its contents constitute a work based on the
77Program (independent of having been made by running the Program).
78Whether that is true depends on what the Program does.
79
80 1. You may copy and distribute verbatim copies of the Program's
81source code as you receive it, in any medium, provided that you
82conspicuously and appropriately publish on each copy an appropriate
83copyright notice and disclaimer of warranty; keep intact all the
84notices that refer to this License and to the absence of any warranty;
85and give any other recipients of the Program a copy of this License
86along with the Program.
87
88You may charge a fee for the physical act of transferring a copy, and
89you may at your option offer warranty protection in exchange for a fee.
90
91 2. You may modify your copy or copies of the Program or any portion
92of it, thus forming a work based on the Program, and copy and
93distribute such modifications or work under the terms of Section 1
94above, provided that you also meet all of these conditions:
95
96 a) You must cause the modified files to carry prominent notices
97 stating that you changed the files and the date of any change.
98
99 b) You must cause any work that you distribute or publish, that in
100 whole or in part contains or is derived from the Program or any
101 part thereof, to be licensed as a whole at no charge to all third
102 parties under the terms of this License.
103
104 c) If the modified program normally reads commands interactively
105 when run, you must cause it, when started running for such
106 interactive use in the most ordinary way, to print or display an
107 announcement including an appropriate copyright notice and a
108 notice that there is no warranty (or else, saying that you provide
109 a warranty) and that users may redistribute the program under
110 these conditions, and telling the user how to view a copy of this
111 License. (Exception: if the Program itself is interactive but
112 does not normally print such an announcement, your work based on
113 the Program is not required to print an announcement.)
114
115These requirements apply to the modified work as a whole. If
116identifiable sections of that work are not derived from the Program,
117and can be reasonably considered independent and separate works in
118themselves, then this License, and its terms, do not apply to those
119sections when you distribute them as separate works. But when you
120distribute the same sections as part of a whole which is a work based
121on the Program, the distribution of the whole must be on the terms of
122this License, whose permissions for other licensees extend to the
123entire whole, and thus to each and every part regardless of who wrote it.
124
125Thus, it is not the intent of this section to claim rights or contest
126your rights to work written entirely by you; rather, the intent is to
127exercise the right to control the distribution of derivative or
128collective works based on the Program.
129
130In addition, mere aggregation of another work not based on the Program
131with the Program (or with a work based on the Program) on a volume of
132a storage or distribution medium does not bring the other work under
133the scope of this License.
134
135 3. You may copy and distribute the Program (or a work based on it,
136under Section 2) in object code or executable form under the terms of
137Sections 1 and 2 above provided that you also do one of the following:
138
139 a) Accompany it with the complete corresponding machine-readable
140 source code, which must be distributed under the terms of Sections
141 1 and 2 above on a medium customarily used for software interchange; or,
142
143 b) Accompany it with a written offer, valid for at least three
144 years, to give any third party, for a charge no more than your
145 cost of physically performing source distribution, a complete
146 machine-readable copy of the corresponding source code, to be
147 distributed under the terms of Sections 1 and 2 above on a medium
148 customarily used for software interchange; or,
149
150 c) Accompany it with the information you received as to the offer
151 to distribute corresponding source code. (This alternative is
152 allowed only for noncommercial distribution and only if you
153 received the program in object code or executable form with such
154 an offer, in accord with Subsection b above.)
155
156The source code for a work means the preferred form of the work for
157making modifications to it. For an executable work, complete source
158code means all the source code for all modules it contains, plus any
159associated interface definition files, plus the scripts used to
160control compilation and installation of the executable. However, as a
161special exception, the source code distributed need not include
162anything that is normally distributed (in either source or binary
163form) with the major components (compiler, kernel, and so on) of the
164operating system on which the executable runs, unless that component
165itself accompanies the executable.
166
167If distribution of executable or object code is made by offering
168access to copy from a designated place, then offering equivalent
169access to copy the source code from the same place counts as
170distribution of the source code, even though third parties are not
171compelled to copy the source along with the object code.
172
173 4. You may not copy, modify, sublicense, or distribute the Program
174except as expressly provided under this License. Any attempt
175otherwise to copy, modify, sublicense or distribute the Program is
176void, and will automatically terminate your rights under this License.
177However, parties who have received copies, or rights, from you under
178this License will not have their licenses terminated so long as such
179parties remain in full compliance.
180
181 5. You are not required to accept this License, since you have not
182signed it. However, nothing else grants you permission to modify or
183distribute the Program or its derivative works. These actions are
184prohibited by law if you do not accept this License. Therefore, by
185modifying or distributing the Program (or any work based on the
186Program), you indicate your acceptance of this License to do so, and
187all its terms and conditions for copying, distributing or modifying
188the Program or works based on it.
189
190 6. Each time you redistribute the Program (or any work based on the
191Program), the recipient automatically receives a license from the
192original licensor to copy, distribute or modify the Program subject to
193these terms and conditions. You may not impose any further
194restrictions on the recipients' exercise of the rights granted herein.
195You are not responsible for enforcing compliance by third parties to
196this License.
197
198 7. If, as a consequence of a court judgment or allegation of patent
199infringement or for any other reason (not limited to patent issues),
200conditions are imposed on you (whether by court order, agreement or
201otherwise) that contradict the conditions of this License, they do not
202excuse you from the conditions of this License. If you cannot
203distribute so as to satisfy simultaneously your obligations under this
204License and any other pertinent obligations, then as a consequence you
205may not distribute the Program at all. For example, if a patent
206license would not permit royalty-free redistribution of the Program by
207all those who receive copies directly or indirectly through you, then
208the only way you could satisfy both it and this License would be to
209refrain entirely from distribution of the Program.
210
211If any portion of this section is held invalid or unenforceable under
212any particular circumstance, the balance of the section is intended to
213apply and the section as a whole is intended to apply in other
214circumstances.
215
216It is not the purpose of this section to induce you to infringe any
217patents or other property right claims or to contest validity of any
218such claims; this section has the sole purpose of protecting the
219integrity of the free software distribution system, which is
220implemented by public license practices. Many people have made
221generous contributions to the wide range of software distributed
222through that system in reliance on consistent application of that
223system; it is up to the author/donor to decide if he or she is willing
224to distribute software through any other system and a licensee cannot
225impose that choice.
226
227This section is intended to make thoroughly clear what is believed to
228be a consequence of the rest of this License.
229
230 8. If the distribution and/or use of the Program is restricted in
231certain countries either by patents or by copyrighted interfaces, the
232original copyright holder who places the Program under this License
233may add an explicit geographical distribution limitation excluding
234those countries, so that distribution is permitted only in or among
235countries not thus excluded. In such case, this License incorporates
236the limitation as if written in the body of this License.
237
238 9. The Free Software Foundation may publish revised and/or new versions
239of the General Public License from time to time. Such new versions will
240be similar in spirit to the present version, but may differ in detail to
241address new problems or concerns.
242
243Each version is given a distinguishing version number. If the Program
244specifies a version number of this License which applies to it and "any
245later version", you have the option of following the terms and conditions
246either of that version or of any later version published by the Free
247Software Foundation. If the Program does not specify a version number of
248this License, you may choose any version ever published by the Free Software
249Foundation.
250
251 10. If you wish to incorporate parts of the Program into other free
252programs whose distribution conditions are different, write to the author
253to ask for permission. For software which is copyrighted by the Free
254Software Foundation, write to the Free Software Foundation; we sometimes
255make exceptions for this. Our decision will be guided by the two goals
256of preserving the free status of all derivatives of our free software and
257of promoting the sharing and reuse of software generally.
258
259 NO WARRANTY
260
261 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
262FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
263OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
264PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
265OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
266MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
267TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
268PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
269REPAIR OR CORRECTION.
270
271 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
272WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
273REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
274INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
275OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
276TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
277YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
278PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
279POSSIBILITY OF SUCH DAMAGES.
280
281 END OF TERMS AND CONDITIONS
282
283 How to Apply These Terms to Your New Programs
284
285 If you develop a new program, and you want it to be of the greatest
286possible use to the public, the best way to achieve this is to make it
287free software which everyone can redistribute and change under these terms.
288
289 To do so, attach the following notices to the program. It is safest
290to attach them to the start of each source file to most effectively
291convey the exclusion of warranty; and each file should have at least
292the "copyright" line and a pointer to where the full notice is found.
293
294 <one line to give the program's name and a brief idea of what it does.>
295 Copyright (C) <year> <name of author>
296
297 This program is free software; you can redistribute it and/or modify
298 it under the terms of the GNU General Public License as published by
299 the Free Software Foundation; either version 2 of the License, or
300 (at your option) any later version.
301
302 This program is distributed in the hope that it will be useful,
303 but WITHOUT ANY WARRANTY; without even the implied warranty of
304 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
305 GNU General Public License for more details.
306
307 You should have received a copy of the GNU General Public License
308 along with this program; if not, write to the Free Software
309 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
310
311
312Also add information on how to contact you by electronic and paper mail.
313
314If the program is interactive, make it output a short notice like this
315when it starts in an interactive mode:
316
317 Gnomovision version 69, Copyright (C) year name of author
318 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
319 This is free software, and you are welcome to redistribute it
320 under certain conditions; type `show c' for details.
321
322The hypothetical commands `show w' and `show c' should show the appropriate
323parts of the General Public License. Of course, the commands you use may
324be called something other than `show w' and `show c'; they could even be
325mouse-clicks or menu items--whatever suits your program.
326
327You should also get your employer (if you work as a programmer) or your
328school, if any, to sign a "copyright disclaimer" for the program, if
329necessary. Here is a sample; alter the names:
330
331 Yoyodyne, Inc., hereby disclaims all copyright interest in the program
332 `Gnomovision' (which makes passes at compilers) written by James Hacker.
333
334 <signature of Ty Coon>, 1 April 1989
335 Ty Coon, President of Vice
336
337This General Public License does not permit incorporating your program into
338proprietary programs. If your program is a subroutine library, you may
339consider it more useful to permit linking proprietary applications with the
340library. If this is what you want to do, use the GNU Library General
341Public License instead of this License.
342
343
344
345 NOTE! This copyright does *not* cover user programs that use kernel
346 services by normal system calls - this is merely considered normal use
347 of the kernel, and does *not* fall under the heading of "derived work".
348 Also note that the GPL below is copyrighted by the Free Software
349 Foundation, but the instance of code that it refers to (the Linux
350 kernel) is copyrighted by me and others who actually wrote it.
351
352 Also note that the only valid version of the GPL as far as the kernel
353 is concerned is _this_ particular version of the license (ie v2, not
354 v2.2 or v3.x or whatever), unless explicitly otherwise stated.
355
356 Linus Torvalds
357
diff --git a/meta/files/common-licenses/OASIS b/meta/files/common-licenses/OASIS
deleted file mode 100644
index f93df7af27..0000000000
--- a/meta/files/common-licenses/OASIS
+++ /dev/null
@@ -1,13 +0,0 @@
1 Permission to use, copy, modify and distribute the DocBook DTD and
2 its accompanying documentation for any purpose and without fee is
3 hereby granted in perpetuity, provided that the above copyright
4 notice and this paragraph appear in all copies. The copyright
5 holders make no representation about the suitability of the DTD for
6 any purpose. It is provided "as is" without expressed or implied
7 warranty.
8
9 If you modify the DocBook DTD in any way, except for declaring and
10 referencing additional sets of general entities and declaring
11 additional notations, label your DTD as a variant of DocBook. See
12 the maintenance documentation for more information.
13
diff --git a/meta/files/license-hashes.csv b/meta/files/license-hashes.csv
new file mode 100644
index 0000000000..5e81dbcdec
--- /dev/null
+++ b/meta/files/license-hashes.csv
@@ -0,0 +1,94 @@
1008c22318c8ea65928bf730ddd0273e3,BSD-3-Clause
202d4002e9171d41a8fad93aa7faf3956,BSD-3-Clause
30636e73ff0215e8d672dc4c32c317bb3,GPL-2.0-only
4063b5c3ebb5f3aa4c85a2ed18a31fbe7,GPL-2.0-only
50a97f8e4cbaf889d6fa51f84b89a79f6,ISC
60c241922fc69330e2e5590de114f3bf5,BSD-3-Clause
70ceb9ff3b27d3a8cf451ca3785d73c71,MIT
80dd48ae8103725bd7b401261520cdfbb,BSD-3-Clause
90e46634a01bfef056892949acaea85b1,BSD-3-Clause
101034431802e57486b393d00c5d262b8a,Apache-2.0
1112f884d2ae1ff87c09e5b7ccc2c4ca7e,GPL-2.0-only
1218810669f13b87348459e611d31ab760,GPL-2.0-only
1319cbd64715b51267a47bf3750cc6a8a5,Apache-2.0
14201414b6610203caed355323b1ab3116,BSD-3-Clause
15252890d9eee26aab7b432e8b8a616475,LGPL-2.0-only
162b8c039b2b9a25f0feb4410c4542d346,BSD-2-Clause
172d1c30374313ae40df7772dc92ef9fd5,GPL-3.0-only
182d5025d4aa3495befef8f17206a5b0a1,LGPL-2.1-only
193214f080875748938ba060314b4f727d,LGPL-2.0-only
2037acb030ba070680be4a9fcb57f2735a,MIT
21385c55653886acac3821999a3ccd17b3,Artistic-1.0 | GPL-2.0-only
2238be95f95200434dc208e2ee3dab5081,BSD-3-Clause
23393a5ca445f6965873eca0259a17f833,GPL-2.0-only
243b83ef96387f14655fc854ddc3c6bd57,Apache-2.0
253bf50002aefd002f49e7bb854063f7e7,LGPL-2.0-only
263c91c17266710e16afdbb2b6d15c761c,Apache-2.0
273debde09238a8c8e1f6a847e1ec9055b,LGPL-2.1-only
284325afd396febcb659c36b49533135d4,GPL-2.0-only
294c641f2d995c47f5cb08bdb4b5b6ea05,BSD-2-Clause
304e2a8d8f9935d6a766a5879a77ddc24d,Apache-2.0
314ee4feb2b545c2231749e5c54ace343e,BSD-3-Clause
324efd8bdbab9cff00dcd75f2c3ee4e190,BSD-2-Clause
334fbd65380cdd255951079008b364516c,LGPL-2.1-only
3450fab24ce589d69af8964fdbfe414c60,BSD-2-Clause
3554c7042be62e169199200bc6477f04d1,BSD-3-Clause
3655ca817ccb7d5b5b66355690e9abc605,LGPL-2.0-only
3759530bdf33659b29e73d4adb9f9f6552,GPL-2.0-only
385d4950ecb7b26d2c5e4e7b4e0dd74707,BSD-3-Clause
395f30f0716dfdd0d91eb439ebec522ec2,LGPL-2.0-only
406551d79bf661eed41a50157513ee4ad6,BSD-3-Clause
416a6a8e020838b23406c81b19c1d46df6,LGPL-3.0-only
42721f23a96ff4161ca3a5f071bbe18108,MIT
437364d1e4653d3584181e9d22d81f275f,CC0-1.0
44751419260aa954499f7abaabaa882bbe,GPL-2.0-only
4575512892d6f59dddb6d1c7e191957e9c,Zlib
4675605e6bdd564791ab698fca65c94a4f,Unlicense
477998cb338f82d15c0eff93b7004d272a,BSD-3-Clause
487f5202f4d44ed15dcd4915f5210417d8,LGPL-2.1-only
497fbc338309ac38fefcd64b04bb903e34,LGPL-2.1-only
5080fa7b56a28e8c902e6af194003220a5,BSD-2-Clause
5185d8a977ee9d7c5ab4ac03c9b95431c4,MIT-0
5288073b6dd8ec00fe09da59e0b6dfded1,BSD-3-Clause
5388a4355858a1433fea99fae34a44da88,GPL-2.0-only
548bd23871802951c9ad63855151204c2c,BSD-2-Clause
558c6127b79304a5e0a5756d03c7a58766,MIT
568ca43cbc842c2336e835926c2166c28b,GPL-2.0-only
57939cce1ec101726fa754e698ac871622,BSD-3-Clause
5894d55d512a9ba36caa9b7df079bae19f,GPL-2.0-only
599ac2e7cff1ddaf48b6eab6028f23ef88,GPL-2.0-only
609f604d8a4f8e74f4f5140845a21b6674,LGPL-2.0-only
61a39327c997c20da0937955192d86232d,BSD-3-Clause
62a54a1a6a39e7f9dbb4a23a42f5c7fd1c,Apache-2.0
63a651bb3d8b1c412632e28823bb432b40,BSD-3-Clause
64a6f89e2100d9b6cdffcea4f398e37343,LGPL-2.1-only
65ad4e9d34a2e966dfe9837f18de03266d,GFDL-1.1-only
66ae6de3dee02712a1e55b280671be53bf,BSD-3-Clause
67b234ee4d69f5fce4486a80fdaf4a4263,GPL-2.0-only
68b27575459e02221ccef97ec0bfd457ae,Apache-2.0
69b278a92d2c1509760384428817710378,MPL-2.0
70b376d29a53c9573006b9970709231431,MIT
71b5f72aef53d3b2b432702c30b0215666,BSD-3-Clause
72b66384e7137e41a9b1904ef4d39703b6,Apache-2.0
73bbb461211a33b134d42ed5ee802b37ff,LGPL-2.1-only
74bfe1f75d606912a4111c90743d6c7325,MPL-1.1-only
75c93c0550bd3173f4504b2cbd8991e50b,GPL-2.0-only
76d014fb11a34eb67dc717fdcfc97e60ed,GFDL-1.2-only
77d0b68be4a2dc957aaf09144970bc6696,MIT
78d0fd9ebda39468b51ff4539c9fbb13a8,BSD-3-Clause
79d32239bcb673463ab874e80d47fae504,GPL-3.0-only
80d44fdeb607e2d2614db9464dbedd4094,MPL-2.0
81d4eb2084b3083d2c275ec52ef4ba9ac1,BSD-3-Clause
82d7810fab7487fb0aad327b76f1be7cd7,GPL-2.0-only
83d8045f3b8f929c1cb29a1e3fd737b499,LGPL-2.1-only
84db979804f025cf55aabec7129cb671ed,LGPL-2.0-only
85e020ca655b06c112def28e597ab844f1,GFDL-1.3-only
86e659f77bfd9002659e112d0d3d59b2c1,BSD-2-Clause
87eb1e647870add0502f8f010b19de32af,AGPL-3.0-or-later
88eb723b61539feef013de476e68b5c50a,GPL-2.0-only
89ebb5c50ab7cab4baeffba14977030c07,GPL-2.0-only
90efe2cb9a35826992b9df68224e3c2628,EPL-1.0
91f27defe1e96c2e1ecd4e0c9be8967949,GPL-3.0-only
92f90c613c51aa35da4d79dd55fc724ceb,LGPL-3.0-only
93fad9b3332be894bab9bc501572864b29,LGPL-2.1-only
94fbc093901857fcd118f065f900982c24,LGPL-2.1-only
diff --git a/meta/files/overlayfs-create-dirs.service.in b/meta/files/overlayfs-create-dirs.service.in
index c949a6dc73..c8431548d7 100644
--- a/meta/files/overlayfs-create-dirs.service.in
+++ b/meta/files/overlayfs-create-dirs.service.in
@@ -1,7 +1,6 @@
1[Unit] 1[Unit]
2Description=Overlayfs directories setup 2Description=Overlayfs directories setup {LOWERDIR}
3Requires={DATA_MOUNT_UNIT} 3RequiresMountsFor={DATA_MOUNT_POINT}
4After={DATA_MOUNT_UNIT}
5DefaultDependencies=no 4DefaultDependencies=no
6 5
7[Service] 6[Service]
diff --git a/meta/files/overlayfs-etc-preinit.sh.in b/meta/files/overlayfs-etc-preinit.sh.in
index b05e3957a3..973887649a 100644
--- a/meta/files/overlayfs-etc-preinit.sh.in
+++ b/meta/files/overlayfs-etc-preinit.sh.in
@@ -48,5 +48,8 @@ else
48 echo "PREINIT: Mounting </data> failed!" 48 echo "PREINIT: Mounting </data> failed!"
49fi 49fi
50 50
51umount /sys
52umount /proc
53
51echo "PREINIT: done; starting </sbin/init>" 54echo "PREINIT: done; starting </sbin/init>"
52exec {SBIN_INIT_NAME} 55exec {SBIN_INIT_NAME}
diff --git a/meta/files/overlayfs-unit.mount.in b/meta/files/overlayfs-unit.mount.in
index 1d33b7e39c..9c117f2c52 100644
--- a/meta/files/overlayfs-unit.mount.in
+++ b/meta/files/overlayfs-unit.mount.in
@@ -1,5 +1,5 @@
1[Unit] 1[Unit]
2Description=Overlayfs mount unit 2Description=Overlayfs mount unit {LOWERDIR}
3Requires={CREATE_DIRS_SERVICE} 3Requires={CREATE_DIRS_SERVICE}
4After={CREATE_DIRS_SERVICE} 4After={CREATE_DIRS_SERVICE}
5 5
diff --git a/meta/files/toolchain-shar-extract.sh b/meta/files/toolchain-shar-extract.sh
index 89d30005fd..e2c617958a 100644
--- a/meta/files/toolchain-shar-extract.sh
+++ b/meta/files/toolchain-shar-extract.sh
@@ -1,9 +1,14 @@
1#!/bin/sh 1#!/bin/sh
2 2
3export LC_ALL=en_US.UTF-8 3export LC_ALL=en_US.UTF-8
4
5# The pipefail option is now part of POSIX (POSIX.1-2024) and available in more
6# and more shells. Enable it if available to make the SDK installer more robust.
7(set -o pipefail 2> /dev/null) && set -o pipefail
8
4#Make sure at least one python is installed 9#Make sure at least one python is installed
5INIT_PYTHON=$(which python3 2>/dev/null ) 10INIT_PYTHON=$(command -v python3 2>/dev/null )
6[ -z "$INIT_PYTHON" ] && INIT_PYTHON=$(which python2 2>/dev/null) 11[ -z "$INIT_PYTHON" ] && INIT_PYTHON=$(command -v python2 2>/dev/null)
7[ -z "$INIT_PYTHON" ] && echo "Error: The SDK needs a python installed" && exit 1 12[ -z "$INIT_PYTHON" ] && echo "Error: The SDK needs a python installed" && exit 1
8 13
9# Remove invalid PATH elements first (maybe from a previously setup toolchain now deleted 14# Remove invalid PATH elements first (maybe from a previously setup toolchain now deleted
@@ -26,9 +31,6 @@ tweakpath /sbin
26INST_ARCH=$(uname -m | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/") 31INST_ARCH=$(uname -m | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/")
27SDK_ARCH=$(echo @SDK_ARCH@ | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/") 32SDK_ARCH=$(echo @SDK_ARCH@ | sed -e "s/i[3-6]86/ix86/" -e "s/x86[-_]64/x86_64/")
28 33
29INST_GCC_VER=$(gcc --version 2>/dev/null | sed -ne 's/.* \([0-9]\+\.[0-9]\+\)\.[0-9]\+.*/\1/p')
30SDK_GCC_VER='@SDK_GCC_VER@'
31
32verlte () { 34verlte () {
33 [ "$1" = "`printf "$1\n$2" | sort -V | head -n1`" ] 35 [ "$1" = "`printf "$1\n$2" | sort -V | head -n1`" ]
34} 36}
@@ -140,11 +142,6 @@ fi
140# SDK_EXTENSIBLE is exposed from the SDK_PRE_INSTALL_COMMAND above 142# SDK_EXTENSIBLE is exposed from the SDK_PRE_INSTALL_COMMAND above
141if [ "$SDK_EXTENSIBLE" = "1" ]; then 143if [ "$SDK_EXTENSIBLE" = "1" ]; then
142 DEFAULT_INSTALL_DIR="@SDKEXTPATH@" 144 DEFAULT_INSTALL_DIR="@SDKEXTPATH@"
143 if [ "$INST_GCC_VER" = '4.8' -a "$SDK_GCC_VER" = '4.9' ] || [ "$INST_GCC_VER" = '4.8' -a "$SDK_GCC_VER" = '' ] || \
144 [ "$INST_GCC_VER" = '4.9' -a "$SDK_GCC_VER" = '' ]; then
145 echo "Error: Incompatible SDK installer! Your host gcc version is $INST_GCC_VER and this SDK was built by gcc higher version."
146 exit 1
147 fi
148fi 145fi
149 146
150if [ "$target_sdk_dir" = "" ]; then 147if [ "$target_sdk_dir" = "" ]; then
@@ -229,7 +226,7 @@ if [ ! -x $target_sdk_dir -o ! -w $target_sdk_dir -o ! -r $target_sdk_dir ]; the
229 exit 1 226 exit 1
230 fi 227 fi
231 228
232 SUDO_EXEC=$(which "sudo") 229 SUDO_EXEC=$(command -v "sudo")
233 if [ -z $SUDO_EXEC ]; then 230 if [ -z $SUDO_EXEC ]; then
234 echo "No command 'sudo' found, please install sudo first. Abort!" 231 echo "No command 'sudo' found, please install sudo first. Abort!"
235 exit 1 232 exit 1
@@ -245,13 +242,27 @@ fi
245 242
246printf "Extracting SDK..." 243printf "Extracting SDK..."
247if [ @SDK_ARCHIVE_TYPE@ = "zip" ]; then 244if [ @SDK_ARCHIVE_TYPE@ = "zip" ]; then
245 if [ -z "$(command -v unzip)" ]; then
246 echo "Aborted, unzip is required to extract the SDK archive, please make sure it's installed on your system!"
247 exit 1
248 fi
248 tail -n +$payload_offset "$0" > sdk.zip 249 tail -n +$payload_offset "$0" > sdk.zip
249 if $SUDO_EXEC unzip $EXTRA_TAR_OPTIONS sdk.zip -d $target_sdk_dir;then 250 if $SUDO_EXEC unzip $EXTRA_TAR_OPTIONS sdk.zip -d $target_sdk_dir;then
250 rm sdk.zip 251 rm sdk.zip
251 else 252 else
252 rm sdk.zip && exit 1 253 rm sdk.zip && exit 1
253 fi 254 fi
255elif [ @SDK_ARCHIVE_TYPE@ = "tar.zst" ]; then
256 if [ -z "$(command -v zstd)" ]; then
257 echo "Aborted, zstd is required to extract the SDK archive, please make sure it's installed on your system!"
258 exit 1
259 fi
260 tail -n +$payload_offset "$0"| zstd -T0 -dc | $SUDO_EXEC tar mx -C $target_sdk_dir --checkpoint=.2500 $EXTRA_TAR_OPTIONS || exit 1
254else 261else
262 if [ -z "$(command -v xz)" ]; then
263 echo "Aborted, xz is required to extract the SDK archive, please make sure it's installed on your system!"
264 exit 1
265 fi
255 tail -n +$payload_offset "$0"| $SUDO_EXEC tar mxJ -C $target_sdk_dir --checkpoint=.2500 $EXTRA_TAR_OPTIONS || exit 1 266 tail -n +$payload_offset "$0"| $SUDO_EXEC tar mxJ -C $target_sdk_dir --checkpoint=.2500 $EXTRA_TAR_OPTIONS || exit 1
256fi 267fi
257echo "done" 268echo "done"
@@ -286,6 +297,10 @@ post_relocate="$target_sdk_dir/post-relocate-setup.sh"
286if [ -e "$post_relocate" ]; then 297if [ -e "$post_relocate" ]; then
287 $SUDO_EXEC sed -e "s:@SDKPATH@:$target_sdk_dir:g" -i $post_relocate 298 $SUDO_EXEC sed -e "s:@SDKPATH@:$target_sdk_dir:g" -i $post_relocate
288 $SUDO_EXEC /bin/sh $post_relocate "$target_sdk_dir" "@SDKPATH@" 299 $SUDO_EXEC /bin/sh $post_relocate "$target_sdk_dir" "@SDKPATH@"
300 if [ $? -ne 0 ]; then
301 echo "Executing $post_relocate failed"
302 exit 1
303 fi
289 $SUDO_EXEC rm -f $post_relocate 304 $SUDO_EXEC rm -f $post_relocate
290fi 305fi
291 306
diff --git a/meta/files/toolchain-shar-relocate.sh b/meta/files/toolchain-shar-relocate.sh
index b017714df0..c7170349db 100644
--- a/meta/files/toolchain-shar-relocate.sh
+++ b/meta/files/toolchain-shar-relocate.sh
@@ -8,8 +8,8 @@ done
8# fix dynamic loader paths in all ELF SDK binaries 8# fix dynamic loader paths in all ELF SDK binaries
9# allow symlinks to be accessed via the find command too 9# allow symlinks to be accessed via the find command too
10native_sysroot=$($SUDO_EXEC cat $env_setup_script |grep 'OECORE_NATIVE_SYSROOT='|cut -d'=' -f2|tr -d '"') 10native_sysroot=$($SUDO_EXEC cat $env_setup_script |grep 'OECORE_NATIVE_SYSROOT='|cut -d'=' -f2|tr -d '"')
11dl_path=$($SUDO_EXEC find $native_sysroot/lib/ -maxdepth 1 -name "ld-linux*") 11dl_paths=$($SUDO_EXEC find $native_sysroot/lib*/ -maxdepth 1 -name "ld-linux*")
12if [ "$dl_path" = "" ] ; then 12if [ "$dl_paths" = "" ] ; then
13 echo "SDK could not be set up. Relocate script unable to find ld-linux.so. Abort!" 13 echo "SDK could not be set up. Relocate script unable to find ld-linux.so. Abort!"
14 exit 1 14 exit 1
15fi 15fi
@@ -39,7 +39,9 @@ if [ x\${PYTHON} = "x" ]; then
39 echo "SDK could not be relocated. No python found." 39 echo "SDK could not be relocated. No python found."
40 exit 1 40 exit 1
41fi 41fi
42\${PYTHON} ${env_setup_script%/*}/relocate_sdk.py $target_sdk_dir $dl_path $executable_files 42for dl_path in \$(echo "$dl_paths"); do
43 \${PYTHON} ${env_setup_script%/*}/relocate_sdk.py $target_sdk_dir \$dl_path $executable_files
44done
43EOF 45EOF
44 46
45$SUDO_EXEC mv $tdir/relocate_sdk.sh ${env_setup_script%/*}/relocate_sdk.sh 47$SUDO_EXEC mv $tdir/relocate_sdk.sh ${env_setup_script%/*}/relocate_sdk.sh
@@ -57,8 +59,8 @@ fi
57# replace the host perl with SDK perl. 59# replace the host perl with SDK perl.
58for replace in "$target_sdk_dir -maxdepth 1" "$native_sysroot"; do 60for replace in "$target_sdk_dir -maxdepth 1" "$native_sysroot"; do
59 $SUDO_EXEC find $replace -type f 61 $SUDO_EXEC find $replace -type f
60done | xargs -n100 file | grep ":.*\(ASCII\|script\|source\).*text" | \ 62done | xargs -d '\n' -n100 file | \
61 awk -F': ' '{printf "\"%s\"\n", $1}' | \ 63 awk -F': ' '{if (match($2, ".*(ASCII|script|source).*text")) {printf "\"%s\"\n", $1}}' | \
62 grep -Fv -e "$target_sdk_dir/environment-setup-" \ 64 grep -Fv -e "$target_sdk_dir/environment-setup-" \
63 -e "$target_sdk_dir/relocate_sdk" \ 65 -e "$target_sdk_dir/relocate_sdk" \
64 -e "$target_sdk_dir/post-relocate-setup" \ 66 -e "$target_sdk_dir/post-relocate-setup" \