source: rtems-docs/user/start/sources.rst @ cb4e4e2

5
Last change on this file since cb4e4e2 was 947e8eb, checked in by Sebastian Huber <sebastian.huber@…>, on 01/23/19 at 12:01:07

user: Add "Obtain the Sources" section

  • Property mode set to 100644
File size: 2.0 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.. _QuickStartSources:
7
8Obtain the Sources
9==================
10
11You chose an installation prefix previous section.  We chose
12:file:`$HOME/quick-start/rtems/5` as the installation prefix.
13
14You need at least two source archives or Git repositories to work with RTEMS.
15You can download the source archives for a released RTEMS version or you can
16clone Git repositories to get all versions of RTEMS including the development
17head.
18
19We will clone the Git repositories into :file:`$HOME/quick-start/src`.
20
21.. code-block:: none
22
23    mkdir -p $HOME/quick-start/src
24    cd $HOME/quick-start/src
25    git clone git://git.rtems.org/rtems-source-builder.git rsb
26    git clone git://git.rtems.org/rtems.git
27
28The :file:`rsb` repository clone contains the
29:ref:`RTEMS Source Builder (RSB) <RSB>`.  We clone it into
30:file:`rsb` to get shorter paths during the tool suite build.  The
31:file:`rtems` repository clone contains the RTEMS sources.  These two
32repositories are enough to get started.  There are
33`more repositories <https://git.rtems.org>`_ available.
34
35Alternatively, you can download the source archives of a released RTEMS
36version.
37
38.. code-block:: none
39
40    mkdir -p $HOME/quick-start/src
41    cd $HOME/quick-start/src
42    curl https://ftp.rtems.org/pub/rtems/releases/4.11/4.11.3/rtems-4.11.3.tar.xz | tar xJf -
43    curl https://ftp.rtems.org/pub/rtems/releases/4.11/4.11.3/rtems-source-builder-4.11.3.tar.xz | tar xJf -
44
45This quick start chapter focuses on working with the Git repository clones
46since this gives you some flexibility.  You can switch between branches to try
47out different RTEMS versions.  You have access to the RTEMS source history.
48The RTEMS Project welcomes contributions.  The Git repositories enable you to
49easily create patches and track local changes.  If you prefer to work with
50archives of a released RTEMS version, then simply replace the version number 5
51used throughout this chapter with the version number you selected, e.g. 4.11.
Note: See TracBrowser for help on using the repository browser.