diff options
author | Nitin A Kamble <nitin.a.kamble@intel.com> | 2010-06-01 16:19:22 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-06-02 14:06:03 +0100 |
commit | 6b82b70c9335d6cf6a0b84cb61392c2589ef12f7 (patch) | |
tree | 5846612563c169b3712f132e83af43f12ed38085 /handbook | |
parent | 682983b54825615a7ea7f13f8277b35d967aa102 (diff) | |
download | poky-6b82b70c9335d6cf6a0b84cb61392c2589ef12f7.tar.gz |
Handbook: Documentation for DISTRO_PN_ALIAS
Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com
Diffstat (limited to 'handbook')
-rw-r--r-- | handbook/extendpoky.xml | 45 | ||||
-rw-r--r-- | handbook/ref-variables.xml | 17 | ||||
-rw-r--r-- | handbook/ref-varlocality.xml | 4 |
3 files changed, 65 insertions, 1 deletions
diff --git a/handbook/extendpoky.xml b/handbook/extendpoky.xml index 9d98a3bcca..9c672ec7f5 100644 --- a/handbook/extendpoky.xml +++ b/handbook/extendpoky.xml | |||
@@ -825,7 +825,7 @@ SRC_URI += "file://NAME-OF-PATCH.patch;patch=1" | |||
825 | 825 | ||
826 | </section> | 826 | </section> |
827 | <section id='usingpoky-configuring-LIC_FILES_CHKSUM'> | 827 | <section id='usingpoky-configuring-LIC_FILES_CHKSUM'> |
828 | <title>configuring the LIC_FILES_CHKSUM variable</title> | 828 | <title>Configuring the LIC_FILES_CHKSUM variable</title> |
829 | <para> | 829 | <para> |
830 | The changes in the license text inside source code files is tracked | 830 | The changes in the license text inside source code files is tracked |
831 | using the LIC_FILES_CHKSUM metadata variable. | 831 | using the LIC_FILES_CHKSUM metadata variable. |
@@ -885,7 +885,50 @@ specify "beginline" and "endline" parameters. | |||
885 | </tip> | 885 | </tip> |
886 | </section> | 886 | </section> |
887 | </section> | 887 | </section> |
888 | <section id='usingpoky-configuring-DISTRO_PN_ALIAS'> | ||
889 | <title>Configuring the DISTRO_PN_ALIAS variable</title> | ||
890 | <para> | ||
891 | Sometimes the names of the same packages are different in different | ||
892 | linux distributions; and that can becomes an issue for the distro_check | ||
893 | task to check if the given recipe package exists in other linux distros. | ||
894 | This issue is avoided by defining per distro recipe name alias: | ||
895 | DISTRO_PN_ALIAS | ||
896 | </para> | ||
897 | |||
898 | <section id='usingpoky-specifying-DISTRO_PN_ALIAS'> | ||
899 | <title>Specifying the DISTRO_PN_ALIAS variable </title> | ||
900 | |||
901 | <programlisting> | ||
902 | DISTRO_PN_ALIAS = "distro1=package_name_alias1; distro2=package_name_alias2 \ | ||
903 | distro3=package_name_alias3; \ | ||
904 | ..." | ||
905 | </programlisting> | ||
906 | <para> | ||
907 | Look at the meta/packages/xorg-app/xset_1.0.4.bb recipe file for an example. | ||
908 | </para> | ||
909 | <tip> | ||
910 | <para> | ||
911 | The current code can check if the src package for a recipe exists in the latest | ||
912 | releases of these distributions automatically. | ||
913 | </para> | ||
914 | <programlisting> | ||
915 | Fedora, OpenSuSE, Debian, Ubuntu, Mandriva | ||
916 | </programlisting> | ||
917 | <para> | ||
918 | For example, this command will generate a report, listing which linux distros include the | ||
919 | sources for each of the poky recipe. | ||
920 | </para> | ||
921 | <programlisting> | ||
922 | bitbake world -f -c distro_check | ||
923 | </programlisting> | ||
924 | <para> | ||
925 | The results will be stored in the build/tmp/log/distro_check-${DATETIME}.results file. | ||
926 | </para> | ||
927 | </tip> | ||
928 | </section> | ||
929 | </section> | ||
888 | </chapter> | 930 | </chapter> |
931 | |||
889 | <!-- | 932 | <!-- |
890 | vim: expandtab tw=80 ts=4 | 933 | vim: expandtab tw=80 ts=4 |
891 | --> | 934 | --> |
diff --git a/handbook/ref-variables.xml b/handbook/ref-variables.xml index b4d5639ec1..7bbcdb81f0 100644 --- a/handbook/ref-variables.xml +++ b/handbook/ref-variables.xml | |||
@@ -216,6 +216,19 @@ | |||
216 | </glossdef> | 216 | </glossdef> |
217 | </glossentry> | 217 | </glossentry> |
218 | 218 | ||
219 | <glossentry id='var-DISTRO_PN_ALIAS'><glossterm>DISTRO_PN_ALIAS</glossterm> | ||
220 | <glossdef> | ||
221 | <para>Alias names of the recipe in various Linux distributions. </para> | ||
222 | <para>See the "meta/package/xorg-app/xset_1.0.4.bb" file for an example</para> | ||
223 | <para>More information in | ||
224 | <link | ||
225 | linkend='usingpoky-configuring-DISTRO_PN_ALIAS'> | ||
226 | Configuring the DISTRO_PN_ALIAS variable section | ||
227 | </link> | ||
228 | </para> | ||
229 | </glossdef> | ||
230 | </glossentry> | ||
231 | |||
219 | <glossentry id='var-DISTRO_VERSION'><glossterm>DISTRO_VERSION</glossterm> | 232 | <glossentry id='var-DISTRO_VERSION'><glossterm>DISTRO_VERSION</glossterm> |
220 | <glossdef> | 233 | <glossdef> |
221 | <para>Version of distribution</para> | 234 | <para>Version of distribution</para> |
@@ -406,6 +419,10 @@ | |||
406 | <para> This is an optional variable now. And the plan is to make | 419 | <para> This is an optional variable now. And the plan is to make |
407 | it a required variable in the future </para> | 420 | it a required variable in the future </para> |
408 | <para>See the "meta/package/zlib/zlib_${PV}.bb" file for an example</para> | 421 | <para>See the "meta/package/zlib/zlib_${PV}.bb" file for an example</para> |
422 | |||
423 | <para>More information in <link | ||
424 | linkend='usingpoky-configuring-LIC_FILES_CHKSUM'> | ||
425 | Configuring the LIC_FILES_CHKSUM variable section</link></para> | ||
409 | </glossdef> | 426 | </glossdef> |
410 | </glossentry> | 427 | </glossentry> |
411 | 428 | ||
diff --git a/handbook/ref-varlocality.xml b/handbook/ref-varlocality.xml index f8cfc4fad4..fb5679499a 100644 --- a/handbook/ref-varlocality.xml +++ b/handbook/ref-varlocality.xml | |||
@@ -188,6 +188,10 @@ | |||
188 | 188 | ||
189 | <itemizedlist> | 189 | <itemizedlist> |
190 | <listitem> | 190 | <listitem> |
191 | <para><glossterm><link | ||
192 | linkend='var-DISTRO_PN_ALIAS'>DISTRO_PN_ALIAS</link></glossterm></para> | ||
193 | </listitem> | ||
194 | <listitem> | ||
191 | <para><glossterm><link linkend='var-EXTRA_OECONF'>EXTRA_OECONF</link></glossterm></para> | 195 | <para><glossterm><link linkend='var-EXTRA_OECONF'>EXTRA_OECONF</link></glossterm></para> |
192 | </listitem> | 196 | </listitem> |
193 | <listitem> | 197 | <listitem> |