diff options
author | Daniel Goertzen <daniel.goertzen@gmail.com> | 2019-01-06 12:57:36 -0600 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2019-01-06 12:57:36 -0600 |
commit | 1c10efc912c240901b186974b8ea4f48814c7b8b (patch) | |
tree | 25a5e4591636647e6ce9d35227737b1cfb76f14f /lib/systems | |
parent | a4250d14784e318f44d084095f9a41aa4375105b (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')
-rw-r--r-- | lib/systems/inspect.nix | 3 | ||||
-rw-r--r-- | lib/systems/platforms.nix | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/systems/inspect.nix b/lib/systems/inspect.nix index 2fcf1afe4628..e35e7b4a1ec7 100644 --- a/lib/systems/inspect.nix +++ b/lib/systems/inspect.nix @@ -9,7 +9,8 @@ let abis = lib.mapAttrs (_: abi: builtins.removeAttrs abi [ "assertions" ]) abis rec { patterns = rec { isi686 = { cpu = cpuTypes.i686; }; - isx86_64 = { cpu = cpuTypes.x86_64; }; + isx86_32 = { cpu = { family = "x86"; bits = 32; }; }; + isx86_64 = { cpu = { family = "x86"; bits = 64; }; }; isPowerPC = { cpu = cpuTypes.powerpc; }; isPower = { cpu = { family = "power"; }; }; isx86 = { cpu = { family = "x86"; }; }; diff --git a/lib/systems/platforms.nix b/lib/systems/platforms.nix index 1ed072e94645..03bfce256103 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; |