From 3906b607917ded41fe11e3867b4e12fd6202f879 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Tue, 23 Aug 2011 13:56:30 +0100 Subject: documentation: improve LIC_FILES_CHKSUM documentation Document that LIC_FILES_CHKSUM is mandatory, when gets validated, and improve some wording. (From yocto-docs rev: ca878d7b0c84812ef29bbaf5894c96dd89500ec9) Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- documentation/poky-ref-manual/extendpoky.xml | 42 +++++++++++++++------------- 1 file changed, 23 insertions(+), 19 deletions(-) (limited to 'documentation/poky-ref-manual/extendpoky.xml') diff --git a/documentation/poky-ref-manual/extendpoky.xml b/documentation/poky-ref-manual/extendpoky.xml index e624340f10..e804511bac 100644 --- a/documentation/poky-ref-manual/extendpoky.xml +++ b/documentation/poky-ref-manual/extendpoky.xml @@ -1006,13 +1006,14 @@
- Track License Change + Tracking License Changes - The license of an upstream project might change in the future. - The Yocto Project uses the - LIC_FILES_CHKSUM variable - to track license changes. + The license of an upstream project might change in the future. In order to prevent these changes + going unnoticed, the Yocto Project provides a + LIC_FILES_CHKSUM + variable to track changes to the license text. The checksums are validated at the end of the + configure step, and if the checksums do not match, the build will fail.
@@ -1020,14 +1021,12 @@ The LIC_FILES_CHKSUM - variable contains checksums of the license text in the recipe source code. - The Yocto Project uses checksums to track changes in the license text of the - source code files. - Following is an example of LIC_FILES_CHKSUM: + variable contains checksums of the license text in the source code for the recipe. + Following is an example of how to specify LIC_FILES_CHKSUM: - LIC_FILES_CHKSUM = "file://COPYING; md5=xxxx \ - file://licfile1.txt; beginline=5; endline=29;md5=yyyy \ - file://licfile2.txt; endline=50;md5=zzzz \ + LIC_FILES_CHKSUM = "file://COPYING;md5=xxxx \ + file://licfile1.txt;beginline=5;endline=29;md5=yyyy \ + file://licfile2.txt;endline=50;md5=zzzz \ ..." @@ -1056,6 +1055,10 @@ WORKDIR, which is the parent of S. + + Note that this variable is mandatory for all recipes, unless the LICENSE variable is set to + "CLOSED". +
@@ -1064,8 +1067,10 @@ As mentioned in the previous section, the LIC_FILES_CHKSUM variable lists all the important files that contain the license text for the source code. - Using this variable, you can specify the line on which the license text starts and ends - by supplying "beginline" and "endline" parameters. + It is possible to specify a checksum for an entire file, or a specific section of a + file (specified by beginning and ending line numbers with the "beginline" and "endline" + parameters respectively). The latter is useful for source files with license notice header, + README documents, etc. If you do not use the "beginline" parameter, then it is assumed that the text begins on the first line of the file. Similarly, if you do not use the "endline" parameter, it is assumed that the license text @@ -1075,12 +1080,11 @@ The "md5" parameter stores the md5 checksum of the license text. If the license text changes in any way as compared to this parameter - then a mis-match occurs. + then a mismatch occurs. This mismatch triggers a build failure and notifies the developer. Notification allows the developer to review and address the license text changes. - Also note that if a mis-match occurs during the build, the correct md5 - checksum is placed in the build log and can be easily copied to a - .bb file. + Also note that if a mismatch occurs during the build, the correct md5 + checksum is placed in the build log and can be easily copied to the recipe. @@ -1089,7 +1093,7 @@ Generally, however, every project requires a few specifications for license tracking. Many projects have a "COPYING" file that stores the license information for all the source code files. - This practice allow you to just track the "COPYING" file as long as it is kept up to date. + This practice allows you to just track the "COPYING" file as long as it is kept up to date. -- cgit v1.2.3-54-g00ecf