From 5ca77b2fc6045ed15d9ce88feadca43fb163c79d Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Mon, 15 Feb 2016 10:09:15 -0800 Subject: dev-manual, ref-manual: Updated licensing text information. Fixes [YOCTO #8634] To clear up the behavior the COPY_LIC_DIRS, COPY_LIC_MANIFEST, and LICENSE_CREATE_PACKAGE variable behaviors, I updated the glossary descriptions of the variables. Also, added more info to the "Providing License Text" section in the dev-manual. Tied everything together with good referencing. (From yocto-docs rev: d1f8fb672aeba8b163cc79d5043e6ffcddc9db25) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-variables.xml | 73 +++++++++++++++++++++++++++++- 1 file changed, 71 insertions(+), 2 deletions(-) (limited to 'documentation/ref-manual') diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml index 0b2c426b68..3d68dd6ac2 100644 --- a/documentation/ref-manual/ref-variables.xml +++ b/documentation/ref-manual/ref-variables.xml @@ -2354,7 +2354,20 @@ /usr/share/common-licenses, for each package. The license files are placed - in directories within the image itself. + in directories within the image itself during build time. + + The COPY_LIC_DIRS does not + offer a path for adding licenses for newly installed + packages to an image, which might be most suitable + for read-only filesystems that cannot be upgraded. + See the + LICENSE_CREATE_PACKAGE + variable for additional information. + You can also reference the + "Providing License Text" + section in the Yocto Project Development Manual for + information on providing license text. + @@ -2369,7 +2382,20 @@ If set to "1", the OpenEmbedded build system copies the license manifest for the image to /usr/share/common-licenses/license.manifest - within the image itself. + within the image itself during build time. + + The COPY_LIC_MANIFEST does not + offer a path for adding licenses for newly installed + packages to an image, which might be most suitable + for read-only filesystems that cannot be upgraded. + See the + LICENSE_CREATE_PACKAGE + variable for additional information. + You can also reference the + "Providing License Text" + section in the Yocto Project Development Manual for + information on providing license text. + @@ -7179,6 +7205,49 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" + LICENSE_CREATE_PACKAGE + + LICENSE_CREATE_PACKAGE[doc] = "Creates an extra package (i.e. ${PN}-lic) for each recipe and adds that package to the RRECOMMENDS+${PN}." + + + + + Setting LICENSE_CREATE_PACKAGE + to "1" causes the OpenEmbedded build system to create + an extra package (i.e. + ${PN}-lic) + for each recipe and to add those packages to the + RRECOMMENDS_${PN}. + + + + The ${PN}-lic package installs a + directory in /usr/share/licenses + named ${PN}, which is the recipe's + base name, and installs files in that directory that + contain license and copyright information (i.e. copies of + the appropriate license files from + meta/common-licenses that match the + licenses specified in the + LICENSE + variable of the recipe metadata and copies of files marked + in + LIC_FILES_CHKSUM + as containing license text). + + + + For related information on providing license text, see the + COPY_LIC_DIRS + variable, the + COPY_LIC_MANIFEST + variable, and the + "Providing License Text" + section in the Yocto Project Development Manual. + + + + LICENSE_FLAGS LICENSE_FLAGS[doc] = "Specifies additional flags for a recipe you must whitelist through LICENSE_FLAGS_WHITELIST in order to allow the recipe to be built." -- cgit v1.2.3-54-g00ecf