All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Cédric Marie" <cedric.marie@openmailbox.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] Update documentation of CMake infrastructure
Date: Fri,  6 Jan 2017 23:37:48 +0100	[thread overview]
Message-ID: <20170106223748.2203-2-cedric.marie@openmailbox.org> (raw)
In-Reply-To: <20170106223748.2203-1-cedric.marie@openmailbox.org>

Describe BR2_CMAKE_USE_NINJA_BACKEND option, and update all the
variables that have changed with this evolution.

Replace LIBFOO_INSTALL_STAGING_OPTS and LIBFOO_INSTALL_TARGET_OPTS with
LIBFOO_INSTALL_STAGING_ENV, LIBFOO_INSTALL_TARGET_ENV and
LIBFOO_INSTALL_OPTS.

Signed-off-by: C?dric Marie <cedric.marie@openmailbox.org>
---
 docs/manual/adding-packages-cmake.txt | 37 +++++++++++++++++++++++------------
 1 file changed, 25 insertions(+), 12 deletions(-)

diff --git a/docs/manual/adding-packages-cmake.txt b/docs/manual/adding-packages-cmake.txt
index 6ccf390..06331dd 100644
--- a/docs/manual/adding-packages-cmake.txt
+++ b/docs/manual/adding-packages-cmake.txt
@@ -117,25 +117,38 @@ typical packages will therefore only use a few of them.
   the given package, for one reason or another. By default, set to
   +$(MAKE)+. If parallel building is not supported by the package,
   then it should be set to +LIBFOO_MAKE=$(MAKE1)+.
+  When +BR2_CMAKE_USE_NINJA_BACKEND+ is enabled, the default value is
+  +$(HOST_DIR)/usr/bin/ninja+. If parallel building is not supported by
+  the package, then it should be set to
+  +LIBFOO_MAKE=$(HOST_DIR)/usr/bin/ninja -j1+.
 
 * +LIBFOO_MAKE_ENV+, to specify additional environment variables to
   pass to make in the build step. These are passed before the +make+
   command. By default, empty.
 
 * +LIBFOO_MAKE_OPTS+, to specify additional variables to pass to make
-  in the build step. These are passed after the +make+ command. By
-  default, empty.
-
-* +LIBFOO_INSTALL_STAGING_OPTS+ contains the make options used to
-  install the package to the staging directory. By default, the value
-  is +DESTDIR=$(STAGING_DIR) install+, which is correct for most
-  CMake packages. It is still possible to override it.
-
-* +LIBFOO_INSTALL_TARGET_OPTS+ contains the make options used to
+  in the build step. These are passed after the +make+ or +ninja+
+  command. If +BR2_CMAKE_USE_NINJA_BACKEND+ is enabled and +VERBOSE+ is
+  set, the default value is -v. Otherwise it is empty. With Ninja
+  backend, the verbose mode is not set in the configure step. Instead,
+  ninja -v option must be used in the following steps.
+
+* +LIBFOO_INSTALL_STAGING_ENV+ contains environment variables to pass
+  to make or ninja, to install the package to the staging directory. By
+  default, the value is +DESTDIR=$(STAGING_DIR)+, which is correct for
+  most CMake packages. It is still possible to override it.
+
+* +LIBFOO_INSTALL_TARGET_ENV+ contains environment variables to pass
+  to make or ninja, to install the package to the target directory. By
+  default, the value is +DESTDIR=$(TARGET_DIR)+. The default value is
+  correct for most CMake packages, but it is still possible to override
+  it if needed.
+
+* +LIBFOO_INSTALL_OPTS+ contains the make or ninja options used to
   install the package to the target directory. By default, the value
-  is +DESTDIR=$(TARGET_DIR) install+. The default value is correct
-  for most CMake packages, but it is still possible to override it if
-  needed.
+  is +install/fast+ for make and +install+ for ninja. The default value
+  is correct for most CMake packages, but it is still possible to
+  override it if needed.
 
 With the CMake infrastructure, all the steps required to build and
 install the packages are already defined, and they generally work well
-- 
2.9.3

  reply	other threads:[~2017-01-06 22:37 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-06 22:37 [Buildroot] [PATCH 1/2] Add BR2_CMAKE_USE_NINJA_BACKEND option Cédric Marie
2017-01-06 22:37 ` Cédric Marie [this message]
2017-01-25  3:27   ` [Buildroot] [PATCH 2/2] Update documentation of CMake infrastructure Thomas Petazzoni
2017-01-21 22:25 ` [Buildroot] [PATCH 1/2] Add BR2_CMAKE_USE_NINJA_BACKEND option Romain Naour
2017-01-23 13:39   ` Cédric Marie
2017-01-24 21:48     ` Romain Naour
2017-01-25  1:27       ` Thomas Petazzoni
2017-01-26 17:27         ` Cédric Marie
2017-01-30  9:23           ` Thomas Petazzoni
2017-02-01 17:01             ` Cédric Marie
2017-02-01 20:12               ` Thomas Petazzoni
2017-02-03 10:44                 ` Cédric Marie
2017-01-25  1:37 ` Thomas Petazzoni
2017-07-11 11:56 ` Thomas Petazzoni
2017-07-11 13:25   ` Cédric Marie
2017-07-11 13:35     ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170106223748.2203-2-cedric.marie@openmailbox.org \
    --to=cedric.marie@openmailbox.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.