Files
poky/documentation/ref-manual/eclipse/html/poky-ref-manual/usingpoky-specifying-LIC_FILES_CHKSUM.html
Scott Rifenbark ed0a240e16 documentation: Rename of poky-ref-manual folder to ref-manual.
Changing the folder that holds the YP Reference Manual to be
"ref-manual".  This will help with confustion over the manual's
intended purpose.

(From yocto-docs rev: 1106442964b5080cb0b6b3bd3af32e9407c0f7c1)

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-01-07 14:43:25 +00:00

58 lines
3.1 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>3.4.1.1. Specifying the LIC_FILES_CHKSUM Variable</title>
<link rel="stylesheet" type="text/css" href="../book.css">
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="The Yocto Project Reference Manual">
<link rel="up" href="usingpoky-configuring-LIC_FILES_CHKSUM.html" title="3.4.1. Tracking License Changes">
<link rel="prev" href="usingpoky-configuring-LIC_FILES_CHKSUM.html" title="3.4.1. Tracking License Changes">
<link rel="next" href="usingpoky-LIC_FILES_CHKSUM-explanation-of-syntax.html" title="3.4.1.2. Explanation of Syntax">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" title="3.4.1.1. Specifying the LIC_FILES_CHKSUM Variable">
<div class="titlepage"><div><div><h4 class="title">
<a name="usingpoky-specifying-LIC_FILES_CHKSUM"></a>3.4.1.1. Specifying the <code class="filename">LIC_FILES_CHKSUM</code> Variable</h4></div></div></div>
<p>
The <code class="filename">LIC_FILES_CHKSUM</code>
variable contains checksums of the license text in the source code for the recipe.
Following is an example of how to specify <code class="filename">LIC_FILES_CHKSUM</code>:
</p>
<pre class="literallayout">
LIC_FILES_CHKSUM = "file://COPYING;md5=xxxx \
file://licfile1.txt;beginline=5;endline=29;md5=yyyy \
file://licfile2.txt;endline=50;md5=zzzz \
..."
</pre>
<p>
</p>
<p>
The build system uses the
<code class="filename"><a class="link" href="ref-variables-glos.html#var-S" title="S">S</a></code> variable as the
default directory used when searching files listed in
<code class="filename">LIC_FILES_CHKSUM</code>.
The previous example employs the default directory.
</p>
<p>
You can also use relative paths as shown in the following example:
</p>
<pre class="literallayout">
LIC_FILES_CHKSUM = "file://src/ls.c;startline=5;endline=16;\
md5=bb14ed3c4cda583abc85401304b5cd4e"
LIC_FILES_CHKSUM = "file://../license.html;md5=5c94767cedb5d6987c902ac850ded2c6"
</pre>
<p>
</p>
<p>
In this example, the first line locates a file in
<code class="filename">${S}/src/ls.c</code>.
The second line refers to a file in
<code class="filename"><a class="link" href="ref-variables-glos.html#var-WORKDIR" title="WORKDIR">WORKDIR</a></code>, which is the parent
of <code class="filename"><a class="link" href="ref-variables-glos.html#var-S" title="S">S</a></code>.
</p>
<p>
Note that this variable is mandatory for all recipes, unless the
<code class="filename">LICENSE</code> variable is set to "CLOSED".
</p>
</div></body>
</html>