summaryrefslogtreecommitdiff
path: root/src/Propellor/Types/OS.hs
diff options
context:
space:
mode:
authorJoey Hess2016-05-27 16:46:18 -0400
committerJoey Hess2016-06-13 23:26:45 -0400
commit0577058a81a94950afd09b3ee5c65de01245710e (patch)
tree7b9deb17b5c08cff8c9d7879d3d1e2681e3c1704 /src/Propellor/Types/OS.hs
parentb7a0afbc3e814935c34e0553d3f09dfe2d2b387e (diff)
remove ANDROID
(cherry picked from commit d5d42f4fb51fee4e5eb2e17d82f1339876c8fc03)
Diffstat (limited to 'src/Propellor/Types/OS.hs')
-rw-r--r--src/Propellor/Types/OS.hs13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/Propellor/Types/OS.hs b/src/Propellor/Types/OS.hs
index 9e7a412a..9cca56fe 100644
--- a/src/Propellor/Types/OS.hs
+++ b/src/Propellor/Types/OS.hs
@@ -76,12 +76,14 @@ isStable (Stable _) = True
isStable _ = False
type Release = String
+
+-- | Many of these architecture names are based on the names used by
+-- Debian, with a few exceptions for clarity.
data Architecture
- = X86_64
- | X86_32
+ = X86_64 -- ^ 64 bit Intel, called "amd64" in Debian
+ | X86_32 -- ^ 32 bit Intel, called "i386" in Debian
| ARMHF
| ARMEL
- | ANDROID
| PPC
| PPC64
| SPARC
@@ -90,16 +92,15 @@ data Architecture
| MIPSEL
| MIPS64EL
| SH4
- | IA64
+ | IA64 -- ^ Itanium
| S390
| S390X
| ALPHA
| HPPA
| M68K
| ARM64
- | X32
+ | X32 -- ^ New Linux ABI for 64 bit CPUs using 32-bit integers. Not widely used.
deriving (Show, Eq)
--- TODO: remove ANDROID (used in GitAnnexBuilder)
architectureToDebianArchString :: Architecture -> String
architectureToDebianArchString X86_64 = "amd64"