Browse Source

Merge changes If90a18ee,I02e88f8c,Iea447fb5,Ie0570481,Ieeb14cfc into integration

* changes:
  docs: add top level section numbering
  docs(build): clarify getting started section
  docs(build): clarify docs building instructions
  fix(docs): prevent a sphinx warning
  fix(docs): prevent a virtual environment from failing a build
pull/1989/head
Manish V Badarkhe 2 years ago
committed by TrustedFirmware Code Review
parent
commit
71061819aa
  1. 6
      .gitignore
  2. 1
      docs/about/index.rst
  3. 1
      docs/components/index.rst
  4. 5
      docs/conf.py
  5. 1
      docs/design/index.rst
  6. 1
      docs/design_documents/index.rst
  7. 31
      docs/getting_started/docs-build.rst
  8. 13
      docs/getting_started/image-terminology.rst
  9. 3
      docs/getting_started/index.rst
  10. 2
      docs/getting_started/initial-build.rst
  11. 4
      docs/getting_started/prerequisites.rst
  12. 14
      docs/getting_started/tools-build.rst
  13. 2
      docs/index.rst
  14. 1
      docs/perf/index.rst
  15. 1
      docs/plat/index.rst
  16. 1
      docs/process/index.rst
  17. 1
      docs/security_advisories/index.rst
  18. 1
      docs/threat_model/index.rst

6
.gitignore

@ -43,3 +43,9 @@ tags
# Node.js
node_modules/
# common python virtual environment directories
.env/
env/
.venv/
venv/

1
docs/about/index.rst

@ -4,7 +4,6 @@ About
.. toctree::
:maxdepth: 1
:caption: Contents
:numbered:
features
release-information

1
docs/components/index.rst

@ -4,7 +4,6 @@ Components
.. toctree::
:maxdepth: 1
:caption: Contents
:numbered:
spd/index
activity-monitors

5
docs/conf.py

@ -36,12 +36,13 @@ master_doc = 'index'
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = "en"
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path .
exclude_patterns = []
# Don't try to build the venv in case it's placed with the sources
exclude_patterns = [".env", "env", ".venv", "venv"]
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'

1
docs/design/index.rst

@ -4,7 +4,6 @@ System Design
.. toctree::
:maxdepth: 1
:caption: Contents
:numbered:
alt-boot-flows
auth-framework

1
docs/design_documents/index.rst

@ -4,7 +4,6 @@ Design Documents
.. toctree::
:maxdepth: 1
:caption: Contents
:numbered:
cmake_framework
context_mgmt_rework

31
docs/getting_started/docs-build.rst

@ -17,19 +17,25 @@ check that you have the required software packages, as described in the
Prerequisites
-------------
For building a local copy of the |TF-A| documentation you will need, at minimum:
For building a local copy of the |TF-A| documentation you will need:
- Python 3 (3.5 or later)
- PlantUML (1.2017.15 or later)
- Python modules specified in ``docs/requirements.txt``
Optionally, the `Dia`_ application can be installed if you need to edit
existing ``.dia`` diagram files, or create new ones.
You can install these with ``pip3`` (the Python Package Installer) by
passing it the requirements file above (with ``-r``). An optional ``--user``
argument will install them locally, but you have to add their location to
$PATH (pip will emit a warning). Alternatively, they can be installed
globally (but will probably require root privileges).
.. note::
Although not necessary, it is recommended you use a virtual environment.
More advanced usage instructions for *pip* are beyond the scope of this
document but you can refer to the `pip homepage`_ for detailed guides.
You must also install the Python modules that are specified in the
``requirements.txt`` file in the root of the ``docs`` directory. These modules
can be installed using ``pip3`` (the Python Package Installer). Passing this
requirements file as an argument to ``pip3`` automatically installs the specific
module versions required by |TF-A|.
- Optionally, the `Dia`_ application can be installed if you need to edit
existing ``.dia`` diagram files, or create new ones.
An example set of installation commands for Ubuntu follows, assuming that the
working directory is ``docs``:
@ -44,15 +50,6 @@ working directory is ``docs``:
the list to ensure that there will be no conflicts with other modules already
installed in your environment.
Passing the optional ``--user`` argument to ``pip3`` will install the Python
packages only for the current user. Omitting this argument will attempt to
install the packages globally and this will likely require the command to be run
as root or using ``sudo``.
.. note::
More advanced usage instructions for *pip* are beyond the scope of this
document but you can refer to the `pip homepage`_ for detailed guides.
Building rendered documentation
-------------------------------

13
docs/getting_started/image-terminology.rst

@ -4,8 +4,8 @@ Image Terminology
This page contains the current name, abbreviated name and purpose of the various
images referred to in the Trusted Firmware project.
General Notes
-------------
Common Image Features
---------------------
- Some of the names and abbreviated names have changed to accommodate new
requirements. The changed names are as backward compatible as possible to
@ -40,6 +40,15 @@ General Notes
Trusted Firmware Images
-----------------------
Firmware Image Package: ``FIP``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This is a packaging format used by TF-A to package firmware images in a single
binary. The number and type of images that should be packed in a FIP is
platform-specific and may include TF-A images and other firmware images
required by the platform. For example, most platforms require a BL33 image
which corresponds to the normal world bootloader (e.g. UEFI or U-Boot).
AP Boot ROM: ``AP_BL1``
~~~~~~~~~~~~~~~~~~~~~~~

3
docs/getting_started/index.rst

@ -4,12 +4,11 @@ Getting Started
.. toctree::
:maxdepth: 1
:caption: Contents
:numbered:
prerequisites
docs-build
tools-build
initial-build
tools-build
build-options
image-terminology
porting-guide

2
docs/getting_started/initial-build.rst

@ -2,7 +2,7 @@ Performing an Initial Build
===========================
- Before building TF-A, the environment variable ``CROSS_COMPILE`` must point
to the Linaro cross compiler.
to your cross compiler.
For AArch64:

4
docs/getting_started/prerequisites.rst

@ -27,6 +27,10 @@ Toolchain
target the Armv7-A or Armv8-A architectures:
- GCC >= 11.3.Rel1 (from the `Arm Developer website`_)
You will need the targets ``arm-none-eabi`` and ``aarch64-none-elf`` for
AArch32 and AArch64 builds respectively.
- Clang >= 14.0.0
- Arm Compiler >= 6.18

14
docs/getting_started/tools-build.rst

@ -14,12 +14,11 @@ Building Supporting Tools
Building and using the FIP tool
-------------------------------
Firmware Image Package (FIP) is a packaging format used by TF-A to package
firmware images in a single binary. The number and type of images that should
be packed in a FIP is platform specific and may include TF-A images and other
firmware images required by the platform. For example, most platforms require
a BL33 image which corresponds to the normal world bootloader (e.g. UEFI or
U-Boot).
The following snippets build a :ref:`FIP<Image Terminology>` for the FVP
platform. While it is not an intrinsic part of the FIP format, a BL33 image is
required for these examples. For the purposes of experimentation, `Trusted
Firmware-A Tests`_ (`tftf.bin``) may be used. Refer to to the `TFTF
documentation`_ for instructions on building a TFTF binary.
The TF-A build system provides the make target ``fip`` to create a FIP file
for the specified platform using the FIP creation tool included in the TF-A
@ -175,3 +174,6 @@ via using ``cat <filename>`` instead of a hex string.
--------------
*Copyright (c) 2019-2022, Arm Limited. All rights reserved.*
.. _Trusted Firmware-A Tests: https://git.trustedfirmware.org/TF-A/tf-a-tests.git/
.. _TFTF documentation: https://trustedfirmware-a-tests.readthedocs.io/en/latest/

2
docs/index.rst

@ -3,7 +3,7 @@ Trusted Firmware-A Documentation
.. toctree::
:maxdepth: 1
:hidden:
:numbered:
Home<self>
about/index

1
docs/perf/index.rst

@ -4,7 +4,6 @@ Performance & Testing
.. toctree::
:maxdepth: 1
:caption: Contents
:numbered:
psci-performance-juno
tsp

1
docs/plat/index.rst

@ -4,7 +4,6 @@ Platform Ports
.. toctree::
:maxdepth: 1
:caption: Contents
:numbered:
:hidden:
allwinner

1
docs/process/index.rst

@ -4,7 +4,6 @@ Processes & Policies
.. toctree::
:maxdepth: 1
:caption: Contents
:numbered:
security
platform-ports-policy

1
docs/security_advisories/index.rst

@ -4,7 +4,6 @@ Security Advisories
.. toctree::
:maxdepth: 1
:caption: Contents
:numbered:
security-advisory-tfv-1.rst
security-advisory-tfv-2.rst

1
docs/threat_model/index.rst

@ -11,7 +11,6 @@ based on the data flow diagram and potential threat mitigations.
.. toctree::
:maxdepth: 1
:caption: Contents
:numbered:
threat_model
threat_model_spm

Loading…
Cancel
Save