Difference between revisions of "Template:Subarch"

From Funtoo
Jump to navigation Jump to search
 
(112 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#widget:AddThis}}{{#if:{{{title|}}}|
<noinclude>
{{DISPLAYTITLE:Funtoo Linux - {{{title}}}}}
{{#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|}}}|
{{DISPLAYTITLE:Download - {{{title}}}}}
|
|
{{DISPLAYTITLE:Funtoo Linux - {{{subarch}}}}}
{{DISPLAYTITLE:Download - {{PAGENAME}}}}
}}This page describes a CPU-optimized build of Funtoo Linux for {{#if:{{{title|}}}|{{{title}}} ({{{subarch}}} subarch)|{{{subarch}}}}} [[{{{CPU Family}}}]]. {{{Description|}}}
{{#seo:
|title={{#if:{{{title|}}}|Funtoo Linux for {{{title}}}|Funtoo Linux - {{{subarch}}}}}
|keywords=funtoo,linux,build,subarch,{{{subarch}}},{{{title}}}
|description=his page describes a CPU-optimized build of Funtoo Linux for {{#if:{{{title|}}}|{{{title}}} ({{{subarch}}} subarch)|{{{subarch}}}}} [[{{{CPU Family}}}]].
}}
}}
{{#set:CPU Family={{{CPU Family|}}}|subarch={{{subarch|}}}|CHOST={{{CHOST|}}}|CFLAGS={{{CFLAGS|}}}|USE={{{USE|}}}|CPU Features={{{CPU Features|}}}|Description={{{Description|}}}|title={{{title|}}}}}
{{#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;">
== Optimizations ==
{{#ifeq:{{{releases|}}}|next|
__NOTOC__
{{#vardefine:grab|next}}
{{table|1=
{{DisplayBuilds/All|next}}
<tr><td>CHOST</td><td><code>{{{CHOST|}}}</code></td></tr>
|{{#ifeq:{{{releases|}}}|1.4-release-std|
<tr><td>CFLAGS</td><td><code>{{{CFLAGS|}}}</code></td></tr>
{{#vardefine:grab|1.4-release-std}}
<tr><td>USE</td><td>{{#if:{{{USE|}}}|<code>{{{USE}}}</code>|(none)}}</td></tr>
{{DisplayBuilds/All|1.4-release-std}}
}}
}}}}{{#if:{{#var:grab}}|
{{#vardefine:subarch|{{{subarch|}}}}}
{{#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:
{{#get_web_data:url=http://build.funtoo.org/index.xml|format=xml|use xpath|data=builds=/subarches/subarch[@name='{{{subarch|}}}']/@builds}}
_table=subarch
{{#vardefine:builds|{{#external_value:builds}}}}{{#if:{{#var:builds}}|
|Features={{{CPU Features|}}}
== Download ==
|Releases={{{releases|}}}
This section lists the Funtoo Linux builds currently available for download for '''{{{subarch}}}'''. A full list of Funtoo Linux builds can be found on the [[Subarches]] page.
|CFLAGS={{#var:cflags|}}
{{table|1=
|CHOST={{#var:chost|}}
<tr><td class="active">build</td><td class="active">variant</td><td class="active">latest build</td><td class="active">Download</td><td class="active">Browse Mirror</td></tr>
|CPU_Family={{{CPU Family|}}}
{{#arraymaptemplate:{{#var:builds}}|DisplayBuilds|,|}}}}|No downloadable stage builds are currently available for this sub-architecture.}}
|Description={{{Description|}}}
|Release_Date={{{release date|}}}
|Subarch={{{subarch|}}}
|Arch={{{arch|}}}
|Title={{{title|}}}
}}<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.'''  
 
{{{Description|}}}.}}
=== Architecture and Optimization ===
 
The following settings are applied to all stages for this subarch via [[Funtoo Profiles|Funtoo subarch profiles]]:
 
{{TableStart}}
<tr><td>CHOST</td><td><code>{{#var:chost|{{{CHOST|}}}}}</code></td></tr>
<tr><td>CFLAGS</td><td><code>{{#var:cflags|{{{CFLAGS|}}}}}</code></td></tr>
{{TableEnd}}
[[Category:Subarches]]
[[Category:Subarches]]
__NOEDITSECTION__
__NOEDITSECTION__
== Description ==
{{#ifeq:{{{CPU Family|}}}|64-bit Intel Processors|
</includeonly>
{{SubarchCompatibilityTable|{{{subarch}}}}}
}}</includeonly>

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

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