From 493f37d6d91e5c0e4b272c91dc39c5514fadfa08 Mon Sep 17 00:00:00 2001 From: Rik Bouwmeester Date: Tue, 6 Aug 2024 14:08:01 +0200 Subject: [PATCH] Document retrieving number of processing units on MacOS --- docs/building-and-flashing/build.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/docs/building-and-flashing/build.md b/docs/building-and-flashing/build.md index 02ff05ba74..80a4ccbff1 100644 --- a/docs/building-and-flashing/build.md +++ b/docs/building-and-flashing/build.md @@ -92,40 +92,46 @@ $ git submodule update ### Building the default firmware -Before you can build the firmware, you will need to configure it. To build the firmware with a platform default configuration, run the following command: +Before you can build the firmware, you will need to configure it. To use a platform default configuration, run the following command: {% tabgroup %} {% tab Crazyflie 2.x %} ``` $ make cf2_defconfig -$ make -j$(nproc) ``` {% endtab %} {% tab Crazyflie 2.1 Brushless %} ``` $ make cf21bl_defconfig -$ make -j$(nproc) ``` {% endtab %} {% tab Crazyflie Bolt %} ``` $ make bolt_defconfig -$ make -j$(nproc) ``` {% endtab %} {% endtabgroup %} Then build the firmware with: +{% tabgroup %} +{% tab Linux/WSL %} ``` $ make -j$(nproc) ``` +{% endtab %} +{% tab MacOS %} +``` +$ make -j$(sysctl -n hw.ncpu) +``` +{% endtab %} +{% endtabgroup %} > Alternatively, to configure and build with the toolbelt, prepend `tb` to the make commands as follows: > > ``` > $ tb make cf2_defconfig -> $ tb make -j$(nproc) +> $ tb make > ``` Build artifacts, including binaries, will end up in the `build` directory.