dev-manual: Edits to "Providing the Source Code" section.
Fixed some links to the arichiver class. Also updated the example to use the new ARCHIVER_MODE variable. (From yocto-docs rev: 0774ddd2f83586c61f71f1b251fd559ccca45f50) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
20c1cc0833
commit
b02932eb72
|
@ -6933,12 +6933,9 @@
|
||||||
you would not generally release.
|
you would not generally release.
|
||||||
However, the more serious issue for most companies is accidental
|
However, the more serious issue for most companies is accidental
|
||||||
release of proprietary software.
|
release of proprietary software.
|
||||||
The Yocto Project provides an archiver class to help avoid
|
The Yocto Project provides an
|
||||||
some of these concerns.
|
<ulink url='&YOCTO_DOCS_REF_URL;#ref-classes-archiver'><filename>archiver</filename></ulink>
|
||||||
See the
|
class to help avoid some of these concerns.
|
||||||
"<ulink url='&YOCTO_DOCS_REF_URL;#ref-classes-archiver'><filename>archive*.bbclass</filename></ulink>"
|
|
||||||
section in the Yocto Project Reference Manual for information
|
|
||||||
on this class.
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
@ -6947,16 +6944,17 @@
|
||||||
provide source.
|
provide source.
|
||||||
The source archiver class can generate tarballs and SRPMs
|
The source archiver class can generate tarballs and SRPMs
|
||||||
and can create them with various levels of compliance in mind.
|
and can create them with various levels of compliance in mind.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
One way of doing this (but certainly not the only way) is to
|
One way of doing this (but certainly not the only way) is to
|
||||||
release just the original source as a tarball.
|
release just the source as a tarball.
|
||||||
You can do this by adding the following to the
|
You can do this by adding the following to the
|
||||||
<filename>local.conf</filename> file found in the
|
<filename>local.conf</filename> file found in the
|
||||||
<link linkend='build-directory'>Build Directory</link>:
|
<link linkend='build-directory'>Build Directory</link>:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
ARCHIVER_MODE ?= "original"
|
INHERIT += "archiver"
|
||||||
ARCHIVER_CLASS = "${@'archive-${ARCHIVER_MODE}-source' if ARCHIVER_MODE != 'none' else ''}"
|
ARCHIVER_MODE[src] = "original"
|
||||||
INHERIT += "${ARCHIVER_CLASS}"
|
|
||||||
SOURCE_ARCHIVE_PACKAGE_TYPE = "tar"
|
|
||||||
</literallayout>
|
</literallayout>
|
||||||
During the creation of your image, the source from all
|
During the creation of your image, the source from all
|
||||||
recipes that deploy packages to the image is placed within
|
recipes that deploy packages to the image is placed within
|
||||||
|
|
Loading…
Reference in New Issue