diff options
| -rw-r--r-- | documentation/contributor-guide/submit-changes.rst | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/documentation/contributor-guide/submit-changes.rst b/documentation/contributor-guide/submit-changes.rst index 85ca987df2..0675aac984 100644 --- a/documentation/contributor-guide/submit-changes.rst +++ b/documentation/contributor-guide/submit-changes.rst | |||
| @@ -832,3 +832,52 @@ Other layers may have similar testing branches but there is no formal | |||
| 832 | requirement or standard for these so please check the documentation for the | 832 | requirement or standard for these so please check the documentation for the |
| 833 | layers you are contributing to. | 833 | layers you are contributing to. |
| 834 | 834 | ||
| 835 | Acceptance of AI Generated Code | ||
| 836 | =============================== | ||
| 837 | |||
| 838 | The Yocto Project and OpenEmbedded follow the guidance of the Linux Foundation | ||
| 839 | in regards to the use of generative AI tools. See: | ||
| 840 | https://www.linuxfoundation.org/legal/generative-ai. | ||
| 841 | |||
| 842 | All of the existing guidelines in this document are expected to be followed, | ||
| 843 | including in the :doc:`recipe-style-guide`, and contributing the changes with | ||
| 844 | additional requirements to the items in section | ||
| 845 | :ref:`contributor-guide/submit-changes:Implement and commit changes`. | ||
| 846 | |||
| 847 | All AI Generated Code must be labeled as such in the commit message, | ||
| 848 | prior to your ``Signed-off-by`` line. It is also strongly recommended, | ||
| 849 | that any patches or code within the commit also have a comment or other | ||
| 850 | indication that this code was AI generated. | ||
| 851 | |||
| 852 | For example, here is a properly formatted commit message:: | ||
| 853 | |||
| 854 | component: Add the ability to ... | ||
| 855 | |||
| 856 | AI-Generated: Uses GitHub Copilot | ||
| 857 | |||
| 858 | Signed-off-by: Your Name <your.name@domain> | ||
| 859 | |||
| 860 | The ``Signed-off-by`` line must be written by you, and not the AI helper. | ||
| 861 | As a reminder, when contributing a change, your ``Signed-off-by`` line is | ||
| 862 | required and the stipulations in the `Developer's Statement of Origin | ||
| 863 | 1.1 <https://developercertificate.org/>`__ still apply. | ||
| 864 | |||
| 865 | Additionally, you must stipulate AI contributions conform to the Linux | ||
| 866 | Foundation policy, specifically: | ||
| 867 | |||
| 868 | #. Contributors should ensure that the terms and conditions of the generative AI | ||
| 869 | tool do not place any contractual restrictions on how the tool's output can | ||
| 870 | be used that are inconsistent with the project's open source software | ||
| 871 | license, the project's intellectual property policies, or the Open Source | ||
| 872 | Definition. | ||
| 873 | |||
| 874 | #. If any pre-existing copyrighted materials (including pre-existing open | ||
| 875 | source code) authored or owned by third parties are included in the AI tool's | ||
| 876 | output, prior to contributing such output to the project, the Contributor | ||
| 877 | should confirm that they have permission from the third party | ||
| 878 | owners -- such as the form of an open source license or public domain | ||
| 879 | declaration that complies with the project's licensing policies -- to use and | ||
| 880 | modify such pre-existing materials and contribute them to the project. | ||
| 881 | Additionally, the contributor should provide notice and attribution of such | ||
| 882 | third party rights, along with information about the applicable license | ||
| 883 | terms, with their contribution. | ||
