legal-info: infrastructure to collect legally-relevant material
authorLuca Ceresoli <luca@lucaceresoli.net>
Thu, 17 May 2012 17:33:00 +0000 (19:33 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 17 Jul 2012 17:05:49 +0000 (19:05 +0200)
commit7e76f904d208e4ef0bf722583897d4044264f546
tree42d13db7331256d045dfd44e7a847d2d3533589c
parent8d19377d24b2b1d6ded278559c16252ec320bef6
legal-info: infrastructure to collect legally-relevant material

This allows to automatically collect material that may be needed to comply with
the license of packages that Buildroot prepares for the target device.

The core of the implementation is made by the following parts:
 - in package/pkg-utils.mk some helper functions are defined for common actions
   such as generating a warning, producing info about a package etc;
 - in package/pkg-gentargets.mk, within the GENTARGETS framework, a new
   <PKG>-legal-info target produces all the info for a given package;
 - Makefile implements the top-level targets:
   - legal-info-prepare creates the output directory and produces legal info
     about Buildroot itself and the toolchain, which mostly means just warning
     the user that this is not implemented;
   - legal-info, the only target that is supposed to be used directly, depends
     on all of the above and finishes things by producing the README files from
     the various pieces.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Makefile
package/pkg-gentargets.mk
package/pkg-utils.mk
support/legal-info/README.header [new file with mode: 0644]
support/legal-info/README.warnings-header [new file with mode: 0644]