about summary refs log tree commit diff
path: root/lib/systems/platforms.nix
diff options
context:
space:
mode:
authorDaniel Goertzen <daniel.goertzen@gmail.com>2019-01-06 12:57:36 -0600
committerMatthew Bauer <mjbauer95@gmail.com>2019-01-06 12:57:36 -0600
commit1c10efc912c240901b186974b8ea4f48814c7b8b (patch)
tree25a5e4591636647e6ce9d35227737b1cfb76f14f /lib/systems/platforms.nix
parenta4250d14784e318f44d084095f9a41aa4375105b (diff)
add generic x86_32 support (#52634)
* add generic x86_32 support

- Add support for i386-i586.
- Add `isx86_32` predicate that can replace most uses of `isi686`.
- `isi686` is reinterpreted to mean "exactly i686 arch, and not say i585 or i386".
- This branch was used to build working i586 kernel running on i586 hardware.

* revert `isi[345]86`, remove dead code

- Remove changes to dead code in `doubles.nix` and `for-meta.nix`.
- Remove `isi[345]86` predicates since other cpu families don't have specific model predicates.

* remove i386-linux since linux not supported on that cpu
Diffstat (limited to 'lib/systems/platforms.nix')
-rw-r--r--lib/systems/platforms.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/systems/platforms.nix b/lib/systems/platforms.nix
index 1ed072e94645a..03bfce256103c 100644
--- a/lib/systems/platforms.nix
+++ b/lib/systems/platforms.nix
@@ -467,6 +467,8 @@ rec {
   };
 
   selectBySystem = system: {
+      "i486-linux" = pc32;
+      "i586-linux" = pc32;
       "i686-linux" = pc32;
       "x86_64-linux" = pc64;
       "armv5tel-linux" = sheevaplug;