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.js
node_modules/ node_modules/
# common python virtual environment directories
.env/
env/
.venv/
venv/

1
docs/about/index.rst

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

1
docs/components/index.rst

@ -4,7 +4,6 @@ Components
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 1
:caption: Contents :caption: Contents
:numbered:
spd/index spd/index
activity-monitors 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. # This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases. # 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 # List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files. # directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path . # 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. # The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx' pygments_style = 'sphinx'

1
docs/design/index.rst

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

1
docs/design_documents/index.rst

@ -4,7 +4,6 @@ Design Documents
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 1
:caption: Contents :caption: Contents
:numbered:
cmake_framework cmake_framework
context_mgmt_rework 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 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) - Python 3 (3.5 or later)
- PlantUML (1.2017.15 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 You can install these with ``pip3`` (the Python Package Installer) by
existing ``.dia`` diagram files, or create new ones. 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).
You must also install the Python modules that are specified in the .. note::
``requirements.txt`` file in the root of the ``docs`` directory. These modules Although not necessary, it is recommended you use a virtual environment.
can be installed using ``pip3`` (the Python Package Installer). Passing this More advanced usage instructions for *pip* are beyond the scope of this
requirements file as an argument to ``pip3`` automatically installs the specific document but you can refer to the `pip homepage`_ for detailed guides.
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 An example set of installation commands for Ubuntu follows, assuming that the
working directory is ``docs``: 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 the list to ensure that there will be no conflicts with other modules already
installed in your environment. 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 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 This page contains the current name, abbreviated name and purpose of the various
images referred to in the Trusted Firmware project. 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 - Some of the names and abbreviated names have changed to accommodate new
requirements. The changed names are as backward compatible as possible to requirements. The changed names are as backward compatible as possible to
@ -40,6 +40,15 @@ General Notes
Trusted Firmware Images 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`` AP Boot ROM: ``AP_BL1``
~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~

3
docs/getting_started/index.rst

@ -4,12 +4,11 @@ Getting Started
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 1
:caption: Contents :caption: Contents
:numbered:
prerequisites prerequisites
docs-build docs-build
tools-build
initial-build initial-build
tools-build
build-options build-options
image-terminology image-terminology
porting-guide 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 - Before building TF-A, the environment variable ``CROSS_COMPILE`` must point
to the Linaro cross compiler. to your cross compiler.
For AArch64: For AArch64:

4
docs/getting_started/prerequisites.rst

@ -27,6 +27,10 @@ Toolchain
target the Armv7-A or Armv8-A architectures: target the Armv7-A or Armv8-A architectures:
- GCC >= 11.3.Rel1 (from the `Arm Developer website`_) - 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 - Clang >= 14.0.0
- Arm Compiler >= 6.18 - Arm Compiler >= 6.18

14
docs/getting_started/tools-build.rst

@ -14,12 +14,11 @@ Building Supporting Tools
Building and using the FIP tool Building and using the FIP tool
------------------------------- -------------------------------
Firmware Image Package (FIP) is a packaging format used by TF-A to package The following snippets build a :ref:`FIP<Image Terminology>` for the FVP
firmware images in a single binary. The number and type of images that should platform. While it is not an intrinsic part of the FIP format, a BL33 image is
be packed in a FIP is platform specific and may include TF-A images and other required for these examples. For the purposes of experimentation, `Trusted
firmware images required by the platform. For example, most platforms require Firmware-A Tests`_ (`tftf.bin``) may be used. Refer to to the `TFTF
a BL33 image which corresponds to the normal world bootloader (e.g. UEFI or documentation`_ for instructions on building a TFTF binary.
U-Boot).
The TF-A build system provides the make target ``fip`` to create a FIP file 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 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.* *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:: .. toctree::
:maxdepth: 1 :maxdepth: 1
:hidden: :numbered:
Home<self> Home<self>
about/index about/index

1
docs/perf/index.rst

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

1
docs/plat/index.rst

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

1
docs/process/index.rst

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

1
docs/security_advisories/index.rst

@ -4,7 +4,6 @@ Security Advisories
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 1
:caption: Contents :caption: Contents
:numbered:
security-advisory-tfv-1.rst security-advisory-tfv-1.rst
security-advisory-tfv-2.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:: .. toctree::
:maxdepth: 1 :maxdepth: 1
:caption: Contents :caption: Contents
:numbered:
threat_model threat_model
threat_model_spm threat_model_spm

Loading…
Cancel
Save