From d0c2be7c8a22409507817f8206b4d631b7520bad Mon Sep 17 00:00:00 2001 From: Carles Cufi Date: Mon, 12 Feb 2018 13:55:45 +0100 Subject: [PATCH] doc: getting_started: Windows build doc fixes Correct 2 items in the Windows Getting Started doc: * dtc-msys2 is now an upstream Chocolatey package * Add instructions to clone and build Ninja for MSYS2 Signed-off-by: Carles Cufi --- doc/getting_started/installation_win.rst | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/doc/getting_started/installation_win.rst b/doc/getting_started/installation_win.rst index 8b4b3a0c81c..f7a80b550c5 100644 --- a/doc/getting_started/installation_win.rst +++ b/doc/getting_started/installation_win.rst @@ -59,18 +59,17 @@ packages from their respective websites. choco feature enable -n allowGlobalConfirmation -#. Install CMake and DTC: +#. Install CMake: .. code-block:: console choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System' - choco install dtc-msys2 --version 1.4.4 #. Install the rest of the tools: .. code-block:: console - choco install git python ninja gperf + choco install git python ninja dtc-msys2 gperf #. Close the Command Prompt window. @@ -212,6 +211,16 @@ environment for Windows. Follow the steps below to set it up: pacman -Syu pacman -S git cmake make gcc dtc diffutils ncurses-devel python3 gperf +#. Compile :program:`Ninja` from source (Ninja is not available as + an MSYS2 package) and install it: + + .. code-block:: console + + git clone git://github.com/ninja-build/ninja.git && cd ninja + git checkout release + ./configure.py --bootstrap + cp ninja.exe /usr/bin/ + #. From within the MSYS2 MSYS Shell, clone a copy of the Zephyr source into your home directory using Git. (Some Zephyr tools require Unix-style line endings, so we'll configure Git for this repo to