Difference between revisions of "Template:Subarch"

From Funtoo
Jump to navigation Jump to search
 
(45 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#cargo_declare:_table=subarch|Features=List (,) of String|CFLAGS=Text|CHOST=Text|CPU_FLAGS=Text|CPU_Family=Page|Description=Text|Release_Date=Date|Subarch=Text|Title=Text}}
{{#cargo_declare:_table=subarch|Features=List (,) of String|CFLAGS=Text|CHOST=Text|CPU_Family=Page|Description=Text|Release_Date=Date|Releases=List (,) of String|Subarch=Text|Arch=Text|Title=Text}}
</noinclude><includeonly>{{#widget:AddThis}}{{#if:{{{title|}}}|
</noinclude><includeonly>{{#widget:AddThis}}{{#if:{{{title|}}}|
{{DISPLAYTITLE:Download - {{{title}}}}}
{{DISPLAYTITLE:Download - {{{title}}}}}
|
|
{{DISPLAYTITLE:Download - {{PAGENAME}}}}
{{DISPLAYTITLE:Download - {{PAGENAME}}}}
}}{{#get_web_data:url=https://upload.funtoo.org/index.xml|format=xml|use xpath|data=builds=/subarches/subarch[@name='{{{subarch|}}}']/@builds,chost=/subarches/subarch[@name='{{{subarch|}}}']/@CHOST,cflags=/subarches/subarch[@name='{{{subarch|}}}']/@CFLAGS,cpu_flags_x86=/subarches/subarch[@name='{{{subarch|}}}']/@CPU_FLAGS_X86}}{{#vardefine:builds|{{#external_value:builds}}}}{{#vardefine:cflags|{{#external_value:cflags}}}}{{#vardefine:chost|{{#external_value:chost}}}}{{#vardefine:cpu_flags_x86|{{#external_value:cpu_flags_x86}}}}{{#vardefine:subarch|{{{subarch|}}}}}
}}
{{#cargo_store:
{{#vardefine:subarch|{{{subarch|}}}}}{{#vardefine:arch|{{{arch}}}}}This section lists the CPU-optimized Funtoo Linux builds currently available for download for '''{{{subarch}}}'''. {{{Description|}}} <div style="text-align: center;"><div style="text-align: center; display: inline-block; width: 70%; min-width: 500px; margin-left: auto; margin-right: auto;">
{{#ifeq:{{{releases|}}}|next|
{{#vardefine:grab|next}}
{{DisplayBuilds/All|next}}
|{{#ifeq:{{{releases|}}}|1.4-release-std|
{{#vardefine:grab|1.4-release-std}}
{{DisplayBuilds/All|1.4-release-std}}
}}}}{{#if:{{#var:grab}}|
{{#get_web_data:url=https://build.funtoo.org/{{#var:grab}}/{{{arch}}}/{{{subarch}}}/index.xml|format=xml|use xpath|data=chost=/subarch/@CHOST,cflags=/subarch/@CFLAGS}}{{#vardefine:cflags|{{#external_value:cflags}}}}{{#vardefine:chost|{{#external_value:chost}}}}{{#cargo_store:
_table=subarch
_table=subarch
|Features={{{CPU Features|}}}
|Features={{{CPU Features|}}}
|CFLAGS={{#var:cflags|{{{CFLAGS|}}}}}
|Releases={{{releases|}}}
|CHOST={{#var:chost|{{{CHOST|}}}}}
|CFLAGS={{#var:cflags|}}
|CPU_FLAGS={{#var:cpu_flags_x86|{{{USE|}}}}}
|CHOST={{#var:chost|}}
|CPU_Family={{{CPU Family|}}}
|CPU_Family={{{CPU Family|}}}
|Description={{{Description|}}}
|Description={{{Description|}}}
|Release_Date={{{release date|}}}
|Release_Date={{{release date|}}}
|Subarch={{{subarch|}}}
|Subarch={{{subarch|}}}
|Arch={{{arch|}}}
|Title={{{title|}}}
|Title={{{title|}}}
}}{{#if:{{#var:builds}}|This section lists the CPU-optimized Funtoo Linux builds currently available for download for '''{{{subarch}}}'''. {{{Description|}}} <div style="text-align: center;"><div style="text-align: center; display: inline-block;">{{#arraymaptemplate:{{#var:builds}}|DisplayBuilds|,|}} {{Note|For information on how to verify the integrity of your stage3 tarball using {{c|gpg}}, see [[GPG Signatures]].}}</div></div>{{CDN77}} |{{{Description|}}}. No downloadable stage builds are currently available for this sub-architecture.}}
}}<p>Not sure which to choose? See [[Install/Download_and_Extract_Stage3|this portion of our Install docs]].</p><p>For information on how to verify the integrity of your stage3 tarball using {{c|gpg}}, see [[GPG Signatures]].</p></div></div>{{CDN77}}|'''No downloadable stage builds are currently available for this sub-architecture.'''
=== CPU Information ===
 
{{{Description|}}}.}}
=== Architecture and Optimization ===
 
The following settings are applied to all stages for this subarch via [[Funtoo Profiles|Funtoo subarch profiles]]:


{{TableStart}}
{{TableStart}}
<tr><td>CHOST</td><td><code>{{#var:chost|{{{CHOST|}}}}}</code></td></tr>
<tr><td>CHOST</td><td><code>{{#var:chost|{{{CHOST|}}}}}</code></td></tr>
<tr><td>CFLAGS</td><td><code>{{#var:cflags|{{{CFLAGS|}}}}}</code></td></tr>
<tr><td>CFLAGS</td><td><code>{{#var:cflags|{{{CFLAGS|}}}}}</code></td></tr>
<tr><td>CPU_FLAGS (see [[CPU_FLAGS]] for more info)</td><td>{{c|{{#var:cpu_flags_x86|{{{USE|(none)}}}}}}}</td></tr>
{{TableEnd}}
{{TableEnd}}
[[Category:Subarches]]
[[Category:Subarches]]

Latest revision as of 16:44, June 2, 2022

此模板定义表格“subarch”。 查看表格.