]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
ref-manual: Updated LIC_FILES_CHKSUM example
authorScott Rifenbark <srifenbark@gmail.com>
Tue, 10 Jan 2017 23:32:30 +0000 (15:32 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Jan 2017 11:57:25 +0000 (11:57 +0000)
Fixes [YOCTO #10898]

No information indicated the use of "endline" and "beginline"
in the examples setting LIC_FILES_CHKSUM.  I added a note
indicating that line numbering starts with one and the "endline"
value is inclusive.

(From yocto-docs rev: 21114f09efa423033da67af1f27c99eb3cb9695d)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
documentation/ref-manual/technical-details.xml

index 9bb09fb9481bdb3ba4da282553b2182836925338..61f55bd80a2e4441d9c30033504ffd616ce904e5 100644 (file)
 
             <para>
                 The <filename>LIC_FILES_CHKSUM</filename>
-                variable contains checksums of the license text in the source code for the recipe.
-                Following is an example of how to specify <filename>LIC_FILES_CHKSUM</filename>:
+                variable contains checksums of the license text in the source
+                code for the recipe.
+                Following is an example of how to specify
+                <filename>LIC_FILES_CHKSUM</filename>:
                 <literallayout class='monospaced'>
      LIC_FILES_CHKSUM = "file://COPYING;md5=xxxx \
                          file://licfile1.txt;beginline=5;endline=29;md5=yyyy \
                          file://licfile2.txt;endline=50;md5=zzzz \
                          ..."
                 </literallayout>
+                <note>
+                    When using "beginline" and "endline", realize that line
+                    numbering begins with one and not zero.
+                    Also, the lines included are inclusive (e.g. lines five
+                    through 29 in the previous example for
+                    <filename>licfile1.txt</filename>.
+                </note>
             </para>
 
             <para>
 
             <para>
                 The first line locates a file in
-                <filename>${S}/src/ls.c</filename>.
+                <filename>${S}/src/ls.c</filename> and isolates lines five
+                through 16 as license text.
                 The second line refers to a file in
                 <filename><link linkend='var-WORKDIR'>WORKDIR</link></filename>.
             </para>