THE SPDX WIKI IS NO LONGER ACTIVE. ALL CONTENT HAS BEEN MOVED TO https://github.com/spdx

Difference between revisions of "Technical Team/Use Cases/2.0/Build System Yocto"

From SPDX Wiki
Jump to: navigation, search
Line 1: Line 1:
<p><strong><br /></strong></p><p><strong>Title:</strong>&nbsp; Yocto Build System</p><p><strong>Background:</strong>&nbsp;</p><p>Note: This is not a detailed background. You are encouraged&nbsp; to read up on the Ycoto Project by using the following link:&nbsp; <a href="http://www.yoctoproject.org/docs/1.0/yocto-quick-start/yocto-project-qs.html">http://www.yoctoproject.org/docs/1.0/yocto-quick-start/yocto-project-qs.html</a></p><p>The Yocto Project provides a build system which can be used to provide, as an example, a file system/kernel/boot loader image that can be downloaded onto a device and executed. When Yocto builds a package the package source can come from various sources such as source code control system like GIT, a tarball, patches and so forth. Entities providng a Yocto build for their hardware may also be providing pacthes for the package.Whenever a build is executed, it is possible that the files in a package are updated (added, modified, removed, etc).</p><p>Yocto uses recipes to build packages. These recipes do contain a License field. The current short names do not match SPDX short names and likely will not. It was rather difficult to get alignment on the current ones used. There is talk on the Yocto project about converting the Yocto short names into SPDX ones.&nbsp;</p><p><strong>Primary Actors:</strong></p><p>Yocto User: Receives a Yocto build for a device. Executes the build.</p><p>Package Maintainer: These are upstream projects that a Yocto based build consumes. This upstream project could be a company that provides a package as well. A Package Maintainer could be viewed as having a secondary interest in this use case as their package may be consumed by a Yocto build even though they as packages maintainers have no vested interest in Yocto.</p><p>the Yocto Project: Provides the Yocto build system.</p><p>Build System Provider: They provide a&nbsp; Yocto based build, for example for their product. They may also provide patches to Packages that the recipes pull or may even add their own packages.</p><p><strong>Goal in Context:</strong>&nbsp; To execute a Yocto based build and generate an image for a hardware device or simulator&nbsp; and to have SPDX documents that describe the licensing for all copyrightable artifacts used to generate that image and for the build system as well.</p><p><strong>Stakeholders and Interests:</strong>&nbsp;</p><p>Yocto User:</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A. To receive accurate and clear information of licensing for all copyrightable</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; elements used in the build and for the build system.</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; B. To be able to comply easily with licenses for all copyrightable elements used in</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;the build and the build system.</p><p><br /> 2. Package Maintainer:</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A. To communicate the license information for their package.</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; B. To have their licenses respected.</p><p>&nbsp;</p><p>3. the Yocto Project:</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A. To communicate the license information for their build system and <span style="text-decoration: underline;">the licensing of each package</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (currently via the license field in a recipe).</p><p>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;B. To have their licenses respected.</p><p>&nbsp;</p><p>4. Build System Provider:</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A. To communicate the licensing information for the build they are providing.</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; B. To comply with all the licenses used in the build the system they are providing.</p><p>&nbsp;</p><p><strong>Preconditions:</strong></p><ol><li>A yocoto build is created.</li><li>Packages used in the Yocoto build have SPDX documents describing the copyrigthable elements of the package.</li><li>A patch for a package used in the build is created.</li></ol><p>&nbsp;</p><p><strong>Main Success Scenario:</strong> A user executing a Yocto based build gets SPDX documents that describe the licensing for all copyrightable elements that were used to create the build and are the result of a build.</p><p><strong>Failed End Condition:</strong> Inaccurate or incomplete licensing information is provided for all packages used in the build and/or for the Yocto build system.</p><p><strong>Trigger:</strong></p><p>A Yocto user&nbsp;executes a build.</p><p>&nbsp;</p><p>Note: I forgot a point around RPMs when doing this and need to follow up again with the Yocto Project.</p>
+
<p><strong><br /></strong></p><p><strong>Title:</strong>&nbsp; Yocto Build System</p><p><strong>Background:</strong>&nbsp;</p><p>Note: This is not a detailed background. You are encouraged&nbsp; to read up on the Yocto Project by using the following link:&nbsp; <a href="http://www.yoctoproject.org/docs/1.0/yocto-quick-start/yocto-project-qs.html">http://www.yoctoproject.org/docs/1.0/yocto-quick-start/yocto-project-qs.html</a></p><p>The Yocto Project provides a build system which can be used to provide, as an example, a file system/kernel/boot loader image that can be downloaded onto a device and executed. When Yocto builds a package the package source can come from various sources such as source code control system like GIT, a tarball, patches and so forth. Entities providng a Yocto build for their hardware may also be providing pacthes for the package.Whenever a build is executed, it is possible that the files in a package are updated (added, modified, removed, etc).</p><p>Yocto uses recipes to build packages. These recipes do contain a License field. The current short names do not match SPDX short names and likely will not. It was rather difficult to get alignment on the current ones used. There is talk on the Yocto project about converting the Yocto short names into SPDX ones.&nbsp;</p><p><strong>Primary Actors:</strong></p><p>Yocto User: Receives a Yocto build for a device. Executes the build.</p><p>Package Maintainer: These are upstream projects that a Yocto based build consumes. This upstream project could be a company that provides a package as well. A Package Maintainer could be viewed as having a secondary interest in this use case as their package may be consumed by a Yocto build even though they as packages maintainers have no vested interest in Yocto.</p><p>the Yocto Project: Provides the Yocto build system.</p><p>Build System Provider: They provide a&nbsp; Yocto based build, for example for their product. They may also provide patches to Packages that the recipes pull or may even add their own packages.</p><p><strong>Goal in Context:</strong>&nbsp; To execute a Yocto based build and generate an image for a hardware device or simulator&nbsp; and to have SPDX documents that describe the licensing for all copyrightable artifacts used to generate that image and for the build system as well.</p><p><strong>Stakeholders and Interests:</strong>&nbsp;</p><p>Yocto User:</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A. To receive accurate and clear information of licensing for all copyrightable</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; elements used in the build and for the build system.</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; B. To be able to comply easily with licenses for all copyrightable elements used in</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;the build and the build system.</p><p><br /> 2. Package Maintainer:</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A. To communicate the license information for their package.</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; B. To have their licenses respected.</p><p>&nbsp;</p><p>3. the Yocto Project:</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A. To communicate the license information for their build system and <span style="text-decoration: underline;">the licensing of each package</span></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (currently via the license field in a recipe).</p><p>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;B. To have their licenses respected.</p><p>&nbsp;</p><p>4. Build System Provider:</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A. To communicate the licensing information for the build they are providing.</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; B. To comply with all the licenses used in the build the system they are providing.</p><p>&nbsp;</p><p><strong>Preconditions:</strong></p><ol><li>A yocoto build is created.</li><li>Packages used in the Yocoto build have SPDX documents describing the copyrigthable elements of the package.</li><li>A patch for a package used in the build is created.</li></ol><p>&nbsp;</p><p><strong>Main Success Scenario:</strong> A user executing a Yocto based build gets SPDX documents that describe the licensing for all copyrightable elements that were used to create the build and are the result of a build.</p><p><strong>Failed End Condition:</strong> Inaccurate or incomplete licensing information is provided for all packages used in the build and/or for the Yocto build system.</p><p><strong>Trigger:</strong></p><p>A Yocto user&nbsp;executes a build.</p><p>&nbsp;</p><p>Note: I forgot a point around RPMs when doing this and need to follow up again with the Yocto Project.</p>

Revision as of 15:07, 6 June 2012


Title:  Yocto Build System

Background: 

Note: This is not a detailed background. You are encouraged  to read up on the Yocto Project by using the following link:  <a href="http://www.yoctoproject.org/docs/1.0/yocto-quick-start/yocto-project-qs.html">http://www.yoctoproject.org/docs/1.0/yocto-quick-start/yocto-project-qs.html</a>

The Yocto Project provides a build system which can be used to provide, as an example, a file system/kernel/boot loader image that can be downloaded onto a device and executed. When Yocto builds a package the package source can come from various sources such as source code control system like GIT, a tarball, patches and so forth. Entities providng a Yocto build for their hardware may also be providing pacthes for the package.Whenever a build is executed, it is possible that the files in a package are updated (added, modified, removed, etc).

Yocto uses recipes to build packages. These recipes do contain a License field. The current short names do not match SPDX short names and likely will not. It was rather difficult to get alignment on the current ones used. There is talk on the Yocto project about converting the Yocto short names into SPDX ones. 

Primary Actors:

Yocto User: Receives a Yocto build for a device. Executes the build.

Package Maintainer: These are upstream projects that a Yocto based build consumes. This upstream project could be a company that provides a package as well. A Package Maintainer could be viewed as having a secondary interest in this use case as their package may be consumed by a Yocto build even though they as packages maintainers have no vested interest in Yocto.

the Yocto Project: Provides the Yocto build system.

Build System Provider: They provide a  Yocto based build, for example for their product. They may also provide patches to Packages that the recipes pull or may even add their own packages.

Goal in Context:  To execute a Yocto based build and generate an image for a hardware device or simulator  and to have SPDX documents that describe the licensing for all copyrightable artifacts used to generate that image and for the build system as well.

Stakeholders and Interests: 

Yocto User:

       A. To receive accurate and clear information of licensing for all copyrightable

            elements used in the build and for the build system.

       B. To be able to comply easily with licenses for all copyrightable elements used in

            the build and the build system.


2. Package Maintainer:

       A. To communicate the license information for their package.

       B. To have their licenses respected.

 

3. the Yocto Project:

       A. To communicate the license information for their build system and the licensing of each package

           (currently via the license field in a recipe).

       B. To have their licenses respected.

 

4. Build System Provider:

      A. To communicate the licensing information for the build they are providing.

      B. To comply with all the licenses used in the build the system they are providing.

 

Preconditions:

  1. A yocoto build is created.
  2. Packages used in the Yocoto build have SPDX documents describing the copyrigthable elements of the package.
  3. A patch for a package used in the build is created.

 

Main Success Scenario: A user executing a Yocto based build gets SPDX documents that describe the licensing for all copyrightable elements that were used to create the build and are the result of a build.

Failed End Condition: Inaccurate or incomplete licensing information is provided for all packages used in the build and/or for the Yocto build system.

Trigger:

A Yocto user executes a build.

 

Note: I forgot a point around RPMs when doing this and need to follow up again with the Yocto Project.