]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - docs/manual/legal-notice.txt
lrzsz: install symlinks for XMODEM and YMODEM
[coffee/buildroot.git] / docs / manual / legal-notice.txt
1 // -*- mode:doc; -*-
2 // vim: set syntax=asciidoc:
3
4 [[legal-info]]
5
6 == Legal notice and licensing
7
8 === Complying with open source licenses
9
10 All of the end products of Buildroot (toolchain, root filesystem, kernel,
11 bootloaders) contain open source software, released under various licenses.
12
13 Using open source software gives you the freedom to build rich embedded
14 systems, choosing from a wide range of packages, but also imposes some
15 obligations that you must know and honour.
16 Some licenses require you to publish the license text in the documentation of
17 your product. Others require you to redistribute the source code of the
18 software to those that receive your product.
19
20 The exact requirements of each license are documented in each package, and
21 it is your responsibility (or that of your legal office) to comply with those
22 requirements.
23 To make this easier for you, Buildroot can collect for you some material you
24 will probably need. To produce this material, after you have configured
25 Buildroot with +make menuconfig+, +make xconfig+ or +make gconfig+, run:
26
27 --------------------
28 make legal-info
29 --------------------
30
31 Buildroot will collect legally-relevant material in your output directory,
32 under the +legal-info/+ subdirectory.
33 There you will find:
34
35 * A +README+ file, that summarizes the produced material and contains warnings
36   about material that Buildroot could not produce.
37 * +buildroot.config+: this is the Buildroot configuration file that is usually
38   produced with +make menuconfig+, and which is necessary to reproduce the
39   build.
40 * The source code for all packages; this is saved in the +sources/+ and
41   +host-sources/+ subdirectories for target and host packages respectively.
42   The source code for packages that set +<PKG>_REDISTRIBUTE = NO+ will not be
43   saved.
44   Patches that were applied are also saved, along with a file named +series+
45   that lists the patches in the order they were applied. Patches are under the
46   same license as the files that they modify.
47   Note: Buildroot applies additional patches to Libtool scripts of
48   autotools-based packages. These patches can be found under
49   +support/libtool+ in the Buildroot source and, due to technical
50   limitations, are not saved with the package sources. You may need to
51   collect them manually.
52 * A manifest file (one for host and one for target packages) listing the
53   configured packages, their version, license and related information.
54   Some of this information might not be defined in Buildroot; such items are
55   marked as "unknown".
56 * The license texts of all packages, in the +licenses/+ and +host-licenses/+
57   subdirectories for target and host packages respectively.
58   If the license file(s) are not defined in Buildroot, the file is not produced
59   and a warning in the +README+ indicates this.
60
61 Please note that the aim of the +legal-info+ feature of Buildroot is to
62 produce all the material that is somehow relevant for legal compliance with the
63 package licenses. Buildroot does not try to produce the exact material that
64 you must somehow make public. Certainly, more material is produced than is
65 needed for a strict legal compliance. For example, it produces the source code
66 for packages released under BSD-like licenses, that you are not required to
67 redistribute in source form.
68
69 Moreover, due to technical limitations, Buildroot does not produce some
70 material that you will or may need, such as the toolchain source code and the
71 Buildroot source code itself (including patches to packages for which source
72 distribution is required).
73 When you run +make legal-info+, Buildroot produces warnings in the +README+
74 file to inform you of relevant material that could not be saved.
75
76 Finally, keep in mind that the output of +make legal-info+ is based on
77 declarative statements in each of the packages recipes. The Buildroot
78 developers try to do their best to keep those declarative statements as
79 accurate as possible, to the best of their knowledge. However, it is very
80 well possible that those declarative statements are not all fully accurate
81 nor exhaustive. You (or your legal department) _have_ to check the output
82 of +make legal-info+ before using it as your own compliance delivery. See
83 the _NO WARRANTY_ clauses (clauses 11 and 12) in the +COPYING+ file at the
84 root of the Buildroot distribution.
85
86 [[legal-info-buildroot]]
87 === Complying with the Buildroot license
88
89 Buildroot itself is an open source software, released under the
90 http://www.gnu.org/licenses/old-licenses/gpl-2.0.html[GNU General
91 Public License, version 2] or (at your option) any later version, with
92 the exception of the package patches detailed below.
93 However, being a build system, it is not normally part of the end product:
94 if you develop the root filesystem, kernel, bootloader or toolchain for a
95 device, the code of Buildroot is only present on the development machine, not
96 in the device storage.
97
98 Nevertheless, the general view of the Buildroot developers is that you should
99 release the Buildroot source code along with the source code of other packages
100 when releasing a product that contains GPL-licensed software.
101 This is because the
102 http://www.gnu.org/licenses/old-licenses/gpl-2.0.html[GNU GPL]
103 defines the "'complete source code'" for an executable work as "'all the
104 source code for all modules it contains, plus any associated interface
105 definition files, plus the scripts used to control compilation and installation
106 of the executable'".
107 Buildroot is part of the 'scripts used to control compilation and
108 installation of the executable', and as such it is considered part of the
109 material that must be redistributed.
110
111 Keep in mind that this is only the Buildroot developers' opinion, and you
112 should consult your legal department or lawyer in case of any doubt.
113
114 ==== Patches to packages
115
116 Buildroot also bundles patch files, which are applied to the sources
117 of the various packages. Those patches are not covered by the license
118 of Buildroot. Instead, they are covered by the license of the software
119 to which the patches are applied. When said software is available
120 under multiple licenses, the Buildroot patches are only provided under
121 the publicly accessible licenses.
122
123 See xref:patch-policy[] for the technical details.