xref: /rk3399_ARM-atf/docs/process/contributing.rst (revision 90329375d0f44ad5e68772ae4c63b5482143937e)
18aa05055SPaul BeesleyContributor's Guide
2a092825dSJayanth Dodderi Chidanand*******************
340d553cfSPaul Beesley
440d553cfSPaul BeesleyGetting Started
5a092825dSJayanth Dodderi Chidanand===============
640d553cfSPaul Beesley
7ed3525e6SOlivier Deprez-  Make sure you have a Github account and you are logged on to
8ed3525e6SOlivier Deprez   `review.trustedfirmware.org`_.
940d553cfSPaul Beesley
10fac4a843SSandrine Bailleux   Also make sure that you have registered your full name and email address in
11fac4a843SSandrine Bailleux   your `review.trustedfirmware.org`_ profile. Otherwise, the Gerrit server
12fac4a843SSandrine Bailleux   might reject patches you attempt to post for review.
13fac4a843SSandrine Bailleux
14a88b3c29SSandrine Bailleux-  If you plan to contribute a major piece of work, it is usually a good idea to
15fac4a843SSandrine Bailleux   start a discussion around it on the `TF-A mailing list`_. This gives everyone
16a88b3c29SSandrine Bailleux   visibility of what is coming up, you might learn that somebody else is
17a88b3c29SSandrine Bailleux   already working on something similar or the community might be able to
18a88b3c29SSandrine Bailleux   provide some early input to help shaping the design of the feature.
19a88b3c29SSandrine Bailleux
20a88b3c29SSandrine Bailleux   If you intend to include Third Party IP in your contribution, please mention
21a88b3c29SSandrine Bailleux   it explicitly in the email thread and ensure that the changes that include
22a88b3c29SSandrine Bailleux   Third Party IP are made in a separate patch (or patch series).
2340d553cfSPaul Beesley
24fac4a843SSandrine Bailleux-  Clone the Trusted Firmware-A source code on your own machine as described in
2543f35ef5SPaul Beesley   :ref:`prerequisites_get_source`.
26e256cc63SSandrine Bailleux
27fac4a843SSandrine Bailleux-  Create a local topic branch based on the Trusted Firmware-A ``master``
2840d553cfSPaul Beesley   branch.
2940d553cfSPaul Beesley
3040d553cfSPaul BeesleyMaking Changes
31a092825dSJayanth Dodderi Chidanand==============
3240d553cfSPaul Beesley
33fac4a843SSandrine Bailleux-  Ensure commits adhere to the project's :ref:`Commit Style`.
347d3b5193SChris Kay
3540d553cfSPaul Beesley-  Make commits of logical units. See these general `Git guidelines`_ for
3640d553cfSPaul Beesley   contributing to a project.
37e256cc63SSandrine Bailleux
3840d553cfSPaul Beesley-  Keep the commits on topic. If you need to fix another bug or make another
39a88b3c29SSandrine Bailleux   enhancement, please address it on a separate topic branch.
40e256cc63SSandrine Bailleux
417969747eSSandrine Bailleux-  Split the patch in manageable units. Small patches are usually easier to
427969747eSSandrine Bailleux   review so this will speed up the review process.
437969747eSSandrine Bailleux
4440d553cfSPaul Beesley-  Avoid long commit series. If you do have a long series, consider whether
4540d553cfSPaul Beesley   some commits should be squashed together or addressed in a separate topic.
46e256cc63SSandrine Bailleux
477969747eSSandrine Bailleux-  Follow the :ref:`Coding Style` and :ref:`Coding Guidelines`.
487969747eSSandrine Bailleux
497969747eSSandrine Bailleux   -  Use the checkpatch.pl script provided with the Linux source tree. A
507969747eSSandrine Bailleux      Makefile target is provided for convenience, see :ref:`this
517969747eSSandrine Bailleux      section<automatic-compliance-checking>` for more details.
52e256cc63SSandrine Bailleux
5340d553cfSPaul Beesley-  Where appropriate, please update the documentation.
5440d553cfSPaul Beesley
55e256cc63SSandrine Bailleux   -  Consider whether the :ref:`Porting Guide`, :ref:`Firmware Design` document
56e256cc63SSandrine Bailleux      or other in-source documentation needs updating.
57e256cc63SSandrine Bailleux
58e256cc63SSandrine Bailleux   -  If you are submitting new files that you intend to be the code owner for
59e256cc63SSandrine Bailleux      (for example, a new platform port), then also update the
60e256cc63SSandrine Bailleux      :ref:`code owners` file.
61e256cc63SSandrine Bailleux
62e256cc63SSandrine Bailleux   -  For topics with multiple commits, you should make all documentation changes
63e256cc63SSandrine Bailleux      (and nothing else) in the last commit of the series. Otherwise, include
64e256cc63SSandrine Bailleux      the documentation changes within the single commit.
65e256cc63SSandrine Bailleux
661f19411aSSandrine Bailleux.. _copyright-license-guidance:
671f19411aSSandrine Bailleux
6840d553cfSPaul Beesley-  Ensure that each changed file has the correct copyright and license
69e256cc63SSandrine Bailleux   information. Files that entirely consist of contributions to this project
70e256cc63SSandrine Bailleux   should have a copyright notice and BSD-3-Clause SPDX license identifier of
71e256cc63SSandrine Bailleux   the form as shown in :ref:`license`. Files that contain changes to imported
72e256cc63SSandrine Bailleux   Third Party IP files should retain their original copyright and license
73e256cc63SSandrine Bailleux   notices.
74e256cc63SSandrine Bailleux
75e256cc63SSandrine Bailleux   For significant contributions you may add your own copyright notice in the
76e256cc63SSandrine Bailleux   following format:
7740d553cfSPaul Beesley
7840d553cfSPaul Beesley   ::
7940d553cfSPaul Beesley
8040d553cfSPaul Beesley       Portions copyright (c) [XXXX-]YYYY, <OWNER>. All rights reserved.
8140d553cfSPaul Beesley
82e256cc63SSandrine Bailleux   where XXXX is the year of first contribution (if different to YYYY) and YYYY
83e256cc63SSandrine Bailleux   is the year of most recent contribution. <OWNER> is your name or your company
84e256cc63SSandrine Bailleux   name.
8540d553cfSPaul Beesley
867969747eSSandrine Bailleux-  Ensure that each patch in the patch series compiles in all supported
877969747eSSandrine Bailleux   configurations. Patches which do not compile will not be merged.
887969747eSSandrine Bailleux
8940d553cfSPaul Beesley-  Please test your changes. As a minimum, ensure that Linux boots on the
9043f35ef5SPaul Beesley   Foundation FVP. See :ref:`Arm Fixed Virtual Platforms (FVP)` for more
9143f35ef5SPaul Beesley   information. For more extensive testing, consider running the `TF-A Tests`_
9243f35ef5SPaul Beesley   against your patches.
9340d553cfSPaul Beesley
947969747eSSandrine Bailleux-  Ensure that all CI automated tests pass. Failures should be fixed. They might
957969747eSSandrine Bailleux   block a patch, depending on how critical they are.
967969747eSSandrine Bailleux
9740d553cfSPaul BeesleySubmitting Changes
98a092825dSJayanth Dodderi Chidanand==================
9940d553cfSPaul Beesley
100fac4a843SSandrine Bailleux.. note::
101fac4a843SSandrine Bailleux   Please follow the `How to Contribute Code`_ section of the OpenCI
102fac4a843SSandrine Bailleux   documentation for general instructions on setting up Gerrit and posting
103fac4a843SSandrine Bailleux   patches there. The rest of this section provides details about patch
104fac4a843SSandrine Bailleux   submission rules specifically for the TF-A project.
10540d553cfSPaul Beesley
106fac4a843SSandrine Bailleux-  Submit your changes for review using the ``git review`` command.
1077969747eSSandrine Bailleux
108fac4a843SSandrine Bailleux   This will automatically rebase them onto the upstream ``integration`` branch,
109fac4a843SSandrine Bailleux   as required by TF-A's patch submission process.
110fac4a843SSandrine Bailleux
111fac4a843SSandrine Bailleux-  From the Gerrit web UI, add reviewers for your patch:
112fac4a843SSandrine Bailleux
113fac4a843SSandrine Bailleux   -  At least one code owner for each module modified by the patch. See the
114fac4a843SSandrine Bailleux      list of modules and their :ref:`code owners`.
1157969747eSSandrine Bailleux
1167969747eSSandrine Bailleux   -  At least one maintainer. See the list of :ref:`maintainers`.
1177969747eSSandrine Bailleux
1187969747eSSandrine Bailleux   -  If some module has no code owner, try to identify a suitable (non-code
1197969747eSSandrine Bailleux      owner) reviewer. Running ``git blame`` on the module's source code can
1207969747eSSandrine Bailleux      help, as it shows who has been working the most recently on this area of
1217969747eSSandrine Bailleux      the code.
1227969747eSSandrine Bailleux
1237969747eSSandrine Bailleux      Alternatively, if it is impractical to identify such a reviewer, you might
1247969747eSSandrine Bailleux      send an email to the `TF-A mailing list`_ to broadcast your review request
1257969747eSSandrine Bailleux      to the community.
1267969747eSSandrine Bailleux
1277969747eSSandrine Bailleux   Note that self-reviewing a patch is prohibited, even if the patch author is
1287969747eSSandrine Bailleux   the only code owner of a module modified by the patch. Getting a second pair
1297969747eSSandrine Bailleux   of eyes on the code is essential to keep up with the quality standards the
1307969747eSSandrine Bailleux   project aspires to.
1317969747eSSandrine Bailleux
1327969747eSSandrine Bailleux-  The changes will then undergo further review by the designated people. Any
1337969747eSSandrine Bailleux   review comments will be made directly on your patch. This may require you to
1347969747eSSandrine Bailleux   do some rework. For controversial changes, the discussion might be moved to
1357969747eSSandrine Bailleux   the `TF-A mailing list`_ to involve more of the community.
13640d553cfSPaul Beesley
13740d553cfSPaul Beesley   Refer to the `Gerrit Uploading Changes documentation`_ for more details.
13840d553cfSPaul Beesley
1397969747eSSandrine Bailleux-  The patch submission rules are the following. For a patch to be approved
1407969747eSSandrine Bailleux   and merged in the tree, it must get:
1417969747eSSandrine Bailleux
1427969747eSSandrine Bailleux   -  One ``Code-Owner-Review+1`` for each of the modules modified by the patch.
1437969747eSSandrine Bailleux   -  A ``Maintainer-Review+1``.
1447969747eSSandrine Bailleux
1457969747eSSandrine Bailleux   In the case where a code owner could not be found for a given module,
1467969747eSSandrine Bailleux   ``Code-Owner-Review+1`` is substituted by ``Code-Review+1``.
1477969747eSSandrine Bailleux
1487969747eSSandrine Bailleux   In addition to these various code review labels, the patch must also get a
1497969747eSSandrine Bailleux   ``Verified+1``. This is usually set by the Continuous Integration (CI) bot
1507969747eSSandrine Bailleux   when all automated tests passed on the patch. Sometimes, some of these
1517969747eSSandrine Bailleux   automated tests may fail for reasons unrelated to the patch. In this case,
1527969747eSSandrine Bailleux   the maintainers might (after analysis of the failures) override the CI bot
1537969747eSSandrine Bailleux   score to certify that the patch has been correctly tested.
1547969747eSSandrine Bailleux
1557969747eSSandrine Bailleux   In the event where the CI system lacks proper tests for a patch, the patch
1567969747eSSandrine Bailleux   author or a reviewer might agree to perform additional manual tests
1577969747eSSandrine Bailleux   in their review and the reviewer incorporates the review of the additional
1587969747eSSandrine Bailleux   testing in the ``Code-Review+1`` or ``Code-Owner-Review+1`` as applicable to
1597969747eSSandrine Bailleux   attest that the patch works as expected. Where possible additional tests should
1607969747eSSandrine Bailleux   be added to the CI system as a follow up task. For example, for a
1617969747eSSandrine Bailleux   platform-dependent patch where the said platform is not available in the CI
1627969747eSSandrine Bailleux   system's board farm.
1637969747eSSandrine Bailleux
16434760951SPaul Beesley-  When the changes are accepted, the :ref:`maintainers` will integrate them.
16540d553cfSPaul Beesley
16634760951SPaul Beesley   -  Typically, the :ref:`maintainers` will merge the changes into the
16740d553cfSPaul Beesley      ``integration`` branch.
1687969747eSSandrine Bailleux
16940d553cfSPaul Beesley   -  If the changes are not based on a sufficiently-recent commit, or if they
17034760951SPaul Beesley      cannot be automatically rebased, then the :ref:`maintainers` may rebase it
1713d28b0a4SSandrine Bailleux      on the ``integration`` branch or ask you to do so.
1727969747eSSandrine Bailleux
17340d553cfSPaul Beesley   -  After final integration testing, the changes will make their way into the
1743d28b0a4SSandrine Bailleux      ``master`` branch. If a problem is found during integration, the
1753d28b0a4SSandrine Bailleux      :ref:`maintainers` will request your help to solve the issue. They may
1763d28b0a4SSandrine Bailleux      revert your patches and ask you to resubmit a reworked version of them or
1773d28b0a4SSandrine Bailleux      they may ask you to provide a fix-up patch.
17840d553cfSPaul Beesley
179a092825dSJayanth Dodderi ChidanandAdd CI Configurations
180a092825dSJayanth Dodderi Chidanand=====================
1816c3d92e3SJayanth Dodderi Chidanand
182fac4a843SSandrine BailleuxTF-A uses Jenkins for Continuous Integration and testing activities. Various CI
183fac4a843SSandrine Bailleuxjobs are deployed to run tests on every patch before being merged. Each of your
184fac4a843SSandrine Bailleuxpatches go through a series of checks before they get merged on to the master
185fac4a843SSandrine Bailleuxbranch. Kindly ensure that every time you add new files under your platform,
186fac4a843SSandrine Bailleuxthey are covered by the following two sections.
187a092825dSJayanth Dodderi Chidanand
188a092825dSJayanth Dodderi ChidanandCoverity Scan
189a092825dSJayanth Dodderi Chidanand-------------
1906c3d92e3SJayanth Dodderi Chidanand
191fac4a843SSandrine BailleuxThe TF-A project makes use of `Coverity Scan` for static analysis, a service
192fac4a843SSandrine Bailleuxoffered by Synopsys for open-source projects. This tool is able to find defects
193fac4a843SSandrine Bailleuxand vulnerabilities in a code base, such as dereferences of NULL pointers, use
194fac4a843SSandrine Bailleuxof uninitialized data, control flow issues and many other things.
1956c3d92e3SJayanth Dodderi Chidanand
196fac4a843SSandrine BailleuxThe TF-A source code is submitted daily to this service for analysis. Results of
197fac4a843SSandrine Bailleuxthe latest and previous scans, as well as the complete list of defects it
198fac4a843SSandrine Bailleuxdetected, are accessible online from
199fac4a843SSandrine Bailleuxhttps://scan.coverity.com/projects/arm-software-arm-trusted-firmware.
2006c3d92e3SJayanth Dodderi Chidanand
201fac4a843SSandrine BailleuxThe `tf-a-ci-scripts repository`_ contains scripts to run the Coverity Scan
202fac4a843SSandrine Bailleuxtools on the integration branch of the TF-A code base and make them available on
203fac4a843SSandrine Bailleuxhttps://scan.coverity.com. These scripts get executed daily by the
204fac4a843SSandrine Bailleux`tf-a-coverity Jenkins job`_.
205fac4a843SSandrine Bailleux
206fac4a843SSandrine BailleuxIn order to maintain a high level of coverage, including on newly introduced
207fac4a843SSandrine Bailleuxcode, it is important to maintain the appropriate TF-A CI scripts. Details of
208fac4a843SSandrine Bailleuxwhen to update these scripts and how to do so follow.
209fac4a843SSandrine Bailleux
210fac4a843SSandrine BailleuxWe maintain a build script - ``tf-cov-make`` - which contains the build
211fac4a843SSandrine Bailleuxconfigurations of various platforms in order to cover the entire source code
212fac4a843SSandrine Bailleuxbeing analysed by Coverity.
213fac4a843SSandrine Bailleux
214fac4a843SSandrine BailleuxWhen you submit your patches for review, and if they contain new source files,
215fac4a843SSandrine Bailleux`TF-A CI static checks job`_ might report that these files are not covered. In
216fac4a843SSandrine Bailleuxthis case, the job's console output will show the following error message::
217fac4a843SSandrine Bailleux
218fac4a843SSandrine Bailleux   ****** Newly added files detection check for Coverity Scan analysis on patch(es) ******
219fac4a843SSandrine Bailleux
220fac4a843SSandrine Bailleux   Result : FAILURE
221fac4a843SSandrine Bailleux
222fac4a843SSandrine Bailleux   New source files have been identified in your patch..
223fac4a843SSandrine Bailleux   some/dir/file.c
224fac4a843SSandrine Bailleux
225fac4a843SSandrine Bailleux   please ensure to include them for the ``Coverity Scan analysis`` by adding
226fac4a843SSandrine Bailleux   the respective build configurations in the ``tf-cov-make`` build script.
227fac4a843SSandrine Bailleux
228fac4a843SSandrine BailleuxIn this section you find the details on how to append your new build
229a092825dSJayanth Dodderi Chidanandconfigurations for Coverity scan analysis illustrated with examples:
2306c3d92e3SJayanth Dodderi Chidanand
2316c3d92e3SJayanth Dodderi Chidanand#. We maintain a separate repository named `tf-a-ci-scripts repository`_
2326c3d92e3SJayanth Dodderi Chidanand   for placing all the test scripts which will be executed by the CI Jobs.
2336c3d92e3SJayanth Dodderi Chidanand
2346c3d92e3SJayanth Dodderi Chidanand#. In this repository, ``tf-cov-make`` script is located at
2356c3d92e3SJayanth Dodderi Chidanand   ``tf-a-ci-scripts/script/tf-coverity/tf-cov-make``
2366c3d92e3SJayanth Dodderi Chidanand
237fac4a843SSandrine Bailleux#. Edit the `tf-cov-make`_ script by appending all the possible build
238fac4a843SSandrine Bailleux   configurations with the specific build flags relevant to your platform, so
239fac4a843SSandrine Bailleux   that newly added source files get built and analysed by Coverity.
2406c3d92e3SJayanth Dodderi Chidanand
2416c3d92e3SJayanth Dodderi Chidanand#. For better understanding follow the below specified examples listed in the
2426c3d92e3SJayanth Dodderi Chidanand   ``tf-cov-make`` script.
2436c3d92e3SJayanth Dodderi Chidanand
244d0bbe815SJayanth Dodderi Chidanand.. code:: shell
2456c3d92e3SJayanth Dodderi Chidanand
2466c3d92e3SJayanth Dodderi Chidanand    Example 1:
2476c3d92e3SJayanth Dodderi Chidanand    #Intel
2486c3d92e3SJayanth Dodderi Chidanand    make PLAT=stratix10 $(common_flags) all
2496c3d92e3SJayanth Dodderi Chidanand    make PLAT=agilex $(common_flags) all
2506c3d92e3SJayanth Dodderi Chidanand
2516c3d92e3SJayanth Dodderi Chidanand-  In the above example there are two different SoCs ``stratix`` and ``agilex``
2526c3d92e3SJayanth Dodderi Chidanand   under the Intel platform and the build configurations has been added suitably
2536c3d92e3SJayanth Dodderi Chidanand   to include most of their source files.
2546c3d92e3SJayanth Dodderi Chidanand
255d0bbe815SJayanth Dodderi Chidanand.. code:: shell
2566c3d92e3SJayanth Dodderi Chidanand
2576c3d92e3SJayanth Dodderi Chidanand    Example 2:
2586c3d92e3SJayanth Dodderi Chidanand    #Hikey
2596c3d92e3SJayanth Dodderi Chidanand    make PLAT=hikey $(common_flags) ${TBB_OPTIONS} ENABLE_PMF=1 all
2606c3d92e3SJayanth Dodderi Chidanand    make PLAT=hikey960 $(common_flags) ${TBB_OPTIONS} all
2616c3d92e3SJayanth Dodderi Chidanand    make PLAT=poplar $(common_flags) all
2626c3d92e3SJayanth Dodderi Chidanand
263fac4a843SSandrine Bailleux-  In this case for ``Hikey`` boards additional build flags have been included
264fac4a843SSandrine Bailleux   along with the ``common_flags`` to cover most of the files relevant to it.
2656c3d92e3SJayanth Dodderi Chidanand
2666c3d92e3SJayanth Dodderi Chidanand-  Similar to this you can still find many other different build configurations
2676c3d92e3SJayanth Dodderi Chidanand   of various other platforms listed in the ``tf-cov-make`` script. Kindly refer
2686c3d92e3SJayanth Dodderi Chidanand   them and append your build configurations respectively.
2696c3d92e3SJayanth Dodderi Chidanand
270fac4a843SSandrine BailleuxTest Build Configurations
271fac4a843SSandrine Bailleux-------------------------
272a092825dSJayanth Dodderi Chidanand
273fac4a843SSandrine BailleuxWe have CI jobs which run a set of test configurations on every TF-A patch
274fac4a843SSandrine Bailleuxbefore they get merged upstream.
275a092825dSJayanth Dodderi Chidanand
276fac4a843SSandrine BailleuxAt the bare minimum, TF-A code should build without any errors for every
277fac4a843SSandrine Bailleuxsupported platform - and every feature of this platform. To make sure this is
278fac4a843SSandrine Bailleuxthe case, we maintain a set of build tests. ``tf-l1-build-plat`` is the test
279fac4a843SSandrine Bailleuxgroup which holds all build tests for all platforms. So be kind enough to
280fac4a843SSandrine Bailleuxverify that your newly added files are covered by such a build test.
281a092825dSJayanth Dodderi Chidanand
282fac4a843SSandrine BailleuxIf this is not the case, please follow the instructions below to add the
283fac4a843SSandrine Bailleuxappropriate files. We will illustrate this with an example for the ``Hikey``
284fac4a843SSandrine Bailleuxplatform.
285a092825dSJayanth Dodderi Chidanand
286fac4a843SSandrine Bailleux-  In the `tf-a-ci-scripts repository`_ we need to add a build configuration file
287fac4a843SSandrine Bailleux   ``hikey-default`` under ``tf_config/`` folder. ``tf_config/hikey-default``
288fac4a843SSandrine Bailleux   must list all the build parameters relevant to it.
289a092825dSJayanth Dodderi Chidanand
290a092825dSJayanth Dodderi Chidanand.. code:: shell
291a092825dSJayanth Dodderi Chidanand
292a092825dSJayanth Dodderi Chidanand   # Hikey Build Parameters
293a092825dSJayanth Dodderi Chidanand   CROSS_COMPILE=aarch64-none-elf-
294a092825dSJayanth Dodderi Chidanand   PLAT=hikey
295a092825dSJayanth Dodderi Chidanand
296fac4a843SSandrine Bailleux-  Further another file, ``hikey-default:nil``, needs to be added under
297fac4a843SSandrine Bailleux   ``group/tf-l1-build-plat/`` folder to allow the platform to be built as part
298fac4a843SSandrine Bailleux   of this test group. ``group/tf-l1-build-plat/hikey-default:nil`` file just
299fac4a843SSandrine Bailleux   needs to exist but does not contain anything meaningful, apart from a
300fac4a843SSandrine Bailleux   mandatory copyright notice:
301a092825dSJayanth Dodderi Chidanand
302a092825dSJayanth Dodderi Chidanand.. code:: shell
303a092825dSJayanth Dodderi Chidanand
304a092825dSJayanth Dodderi Chidanand   #
305a092825dSJayanth Dodderi Chidanand   # Copyright (c) 2019-2022 Arm Limited. All rights reserved.
306a092825dSJayanth Dodderi Chidanand   #
307a092825dSJayanth Dodderi Chidanand   # SPDX-License-Identifier: BSD-3-Clause
308a092825dSJayanth Dodderi Chidanand   #
309a092825dSJayanth Dodderi Chidanand
310fac4a843SSandrine Bailleux-  As illustrated above, you need to add similar files supporting your platform.
311fac4a843SSandrine Bailleux
312fac4a843SSandrine BailleuxFor a more elaborate explanation of the TF-A CI scripts internals, including how
313fac4a843SSandrine Bailleuxto add more complex tests beyond a simple build test, please refer to the `TF-A
314fac4a843SSandrine BailleuxCI scripts overview`_ section of the OpenCI documentation.
315a092825dSJayanth Dodderi Chidanand
31640d553cfSPaul BeesleyBinary Components
317a092825dSJayanth Dodderi Chidanand=================
31840d553cfSPaul Beesley
31940d553cfSPaul Beesley-  Platforms may depend on binary components submitted to the `Trusted Firmware
32040d553cfSPaul Beesley   binary repository`_ if they require code that the contributor is unable or
32140d553cfSPaul Beesley   unwilling to open-source. This should be used as a rare exception.
32240d553cfSPaul Beesley-  All binary components must follow the contribution guidelines (in particular
32340d553cfSPaul Beesley   licensing rules) outlined in the `readme.rst <tf-binaries-readme_>`_ file of
32440d553cfSPaul Beesley   the binary repository.
32540d553cfSPaul Beesley-  Binary components must be restricted to only the specific functionality that
32640d553cfSPaul Beesley   cannot be open-sourced and must be linked into a larger open-source platform
32740d553cfSPaul Beesley   port. The majority of the platform port must still be implemented in open
32840d553cfSPaul Beesley   source. Platform ports that are merely a thin wrapper around a binary
32940d553cfSPaul Beesley   component that contains all the actual code will not be accepted.
33040d553cfSPaul Beesley-  Only platform port code (i.e. in the ``plat/<vendor>`` directory) may rely on
33140d553cfSPaul Beesley   binary components. Generic code must always be fully open-source.
33240d553cfSPaul Beesley
33340d553cfSPaul Beesley--------------
33440d553cfSPaul Beesley
335*854d199bSGovindraj Raja*Copyright (c) 2013-2025, Arm Limited and Contributors. All rights reserved.*
33640d553cfSPaul Beesley
3373d28b0a4SSandrine Bailleux.. _review.trustedfirmware.org: https://review.trustedfirmware.org
338*854d199bSGovindraj Raja.. _Git guidelines: https://git-scm.com/book/en/v2/Distributed-Git-Contributing-to-a-Project
33940d553cfSPaul Beesley.. _Gerrit Uploading Changes documentation: https://review.trustedfirmware.org/Documentation/user-upload.html
3403d28b0a4SSandrine Bailleux.. _TF-A Tests: https://trustedfirmware-a-tests.readthedocs.io
34140d553cfSPaul Beesley.. _Trusted Firmware binary repository: https://review.trustedfirmware.org/admin/repos/tf-binaries
34240d553cfSPaul Beesley.. _tf-binaries-readme: https://git.trustedfirmware.org/tf-binaries.git/tree/readme.rst
343f4a55e6bSSandrine Bailleux.. _TF-A mailing list: https://lists.trustedfirmware.org/mailman3/lists/tf-a.lists.trustedfirmware.org/
3446c3d92e3SJayanth Dodderi Chidanand.. _tf-a-ci-scripts repository: https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git/
3456c3d92e3SJayanth Dodderi Chidanand.. _tf-cov-make: https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git/tree/script/tf-coverity/tf-cov-make
346fac4a843SSandrine Bailleux.. _How to Contribute Code: https://tf-ci-users-guide.readthedocs.io/en/latest/#how-to-contribute-code
347fac4a843SSandrine Bailleux.. _TF-A CI scripts overview: https://tf-ci-users-guide.readthedocs.io/en/latest/#tf-a-ci-scripts-overview
348fac4a843SSandrine Bailleux.. _tf-a-coverity Jenkins job: https://ci.trustedfirmware.org/job/tf-a-coverity/
349fac4a843SSandrine Bailleux.. _TF-A CI static checks job: https://ci.trustedfirmware.org/job/tf-a-static-checks/
350