diff options
author | Scott Rifenbark <srifenbark@gmail.com> | 2019-10-17 12:09:17 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-10-23 17:30:38 +0100 |
commit | c1b94791e6ed9f04ac111da86aa7cd576d185567 (patch) | |
tree | f1748dcb7a2cf3dec375797a9b0a4eec72ebe9f7 | |
parent | 25b88e7072940b6518d05405117144d585fd71a5 (diff) | |
download | poky-c1b94791e6ed9f04ac111da86aa7cd576d185567.tar.gz |
ref-manual, dev-manual: Added CMake toolchain files.
Fixes [YOCTO #12760]
Updated the cmake.bbclass description to tell what directory
to insall custom CMake toolchain files into. Also, updated
the two areas in the "Writing a New Recipe" section that
mention CMake. Placed a couple notes there concerning the
same directory stuff.
(From yocto-docs rev: cacdedf4e1186a96ce00f94e0f42817dfb724ac7)
Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | documentation/dev-manual/dev-manual-common-tasks.xml | 26 | ||||
-rw-r--r-- | documentation/ref-manual/ref-classes.xml | 8 |
2 files changed, 31 insertions, 3 deletions
diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml index a97c96619d..c64914a304 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.xml +++ b/documentation/dev-manual/dev-manual-common-tasks.xml | |||
@@ -2348,7 +2348,7 @@ | |||
2348 | Most software provides some means of setting build-time | 2348 | Most software provides some means of setting build-time |
2349 | configuration options before compilation. | 2349 | configuration options before compilation. |
2350 | Typically, setting these options is accomplished by running a | 2350 | Typically, setting these options is accomplished by running a |
2351 | configure script with some options, or by modifying a build | 2351 | configure script with options, or by modifying a build |
2352 | configuration file. | 2352 | configuration file. |
2353 | <note> | 2353 | <note> |
2354 | As of Yocto Project Release 1.7, some of the core recipes | 2354 | As of Yocto Project Release 1.7, some of the core recipes |
@@ -2388,6 +2388,7 @@ | |||
2388 | software is built using Autotools. | 2388 | software is built using Autotools. |
2389 | If this is the case, you just need to worry about | 2389 | If this is the case, you just need to worry about |
2390 | modifying the configuration.</para> | 2390 | modifying the configuration.</para> |
2391 | |||
2391 | <para>When using Autotools, your recipe needs to inherit | 2392 | <para>When using Autotools, your recipe needs to inherit |
2392 | the | 2393 | the |
2393 | <ulink url='&YOCTO_DOCS_REF_URL;#ref-classes-autotools'><filename>autotools</filename></ulink> | 2394 | <ulink url='&YOCTO_DOCS_REF_URL;#ref-classes-autotools'><filename>autotools</filename></ulink> |
@@ -2400,13 +2401,15 @@ | |||
2400 | or | 2401 | or |
2401 | <ulink url='&YOCTO_DOCS_REF_URL;#var-PACKAGECONFIG_CONFARGS'><filename>PACKAGECONFIG_CONFARGS</filename></ulink> | 2402 | <ulink url='&YOCTO_DOCS_REF_URL;#var-PACKAGECONFIG_CONFARGS'><filename>PACKAGECONFIG_CONFARGS</filename></ulink> |
2402 | to pass any needed configure options that are specific | 2403 | to pass any needed configure options that are specific |
2403 | to the recipe.</para></listitem> | 2404 | to the recipe. |
2405 | </para></listitem> | ||
2404 | <listitem><para><emphasis>CMake:</emphasis> | 2406 | <listitem><para><emphasis>CMake:</emphasis> |
2405 | If your source files have a | 2407 | If your source files have a |
2406 | <filename>CMakeLists.txt</filename> file, then your | 2408 | <filename>CMakeLists.txt</filename> file, then your |
2407 | software is built using CMake. | 2409 | software is built using CMake. |
2408 | If this is the case, you just need to worry about | 2410 | If this is the case, you just need to worry about |
2409 | modifying the configuration.</para> | 2411 | modifying the configuration.</para> |
2412 | |||
2410 | <para>When you use CMake, your recipe needs to inherit | 2413 | <para>When you use CMake, your recipe needs to inherit |
2411 | the | 2414 | the |
2412 | <ulink url='&YOCTO_DOCS_REF_URL;#ref-classes-cmake'><filename>cmake</filename></ulink> | 2415 | <ulink url='&YOCTO_DOCS_REF_URL;#ref-classes-cmake'><filename>cmake</filename></ulink> |
@@ -2416,7 +2419,16 @@ | |||
2416 | You can make some adjustments by setting | 2419 | You can make some adjustments by setting |
2417 | <ulink url='&YOCTO_DOCS_REF_URL;#var-EXTRA_OECMAKE'><filename>EXTRA_OECMAKE</filename></ulink> | 2420 | <ulink url='&YOCTO_DOCS_REF_URL;#var-EXTRA_OECMAKE'><filename>EXTRA_OECMAKE</filename></ulink> |
2418 | to pass any needed configure options that are specific | 2421 | to pass any needed configure options that are specific |
2419 | to the recipe.</para></listitem> | 2422 | to the recipe. |
2423 | <note> | ||
2424 | If you need to install one or more custom CMake | ||
2425 | toolchain files that are supplied by the | ||
2426 | application you are building, install the files to | ||
2427 | <filename>${D}${datadir}/cmake/</filename> Modules | ||
2428 | during | ||
2429 | <ulink url='&YOCTO_DOCS_REF_URL;#ref-tasks-install'><filename>do_install</filename></ulink>. | ||
2430 | </note> | ||
2431 | </para></listitem> | ||
2420 | <listitem><para><emphasis>Other:</emphasis> | 2432 | <listitem><para><emphasis>Other:</emphasis> |
2421 | If your source files do not have a | 2433 | If your source files do not have a |
2422 | <filename>configure.ac</filename> or | 2434 | <filename>configure.ac</filename> or |
@@ -2779,6 +2791,14 @@ | |||
2779 | <ulink url='&YOCTO_DOCS_REF_URL;#var-PARALLEL_MAKEINST'><filename>PARALLEL_MAKEINST</filename></ulink> | 2791 | <ulink url='&YOCTO_DOCS_REF_URL;#var-PARALLEL_MAKEINST'><filename>PARALLEL_MAKEINST</filename></ulink> |
2780 | for additional information. | 2792 | for additional information. |
2781 | </para></listitem> | 2793 | </para></listitem> |
2794 | <listitem><para> | ||
2795 | If you need to install one or more custom CMake | ||
2796 | toolchain files that are supplied by the | ||
2797 | application you are building, install the files to | ||
2798 | <filename>${D}${datadir}/cmake/</filename> Modules | ||
2799 | during | ||
2800 | <ulink url='&YOCTO_DOCS_REF_URL;#ref-tasks-install'><filename>do_install</filename></ulink>. | ||
2801 | </para></listitem> | ||
2782 | </itemizedlist> | 2802 | </itemizedlist> |
2783 | </note> | 2803 | </note> |
2784 | </section> | 2804 | </section> |
diff --git a/documentation/ref-manual/ref-classes.xml b/documentation/ref-manual/ref-classes.xml index ece47e757b..76ae334b24 100644 --- a/documentation/ref-manual/ref-classes.xml +++ b/documentation/ref-manual/ref-classes.xml | |||
@@ -445,6 +445,14 @@ | |||
445 | variable to specify additional configuration options to be passed | 445 | variable to specify additional configuration options to be passed |
446 | using the <filename>cmake</filename> command line. | 446 | using the <filename>cmake</filename> command line. |
447 | </para> | 447 | </para> |
448 | |||
449 | <para> | ||
450 | On the occasion that you would be installing custom CMake toolchain | ||
451 | files supplied by the application being built, you should install them | ||
452 | to the preferred CMake Module directory: | ||
453 | <filename>${D}${datadir}/cmake/</filename> Modules during | ||
454 | <ulink url='&YOCTO_DOCS_REF_URL;#ref-tasks-install'><filename>do_install</filename></ulink>. | ||
455 | </para> | ||
448 | </section> | 456 | </section> |
449 | 457 | ||
450 | <section id='ref-classes-cml1'> | 458 | <section id='ref-classes-cml1'> |