docs/manual: pass PARALLEL_JOBS to NINJA_OPTS
authorJörg Krause <joerg.krause@embedded.rocks>
Wed, 14 Mar 2018 20:18:35 +0000 (21:18 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 19 Mar 2018 22:22:37 +0000 (23:22 +0100)
Ninja understands the `-j` option which defines how many jobs are
run in parallel.

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
docs/manual/adding-packages-meson.txt

index 65a0f6a9622a03964474951c5e6d103c4c95af14..f3b4b30e4861db991db6e1780e17b4bf0497f4fc 100644 (file)
@@ -35,7 +35,7 @@ package. Let's start with an example:
 18:    --buildtype $(if $(BR2_ENABLE_DEBUG),debug,release) \
 19:    --cross-file $(HOST_DIR)/etc/meson/cross-compilation.conf
 20:
-21: FOO_NINJA_OPTS = $(if $(VERBOSE),-v)
+21: FOO_NINJA_OPTS = $(if $(VERBOSE),-v) -j$(PARALLEL_JOBS)
 22:
 23: ifeq ($(BR2_PACKAGE_BAZ),y)
 24: FOO_CONF_OPTS += -Dbaz