Skip to content

Commit

Permalink
rm: factory definition: Describe a list of variables
Browse files Browse the repository at this point in the history
Signed-off-by: Daiane Angolini <daiane.angolini@foundries.io>
  • Loading branch information
angolini committed Sep 5, 2023
1 parent 1e90eed commit 6a9aeee
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions source/reference-manual/factory/factory-definition.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ repository in the **factory-config.yml** file.
notify
------

Configures the users who receive an email with the build notification.

.. sidebar:: ``notify:`` Section Example

.. code-block:: yaml
Expand Down Expand Up @@ -50,6 +52,9 @@ notify:
lmp
---

Configures the LmP aspects to this factory, including images, distro and machine names.
Variables to be used with the metadata and artifacts.

.. sidebar:: ``lmp:`` Section Example

.. code-block:: yaml
Expand Down Expand Up @@ -169,11 +174,42 @@ lmp:

**Default:** ``mfgtool-files`` |br| (from `meta-lmp-base/recipes-support/mfgtool-files/mfgtool-files_0.1.bb <https://github.com/foundriesio/meta-lmp/blob/main/meta-lmp-base/recipes-support/mfgtool-files/mfgtool-files_0.1.bb>`_)

Variables
^^^^^^^^^

* **DEV_MODE**:
This is a flexible variable used to configure the source code
into development mode. The development mode should be defined
by the user. Reference: :ref:`ref-dev-mode`.
* **BUILD_SDK**:
With this variable set to ``1`` the SDK artifact will be part
of the build. Reference: :ref:`ref-building-sdk`.
* **DISABLE_GPLV3**:
When set to ``1``, this variable configures the source code
to avoid the LmP default packages under GPLv3.
Reference: :ref:`ref-remove-gplv3`.
* **ENABLE_PTEST**:
When set to ``1`` this variable creates an artifact based on the
image being built with the pattern ``<main tag>-ptest``. This
image includes the available Ptest for each installed package.
* **DISTRO**:
Define the distro being used. Reference :ref:`ref-linux-distro`.
* **TUF_TARGETS_EXPIRE**:
Is used to change the default target expiration date (default 1y).
* **SSTATE_CACHE_MIRROR**:
It defaults to the directory mounted on the SDK build container

Check warning on line 200 in source/reference-manual/factory/factory-definition.rst

View workflow job for this annotation

GitHub Actions / runner / vale

[vale] reported by reviewdog 🐶 [Fio-docs.sentence-length] Aim for sentences no longer than 25 words Raw Output: {"message": "[Fio-docs.sentence-length] Aim for sentences no longer than 25 words", "location": {"path": "source/reference-manual/factory/factory-definition.rst", "range": {"start": {"line": 200, "column": 16}}}, "severity": "INFO"}
and if this directory exists it is used as the source for the
shared state cache (sstate-cache) mirror. When the directory does
not exist the ``lmp-manifest`` value is used and should point to
the public HTTP shared state cache.

.. _def-containers:

containers
----------

Define the container's configuration, including some image configuration and target architecture.

.. sidebar:: ``containers:`` Section Example

.. code-block:: yaml
Expand Down
2 changes: 2 additions & 0 deletions source/reference-manual/linux/linux-oss-compliance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ This error means, for image `lmp-factory-image`, a long list of packages under
GPLv3 are being installed, for example ``bash``. The goal now to clear the image
from those dependencies.

.. _ref-remove-gplv3:

How to remove packages under GPLv3 family license
-------------------------------------------------

Expand Down

0 comments on commit 6a9aeee

Please sign in to comment.