Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-03-07 10:08:39 +0100
committerErich Eckner <git@eckner.net>2019-03-07 10:08:39 +0100
commit71aea52cb7e88081e0a6479e002f370c763a20cf (patch)
treeb9cb31f94466fa1fd10bf28ebc92dc6f0a999e21
parent55a6bb67d37df1f273a64ea226eaf0fdfd53171e (diff)
architectures page new
-rw-r--r--architecture.php68
-rw-r--r--index.php1
2 files changed, 69 insertions, 0 deletions
diff --git a/architecture.php b/architecture.php
new file mode 100644
index 0000000..b7227d1
--- /dev/null
+++ b/architecture.php
@@ -0,0 +1,68 @@
+<?php
+
+require_once "init.php";
+
+require_once BASE . "/lib/style.php";
+
+$flags = array(
+ 'i486' => array(
+ 'CMOV' => 0,
+ 'MMX' => 0,
+ 'SSE' => 0,
+ 'SSE2' => 0
+ ),
+ 'i686' => array(
+ 'CMOV' => 1,
+ 'MMX' => 1,
+ 'SSE' => 1,
+ 'SSE2' => 0
+ ),
+ '<s>pentium4</s> (not yet implemented)' => array(
+ 'CMOV' => 1,
+ 'MMX' => 1,
+ 'SSE' => 1,
+ 'SSE2' => 1
+ )
+);
+
+print_header('Architecture Overview');
+print " <div id=\"whatever\">\n";
+print " <table class=\"results\">\n";
+print " <tr>\n";
+print " <th>\n";
+print " Architecture\n";
+print " </th>\n";
+foreach ($flags['i486'] as $flag => $dummy) {
+ print " <th>\n";
+ print " " . $flag . "\n";
+ print " </th>\n";
+}
+print " </tr>\n";
+$oddity = "odd";
+foreach ($flags as $arch => $arch_flags) {
+ print " <tr class=\"" . $oddity . "\">\n";
+ print " <td>\n";
+ print " " . $arch . "\n";
+ print " </td>\n";
+ foreach ($arch_flags as $flag => $required) {
+ print " <td>\n";
+ if ($required == 1)
+ print " <font color=\"ff0000\">\n";
+ else
+ print " <font color=\"00c000\">\n";
+ print " " . $flag . " is ";
+ if ($required == 0)
+ print "not ";
+ print "required";
+ print " </font>\n";
+ print " </td>\n";
+ }
+ print " </tr>\n";
+ if ($oddity == "odd")
+ $oddity = "even";
+ else
+ $oddity = "odd";
+}
+print " </table>\n";
+print " </div>\n";
+print_footer();
diff --git a/index.php b/index.php
index 8098d69..f47fe63 100644
--- a/index.php
+++ b/index.php
@@ -43,6 +43,7 @@ print_header("", "home");
<p>
Currently we have official packages optimized for the i686 architecture.
Also most(ly) non-graphical packages are available for i486, too.
+ Have a look at <a href="/architecture/">the required cpu flags</a> to decide which architecture is the right one for you.
Most packages from Arch Linux's
<a href="https://aur.archlinux.org/" title="Arch User Repository (AUR)">community-operated package repository</a>
are also compatible with Arch Linux 32.