Difference between revisions of "Template:EcosystemRelease/Component"

m
m

1 Usage[edit]

The EcosystemRelease/Component template returns the version of a software component delivered by an ecosystem release revision.

Usage: {{EcosystemRelease/Component | revision=<revision> | component=<component>}}

Where:

  • <revision> is the mandatory revision of the ecosystem release, for which the version of the software component is requested.
  • <component> is the mandatory software component delivered by the ecosystem release revision, for which the version of the component is requested. The possible values are:
    • Linux kernel
    • U-Boot
    • TF-A
    • OP-TEE
    • STM32CubeMPU
    • OpenEmbedded
    • Android

The returned value is:

  • a string that contains the version of the software component delivered by the ecosystem release revision.
  • an empty string, if the software component is not delivered by the ecosystem release revision.
  • "unknown revision", if <<revision> is not supported.
  • "unknown component", if <<component> is not supported.

2 Basic examples[edit]

You type You get
Linux kernel version for v1.0.0 revision requested
{{EcosystemRelease/Component | revision=1.0.0 | component=Linux kernel}}

Linux kernel v4.19-stm32mp-r1 (v4.19.9)

U-Boot version for v1.0.0 revision requested
{{EcosystemRelease/Component | revision=1.0.0 | component=U-Boot}}

U-Boot v2018.11-stm32mp-r2

TF-A version for v1.0.0 revision requested
{{EcosystemRelease/Component | revision=1.0.0 | component=TF-A}}

TF-A v2.0-stm32mp-r1

OP-TEE version for v1.0.0 revision requested
{{EcosystemRelease/Component | revision=1.0.0 | component=OP-TEE}}

OP-TEE v3.3.0-stm32mp-r1

STM32CubeMPU version for v1.0.0 revision requested
{{EcosystemRelease/Component | revision=1.0.0 | component=STM32CubeMPU }}

STM32CubeMP1 Package v1.0.0

OpenEmbedded version for v1.0.0 revision requested
{{EcosystemRelease/Component | revision=1.0.0 | component=OpenEmbedded}}

OpenEmbedded v2.6 (Thud)

Android version for v1.1.0 revision requested
{{EcosystemRelease/Component | revision=1.1.0 | component=Android}}

Android v9.0.0_r46

3 More examples[edit]

You type You get
Linux kernel version for v1.1.0 revision requested
{{EcosystemRelease/Component | revision=1.1.0 | component=Linux kernel}}

Linux kernel v4.19-stm32mp-r2 (v4.19.49)

Android version for the v1.1.0 latest revision requested
{{EcosystemRelease/Component | revision=1.1.0latest | component=Android}}

Android v9.0.0_r46 unknown revision

Android version for the v1.0.0 revision requested: Android is not supported by this ecosystem release revision
{{EcosystemRelease/Component | revision=1.0.0 | component=Android}}
U-Boot version for an unspecified revision requested
{{EcosystemRelease/Component | component=U-Boot}}

unknown revision

TF-A version for an unknown revision requested
{{EcosystemRelease/Component | revision=0.0.1 | component=TF-A}}

unknown revision

Unspecified component
{{EcosystemRelease/Component | revision=1.0.0}}

unknown component

Unknown component
{{EcosystemRelease/Component | revision=1.0.0 |  component=not supported}}

unknown component

4 Code[edit]

unknown component

<noinclude>

==Usage==
The [[Template:EcosystemRelease/Component|EcosystemRelease/Component]] template returns '''the version of a software component''' delivered by an ecosystem release revision.

 Usage: <nowiki>{{</nowiki>EcosystemRelease/Component | revision={{HighlightParam|<revision>}} | component={{HighlightParam|<component>}}}}
Where:
* {{HighlightParam|<revision>}} is the '''mandatory''' revision of the ecosystem release, for which the version of the software component is requested.
** The possible values for this parameter are available in the [[Template:EcosystemRelease/Revision|EcosystemRelease/Revision]] template.
* {{HighlightParam|<component>}} is the '''mandatory''' software component delivered by the ecosystem release revision, for which the version of the component is requested. The possible values are:
** '''Linux kernel'''
** '''U-Boot'''
** '''TF-A'''
** '''OP-TEE'''
** '''STM32CubeMPU'''
** '''OpenEmbedded'''
** '''Android'''

The returned value is:
* a string that contains the version of the software component delivered by the ecosystem release revision.
* an empty string, if the software component is not delivered by the ecosystem release revision.
* "unknown revision", if {{HighlightParam|<<revision>}} is not supported.
* "unknown component", if {{HighlightParam|<<component>}} is not supported.

==Basic examples==
{| class="st-table"
! style="width: 50%;" | You type !! You get
|-
| Linux kernel version for v1.0.0 revision requested<pre style="white-space: pre-wrap;">

{{EcosystemRelease/Component | revision=1.0.0 | component=Linux kernel}}</pre>

|
{{EcosystemRelease/Component | revision=1.0.0 | component=Linux kernel}}
|-
| U-Boot version for v1.0.0 revision requested<pre style="white-space: pre-wrap;">

{{EcosystemRelease/Component | revision=1.0.0 | component=U-Boot}}</pre>

|
{{EcosystemRelease/Component | revision=1.0.0 | component=U-Boot}}
|-
| TF-A version for v1.0.0 revision requested<pre style="white-space: pre-wrap;">

{{EcosystemRelease/Component | revision=1.0.0 | component=TF-A}}</pre>

|
{{EcosystemRelease/Component | revision=1.0.0 | component=TF-A}}
|-
| OP-TEE version for v1.0.0 revision requested<pre style="white-space: pre-wrap;">

{{EcosystemRelease/Component | revision=1.0.0 | component=OP-TEE}}</pre>

|
{{EcosystemRelease/Component | revision=1.0.0 | component=OP-TEE}}
|-
| STM32CubeMPU version for v1.0.0 revision requested<pre style="white-space: pre-wrap;">

{{EcosystemRelease/Component | revision=1.0.0 | component=STM32CubeMPU }}</pre>

|
{{EcosystemRelease/Component | revision=1.0.0 | component=STM32CubeMPU }}
|-
| OpenEmbedded version for v1.0.0 revision requested<pre style="white-space: pre-wrap;">

{{EcosystemRelease/Component | revision=1.0.0 | component=OpenEmbedded}}</pre>

|
{{EcosystemRelease/Component | revision=1.0.0 | component=OpenEmbedded}}
|-
| Android version for v1.1.0 revision requested<pre style="white-space: pre-wrap;">

{{EcosystemRelease/Component | revision=1.1.0 | component=Android}}</pre>

|
{{EcosystemRelease/Component | revision=1.1.0 | component=Android}}
|}

==More examples==
{| class="st-table"
! style="width: 50%;" | You type !! You get
|-
| Linux kernel version for v1.1.0 revision requested<pre style="white-space: pre-wrap;">

{{EcosystemRelease/Component | revision=1.1.0 | component=Linux kernel}}</pre>

|
{{EcosystemRelease/Component | revision=1.1.0 | component=Linux kernel}}
|-
| Android version for the v1.1.0latest revision requested<pre style="white-space: pre-wrap;">

{{EcosystemRelease/Component | revision=1.1.0latest | component=Android}}</pre>

|
{{EcosystemRelease/Component | revision=1.1.0latest | component=Android}}
|-
| Android version for the v1.0.0 revision requested: Android is not supported by this ecosystem release revision<pre style="white-space: pre-wrap;">

{{EcosystemRelease/Component | revision=1.0.0 | component=Android}}</pre>

|
{{EcosystemRelease/Component | revision=1.0.0 | component=Android}}
|-
| U-Boot version for an unspecified revision requested<pre style="white-space: pre-wrap;">

{{EcosystemRelease/Component | component=U-Boot}}</pre>

|
{{EcosystemRelease/Component | component=U-Boot}}
|-
| TF-A version for an unknown revision requested<pre style="white-space: pre-wrap;">

{{EcosystemRelease/Component | revision=0.0.1 | component=TF-A}}</pre>

|
{{EcosystemRelease/Component | revision=0.0.1 | component=TF-A}}
|-
| Unspecified component<pre style="white-space: pre-wrap;">

{{EcosystemRelease/Component | revision=1.0.0}}</pre>

|
{{EcosystemRelease/Component | revision=1.0.0}}

|-
| Unknown component<pre style="white-space: pre-wrap;">

{{EcosystemRelease/Component | revision=1.0.0 |  component=not supported}}</pre>

|
{{EcosystemRelease/Component | revision=1.0.0 |  component=not supported}}
|}

==Code==
{{UpdateNeededForNewRelease|Check and update if needed the software component version for each ecosystem release}}</noinclude>{{#switch: {{{component|}}}
| Linux kernel =
  {{#switch: {{{revision|}}}
  | 1.0.0 | 1.1.0 | latest = Linux kernel LTS v4.19.9
  | #default = {{Highlight|unknown revision}}
  }}
| U-Boot =
  {{#switch: {{{revision|}}}
  | 1.0.0 | 1.1.0 | latest = U-Boot v2018.11
  | #default = {{Highlight|unknown revision}}
  }}
| TF-A =
  {{#switch: {{{revision|}}}
  | 1.0.0 | 1.1.0 | latest = TF-A v2.0
  | #default = {{Highlight|unknown revision}}
  }}
| OP-TEE =
  {{#switch: {{{revision|}}}
  | 1.0.0 | 1.1.0 | latest = OP-TEE v3.3.0
  | #default = {{Highlight|unknown revision}}
  }}
| STM32CubeMPU =
  {{#switch: {{{revision|}}}
  | 1.0.0 = STM32CubeMP1 Package v1.0.0
  | 1.1.0 | latest = STM32CubeMP1 Package v1.1.0
  | #default = {{Highlight|unknown revision}}
  }}
| OpenEmbedded =
  {{#switch: {{{revision|}}}
  | 1.0.0 | 1.1.0 | latest = OpenEmbedded v2.6 (Thud)
  | #default = {{Highlight|unknown revision}}
  }}
| Android =
  {{#switch: {{{revision|}}}
  | 1.0.0 =
  | 1.1.0 | latest = Android v9.0.0_r46 
  | #default = {{Highlight|unknown revision}}
  }}
| #default = {{Highlight|unknown component}}
}}
Line 87: Line 87:
 
{{EcosystemRelease/Component | revision=1.1.0 | component=Linux kernel}}
 
{{EcosystemRelease/Component | revision=1.1.0 | component=Linux kernel}}
 
|-
 
|-
| Android version for the latest revision requested
+
| Android version for the v1.1.0 revision requested
 
<pre style="white-space: pre-wrap;">
 
<pre style="white-space: pre-wrap;">
{{EcosystemRelease/Component | revision=latest | component=Android}}
+
{{EcosystemRelease/Component | revision=1.1.0 | component=Android}}
 
</pre>
 
</pre>
 
|
 
|
{{EcosystemRelease/Component | revision=latest | component=Android}}
+
{{EcosystemRelease/Component | revision=1.1.0 | component=Android}}
 
|-
 
|-
 
| Android version for the v1.0.0 revision requested: Android is not supported by this ecosystem release revision
 
| Android version for the v1.0.0 revision requested: Android is not supported by this ecosystem release revision
Line 136: Line 136:
 
| Linux kernel =
 
| Linux kernel =
 
   {{#switch: {{{revision|}}}
 
   {{#switch: {{{revision|}}}
   | 1.0.0 | 1.1.0 | latest = Linux kernel LTS v4.19.9
+
   | 1.0.0 | 1.1.0 = Linux kernel LTS v4.19.9
 
   | #default = {{Highlight|unknown revision}}
 
   | #default = {{Highlight|unknown revision}}
 
   }}
 
   }}
 
| U-Boot =
 
| U-Boot =
 
   {{#switch: {{{revision|}}}
 
   {{#switch: {{{revision|}}}
   | 1.0.0 | 1.1.0 | latest = U-Boot v2018.11
+
   | 1.0.0 | 1.1.0 = U-Boot v2018.11
 
   | #default = {{Highlight|unknown revision}}
 
   | #default = {{Highlight|unknown revision}}
 
   }}
 
   }}
 
| TF-A =
 
| TF-A =
 
   {{#switch: {{{revision|}}}
 
   {{#switch: {{{revision|}}}
   | 1.0.0 | 1.1.0 | latest = TF-A v2.0
+
   | 1.0.0 | 1.1.0 = TF-A v2.0
 
   | #default = {{Highlight|unknown revision}}
 
   | #default = {{Highlight|unknown revision}}
 
   }}
 
   }}
 
| OP-TEE =
 
| OP-TEE =
 
   {{#switch: {{{revision|}}}
 
   {{#switch: {{{revision|}}}
   | 1.0.0 | 1.1.0 | latest = OP-TEE v3.3.0
+
   | 1.0.0 | 1.1.0 = OP-TEE v3.3.0
 
   | #default = {{Highlight|unknown revision}}
 
   | #default = {{Highlight|unknown revision}}
 
   }}
 
   }}
Line 157: Line 157:
 
   {{#switch: {{{revision|}}}
 
   {{#switch: {{{revision|}}}
 
   | 1.0.0 = STM32CubeMP1 Package v1.0.0
 
   | 1.0.0 = STM32CubeMP1 Package v1.0.0
   | 1.1.0 | latest = STM32CubeMP1 Package v1.1.0
+
   | 1.1.0 = STM32CubeMP1 Package v1.1.0
 
   | #default = {{Highlight|unknown revision}}
 
   | #default = {{Highlight|unknown revision}}
 
   }}
 
   }}
 
| OpenEmbedded =
 
| OpenEmbedded =
 
   {{#switch: {{{revision|}}}
 
   {{#switch: {{{revision|}}}
   | 1.0.0 | 1.1.0 | latest = OpenEmbedded v2.6 (Thud)
+
   | 1.0.0 | 1.1.0 = OpenEmbedded v2.6 (Thud)
 
   | #default = {{Highlight|unknown revision}}
 
   | #default = {{Highlight|unknown revision}}
 
   }}
 
   }}
Line 168: Line 168:
 
   {{#switch: {{{revision|}}}
 
   {{#switch: {{{revision|}}}
 
   | 1.0.0 =
 
   | 1.0.0 =
   | 1.1.0 | latest = Android v9.0.0_r46  
+
   | 1.1.0 = Android v9.0.0_r46  
 
   | #default = {{Highlight|unknown revision}}
 
   | #default = {{Highlight|unknown revision}}
 
   }}
 
   }}
 
| #default = {{Highlight|unknown component}}
 
| #default = {{Highlight|unknown component}}
 
}}
 
}}

Attachments

Discussions