summaryrefslogtreecommitdiffstats
path: root/documentation/dev-manual/dev-manual-common-tasks.xml
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/dev-manual/dev-manual-common-tasks.xml')
-rw-r--r--documentation/dev-manual/dev-manual-common-tasks.xml58
1 files changed, 58 insertions, 0 deletions
diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml
index e9ce182a59..605d1ad7ea 100644
--- a/documentation/dev-manual/dev-manual-common-tasks.xml
+++ b/documentation/dev-manual/dev-manual-common-tasks.xml
@@ -9057,6 +9057,9 @@
9057 <listitem><para> 9057 <listitem><para>
9058 <link linkend='creating-node-package-manager-npm-packages'>Creating node package manager (NPM) packages</link> 9058 <link linkend='creating-node-package-manager-npm-packages'>Creating node package manager (NPM) packages</link>
9059 </para></listitem> 9059 </para></listitem>
9060 <listitem><para>
9061 <link linkend='adding-custom-metadata-to-packages'>Adding custom metadata to packages</link>
9062 </para></listitem>
9060 </itemizedlist> 9063 </itemizedlist>
9061 </para> 9064 </para>
9062 9065
@@ -10761,6 +10764,61 @@
10761 </para> 10764 </para>
10762 </section> 10765 </section>
10763 </section> 10766 </section>
10767
10768 <section id='adding-custom-metadata-to-packages'>
10769 <title>Adding custom metadata to packages</title>
10770
10771 <para>
10772 The variable <ulink url='&YOCTO_DOCS_REF_URL;#var-PACKAGE_ADD_METADATA'><filename>PACKAGE_ADD_METADATA</filename></ulink>
10773 can be used to add additional metadata to packages. This is
10774 reflected in the package control/spec file. To take the ipk
10775 format for example, the CONTROL file stored inside would
10776 contain the additional metadata as additional lines.
10777 </para>
10778
10779 <para>
10780 The variable can be used in multiple ways, including using
10781 suffixes to set it for a specific package type and/or package.
10782 Note that the order of precedence is the same as this list:
10783 <itemizedlist>
10784 <listitem><para>
10785 <filename>PACKAGE_ADD_METADATA_&lt;PKGTYPE&gt;_&lt;PN&gt;</filename>
10786 </para></listitem>
10787 <listitem><para>
10788 <filename>PACKAGE_ADD_METADATA_&lt;PKGTYPE&gt;</filename>
10789 </para></listitem>
10790 <listitem><para>
10791 <filename>PACKAGE_ADD_METADATA_&lt;PN&gt;</filename>
10792 </para></listitem>
10793 <listitem><para>
10794 <filename>PACKAGE_ADD_METADATA</filename>
10795 </para></listitem>
10796 </itemizedlist>
10797 &lt;PKGTYPE&gt; is a parameter and expected to be a
10798 distinct name of specific package type:
10799 <itemizedlist>
10800 <listitem><para>IPK for .ipk packages</para></listitem>
10801 <listitem><para>DEB for .deb packages</para></listitem>
10802 <listitem><para>RPM for .rpm packages</para></listitem>
10803 </itemizedlist>
10804 &lt;PN&gt; is a parameter and expected to be a package name.
10805 </para>
10806
10807 <para>
10808 The variable can contain multiple [one-line] metadata fields
10809 separated by the literal sequence '\n'. The separator can be
10810 redefined using the variable flag <filename>separator</filename>.
10811 </para>
10812
10813 <para>
10814 The following is an example that adds two custom fields for
10815 ipk packages:
10816 <literallayout class='monospaced'>
10817 PACKAGE_ADD_METADATA_IPK = "Vendor: CustomIpk\nGroup: Applications/Spreadsheets"
10818 </literallayout>
10819 </para>
10820 </section>
10821
10764 </section> 10822 </section>
10765 10823
10766 <section id='efficiently-fetching-source-files-during-a-build'> 10824 <section id='efficiently-fetching-source-files-during-a-build'>