generic-poky/documentation/ref-manual/eclipse/html/poky-ref-manual/ref-classes-src-distribute....

44 lines
2.3 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>7.8. Distribution of sources - src_distribute_local.bbclass</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="ref-classes.html" title="Chapter 7. Classes">
<link rel="prev" href="ref-classes-pkgconfig.html" title="7.7. Pkg-config - pkgconfig.bbclass">
<link rel="next" href="ref-classes-perl.html" title="7.9. Perl modules - cpan.bbclass">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" title="7.8. Distribution of sources - src_distribute_local.bbclass">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="ref-classes-src-distribute"></a>7.8. Distribution of sources - <code class="filename">src_distribute_local.bbclass</code>
</h2></div></div></div>
<p>
Many software licenses require that source files be provided along with the binaries.
To simplify this process, two classes were created:
<code class="filename">src_distribute.bbclass</code> and
<code class="filename">src_distribute_local.bbclass</code>.
</p>
<p>
The results of these classes are <code class="filename">tmp/deploy/source/</code>
subdirs with sources sorted by
<code class="filename"><a class="link" href="ref-variables-glos.html#var-LICENSE" title="LICENSE">LICENSE</a></code> field.
If recipes list few licenses (or have entries like "Bitstream Vera"),
the source archive is placed in each license directory.
</p>
<p>
This class operates using three modes:
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem"><p><span class="emphasis"><em>copy:</em></span> Copies the files to the
distribute directory.</p></li>
<li class="listitem"><p><span class="emphasis"><em>symlink:</em></span> Symlinks the files to the
distribute directory.</p></li>
<li class="listitem"><p><span class="emphasis"><em>move+symlink:</em></span> Moves the files into
the distribute directory and then symlinks them back.</p></li>
</ul></div>
<p>
</p>
</div></body>
</html>