Skip to content

Commit 3ebdc1e

Browse files
aescolarnashif
authored andcommitted
doc: nrf52_bsim: Update instructions on how to get BabbleSim
As now we point to babblesim with the zephyr manifest, we can tell users to get it that way. Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent e5335f3 commit 3ebdc1e

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

boards/posix/nrf52_bsim/doc/index.rst

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,28 +47,32 @@ This board requires the host 32 bit C library. See
4747
:ref:`POSIX Arch dependencies<posix_arch_deps>`.
4848

4949
To target this board you also need to have `BabbleSim`_ compiled in your system.
50-
If you do not have it yet, in `its web page <https://BabbleSim.github.io>`_
51-
you can find instructions on how to
52-
`fetch <https://babblesim.github.io/fetching.html>`_ and
53-
`build <https://babblesim.github.io/building.html>`_ it.
54-
In short, you can do:
50+
If you do not have it yet, the easiest way to get it, is to enable the babblesim group
51+
in your local west configuration, running west update, and building the simulator:
5552

5653
.. code-block:: console
5754
58-
mkdir -p ${HOME}/bsim && cd ${HOME}/bsim
59-
curl https://storage.googleapis.com/git-repo-downloads/repo > ./repo && chmod a+x ./repo
60-
./repo init -u https://github.com/BabbleSim/manifest.git -m everything.xml -b master
61-
./repo sync
55+
west config manifest.group-filter -- +babblesim
56+
west update
57+
cd ${ZEPHYR_BASE}/../tools/bsim
6258
make everything -j 8
6359
64-
Define two environment variables to point to your BabbleSim
60+
.. note::
61+
62+
If you need more BabbleSim components, or more up to date versions,
63+
you can check the `BabbleSim web page <https://BabbleSim.github.io>`_
64+
for instructions on how to
65+
`fetch <https://babblesim.github.io/fetching.html>`_ and
66+
`build <https://babblesim.github.io/building.html>`_ it.
67+
68+
You will now need to define two environment variables to point to your BabbleSim
6569
installation, ``BSIM_OUT_PATH`` and ``BSIM_COMPONENTS_PATH``.
6670
If you followed the previous steps, you can just do:
6771

6872
.. code-block:: console
6973
70-
export BSIM_OUT_PATH=${HOME}/bsim/
71-
export BSIM_COMPONENTS_PATH=${HOME}/bsim/components/
74+
export BSIM_OUT_PATH=${ZEPHYR_BASE}/../tools/bsim
75+
export BSIM_COMPONENTS_PATH=${BSIM_OUT_PATH}/components/
7276
7377
.. note::
7478

0 commit comments

Comments
 (0)