summaryrefslogtreecommitdiffstats
path: root/documentation/contributor-guide
diff options
context:
space:
mode:
authorAntonin Godard <antonin.godard@bootlin.com>2025-02-12 09:50:53 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-02-18 15:47:37 +0000
commita1395636bb4d65c92511a51362b15fbb2c0e3c01 (patch)
treeda87d44b540d2e01e07c3fdd7ffc81f2143b34de /documentation/contributor-guide
parent7ea05616697eaa20341fac0fab2fda28ddf7c18e (diff)
downloadpoky-a1395636bb4d65c92511a51362b15fbb2c0e3c01.tar.gz
contributor-guide/submit-changes: add policy on AI generated code
Based on message by Richard Purdie on the yocto-docs list: https://lists.yoctoproject.org/g/docs/message/6300 Re-formatted for the Yocto Project documentation syntax. (From yocto-docs rev: a72dd13e6841b621c9e8f904dfaa440c186d2959) Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/contributor-guide')
-rw-r--r--documentation/contributor-guide/submit-changes.rst49
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
832requirement or standard for these so please check the documentation for the 832requirement or standard for these so please check the documentation for the
833layers you are contributing to. 833layers you are contributing to.
834 834
835Acceptance of AI Generated Code
836===============================
837
838The Yocto Project and OpenEmbedded follow the guidance of the Linux Foundation
839in regards to the use of generative AI tools. See:
840https://www.linuxfoundation.org/legal/generative-ai.
841
842All of the existing guidelines in this document are expected to be followed,
843including in the :doc:`recipe-style-guide`, and contributing the changes with
844additional requirements to the items in section
845:ref:`contributor-guide/submit-changes:Implement and commit changes`.
846
847All AI Generated Code must be labeled as such in the commit message,
848prior to your ``Signed-off-by`` line. It is also strongly recommended,
849that any patches or code within the commit also have a comment or other
850indication that this code was AI generated.
851
852For 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
860The ``Signed-off-by`` line must be written by you, and not the AI helper.
861As a reminder, when contributing a change, your ``Signed-off-by`` line is
862required and the stipulations in the `Developer's Statement of Origin
8631.1 <https://developercertificate.org/>`__ still apply.
864
865Additionally, you must stipulate AI contributions conform to the Linux
866Foundation 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.