source: rtems-docs/user/start/bootstrap.rst @ f672026

5
Last change on this file since f672026 was f672026, checked in by Chris Johns <chrisj@…>, on 03/12/20 at 04:13:39

user: Update Quick Start Guide

  • Add support for release source archives
  • Add building the BSP using the RSB
  • Add building packages using the RSB
  • Add an application

Closes #2998

  • Property mode set to 100644
File size: 2.4 KB
Line 
1.. SPDX-License-Identifier: CC-BY-SA-4.0
2
3.. Copyright (C) 2019 embedded brains GmbH
4.. Copyright (C) 2019 Sebastian Huber
5
6.. _QuickStartBootstrap:
7
8Bootstrap the RTEMS Sources
9===========================
10
11You installed the tool suite in your installation prefix and made ready the
12source for two RTEMS source packages in the previous sections.  We installed
13the tool suite in :file:`$HOME/quick-start/rtems/5` and unpacked the RSB source
14in :file:`$HOME/quick-start/src`.
15
16You only need to *bootstrap* the RTEMS sources if you have used
17:ref:`QuickStartSources_Git` to get the sources. If you use source archives of
18a released RTEMS version you can skip this section and move to
19:ref:`QuickStartBSPBuild`.
20
21Before you can build a :ref:`Board Support Package (BSP) <BSPs>` for your
22target hardware from Git cloned RTEMS sources, you have to bootstrap the build
23system in the RTEMS sources.  This is only necessary if you use a Git
24repository clone of the RTEMS sources.  You have to do this after a fresh
25repository clone and sometimes after build system file updates (e.g.  after a
26``git pull``).  If you are not a build system expert, then do the bootstrap
27after each update of build system files.  This is a bit annoying, but improving
28the build system is a complex and time consuming undertaking.  Feel free to
29help the RTEMS Project to improve it.  For the bootstrap it is important that
30the right version of Autotools (:file:`autoconf` and :file:`automake`) are in
31your ``$PATH``.  The right version of Autotools is shipped with the RTEMS tool
32suite you already installed. Set the path to the tool suite installed under
33your selected *prefix*:
34
35.. code-block:: none
36
37    export PATH=$HOME/quick-start/rtems/5/bin:"$PATH"
38
39Change into the RTEMS source tree to *bootstrap* the build system:
40
41.. code-block:: none
42
43    cd $HOME/quick-start/src/rtems
44    ./rtems-bootstrap
45
46This command should output something like this (omitted lines are denoted by
47``...``):
48
49.. code-block:: none
50
51    RTEMS Bootstrap, 1.0
52      1/122: autoreconf: configure.ac
53      2/122: autoreconf: testsuites/configure.ac
54      3/122: autoreconf: testsuites/fstests/configure.ac
55      4/122: autoreconf: testsuites/smptests/configure.ac
56      5/122: autoreconf: testsuites/psxtests/configure.ac
57      6/122: autoreconf: testsuites/mptests/configure.ac
58    ...
59    121/122: autoreconf: c/src/lib/libbsp/lm32/milkymist/configure.ac
60    122/122: autoreconf: c/src/make/configure.ac
61    Bootstrap time: 0:00:46.404643
Note: See TracBrowser for help on using the repository browser.