aboutsummaryrefslogtreecommitdiff
blob: 5435044276dac5819ef367c3c8f6ece30fe388ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
---
nav1: downloads
nav1-show: true
nav1-weight: 9

title: 'Downloads'
inlinejs: |
  registerEvents();
  loadTabByHash();
---
<div class="row">
  <div class="col-xs-12 col-md-6">
    <div class="panel panel-default featured-panel">
      <div class="panel-body">
        <h2 class="stick-top" id="amd64"><a href="#amd64">amd64 <small>aka x86-64, x64, Intel 64</small></a></h2>

        {% include downloads/amd64.html %}
      </div>
    </div>
  </div>
  <div class="col-xs-12 col-md-6">
    <div class="panel panel-default featured-panel">
      <div class="panel-body">
        <h2 class="stick-top" id="arm64"><a href="#arm64">arm64 <small>aka AArch64</small></a></h2>

        {% include downloads/arm64.html %}
      </div>
    </div>
  </div>
</div>

<div class="alert alert-info">
  <strong>What should I download? What do I do with these files?</strong>
  <br>
  <a href="https://wiki.gentoo.org/wiki/Handbook:Main_Page" class="btn btn-info pull-right">
    <span class="fa fa-fw fa-book"></span> Gentoo Handbook
  </a>
  <p>
    Please see the <a href="https://wiki.gentoo.org/wiki/Handbook:Main_Page" class="alert-link">Gentoo Handbook</a>
    for the complete installation documentation.
    It explains how you can find the right architecture for your machine and which files you need at what stage of the installation process.<br>
    In brief, a <strong>stage 3</strong> is a minimal set of Gentoo binaries that can upgrade and expand itself (but not much more, i.e., no kernel
    or boot loader). The desktop version already contains additional programs needed in a typical desktop installation. The installation CD can be
    used to boot and, well, install Gentoo.
  </p>
</div>

<div class="row">
  <div class="col-md-12">
    <h2>Advanced choices and other architectures</h2>



    <ul class="nav nav-tabs nav-justified" id="other-arches">
      <li><a href="#amd64-advanced" data-toggle="tab"><strong>amd64</strong></a></li>
      <li><a href="#alpha" data-toggle="tab"><strong>alpha</strong></a></li>
      <li><a href="#arm" data-toggle="tab"><strong>arm</strong></a></li>
      <li><a href="#arm64-advanced" data-toggle="tab"><strong>arm64</strong></a></li>
      <li><a href="#hppa" data-toggle="tab"><strong>hppa</strong></a></li>
      <li><a href="#loong" data-toggle="tab"><strong>loong</strong></a></li>
      <li><a href="#mips" data-toggle="tab"><strong>mips</strong></a></li>
      <li><a href="#m68k" data-toggle="tab"><strong>m68k</strong></a></li>
      <li><a href="#ppc" data-toggle="tab"><strong>ppc</strong></a></li>
      <li><a href="#riscv" data-toggle="tab"><strong>riscv</strong></a></li>
      <li><a href="#s390" data-toggle="tab"><strong>s390</strong></a></li>
      <li><a href="#sparc" data-toggle="tab"><strong>sparc</strong></a></li>
      <li><a href="#x86" data-toggle="tab"><strong>x86</strong></a></li>
    </ul>

    <div class="tab-content other-arches">
      <div class="tab-pane active" id="amd64-advanced">
        <h3><a href="#amd64-advanced">amd64 &ndash; Advanced choices</a></h3>
        <div class="row">
          {% include downloads/amd64-advanced.html %}
        </div>
      </div>
      <div class="tab-pane active" id="alpha">
        <h3><a href="#alpha">alpha</a></h3>
        <div class="row">
          {% include downloads/alpha.html %}
        </div>
      </div>
      <div class="tab-pane active" id="arm">
        <h3><a href="#arm">arm</a></h3>
        <div class="row">
          {% include downloads/arm.html %}
        </div>
      </div>
      <div class="tab-pane active" id="arm64-advanced">
        <h3><a href="#arm64-advanced">arm64</a></h3>
        <div class="row">
          {% include downloads/arm64-advanced.html %}
        </div>
      </div>
      <div class="tab-pane active" id="hppa">
        <h3><a href="#hppa">hppa</a></h3>
        <div class="row">
          {% include downloads/hppa.html %}
        </div>
      </div>
      <div class="tab-pane active" id="loong">
        <h3><a href="#loong">loong</a></h3>
        <div class="row">
          {% include downloads/loong.html %}
        </div>
      </div>
      <div class="tab-pane active" id="mips">
        <h3><a href="#mips">mips</a></h3>
        <div class="row">
          {% include downloads/mips.html %}
        </div>
      </div>
      <div class="tab-pane active" id="m68k">
        <h3><a href="#m68k">m68k</a></h3>
        <div class="row">
          {% include downloads/m68k.html %}
        </div>
      </div>
      <div class="tab-pane active" id="ppc">
        <h3><a href="#ppc">ppc</a></h3>
        <div class="row">
          {% include downloads/ppc.html %}
        </div>
      </div>
      <div class="tab-pane active" id="riscv">
        <h3><a href="#riscv">riscv</a></h3>
        <div class="row">
          {% include downloads/riscv.html %}
        </div>
      </div>
      <div class="tab-pane active" id="s390">
        <h3><a href="#s390">s390</a></h3>
        <div class="row">
          {% include downloads/s390.html %}
        </div>
      </div>
      <div class="tab-pane active" id="sparc">
        <h3><a href="#sparc">sparc</a></h3>
        <div class="row">
          {% include downloads/sparc.html %}
        </div>
      </div>
      <div class="tab-pane active" id="x86">
        <h3><a href="#x86">x86</a></h3>
        <div class="row">
          {% include downloads/x86.html %}
        </div>
      </div>
    </div>
  </div>
</div>

<div class="row">
  <div class="col-md-12">
    <h2>Experimental downloads</h2>
    <p>
      For additional highly experimental downloads across all architectures
      please refer to the <a class="alert-link" href="https://distfiles.gentoo.org/experimental/">complete
      experimental downloads archive</a>. Hic sunt dracones.<sup><a href="https://en.wikipedia.org/wiki/Here_be_dragons">#</a></sup>
    </p>
  </div>
</div>

<script>
// This script block should only declare functions, and NOT run them.

// Select the right tab based on the hash.
function loadTabByHash() {
  var VALID_ARCHES = ['amd64', 'alpha', 'arm', 'arm64', 'hppa', 'loong', 'mips', 'm68k', 'ppc', 'riscv', 's390', 'sparc', 'x86'];
  var DEFAULT_ARCH = 'amd64';
  var h = window.location.hash;
  // If arch is unselected, or invalid, use amd64.
  // If it was an advanced anchor/hash in the URL, drop it for validation.
  h = h.replace(/-advanced$/,'');
  // Validate arch now (without the leading '#' or trailing -advanced.
  if (!VALID_ARCHES.includes(h.substring(1))) {
    h = '#' + DEFAULT_ARCH;
  }
  // If an advanced variant exists, we want to show it.
  // The browser will do the correct thing for "#amd64" vs "#amd64-advanced",
  // when both of them exist.
  var h1 = '#other-arches a[href="' + h + '-advanced"]';
  var h2 = '#other-arches a[href="' + h + '"]';
  var h3 = '#other-arches a:first';
  // Find the first one and show it.
  var s, h_;
  for (const s of [h1, h2, h3]) {
    h_ = $(s);
    //console.log("Loading "+ s + " " + h_);
    if(h_.length > 0) {
      h_.tab('show');
      break;
    }
  }
}

function registerEvents() {
  // If the user edits the hash in the URL, load the correct tab.
  window.addEventListener(
    'hashchange',
    () => { loadTabByHash(); },
    false
  );

  // If the user clicks on a tab, also update the hash.
  $('#other-arches').on(
    'click',
    'a[data-toggle]',
    function(event) {
        // TODO: nicer if this updates browser history, but that gets into the realm of
        // plugins.
        window.location.hash = this.getAttribute('href');
    }
  );
}
</script>