lib.systems: add m68k-netbsd support

m68k was recently added for Linux and none, but NetBSD also supports
m68k. Nothing will build yet, but I want to make sure we at least
encode the existence of NetBSD support for every applicable
architecture we support for other operating systems.

+7 -6
+2 -2
lib/systems/doubles.nix
··· 35 35 36 36 # NetBSD 37 37 "aarch64-netbsd" "armv6l-netbsd" "armv7a-netbsd" "armv7l-netbsd" 38 - "i686-netbsd" "mipsel-netbsd" "powerpc-netbsd" "riscv32-netbsd" 39 - "riscv64-netbsd" "x86_64-netbsd" 38 + "i686-netbsd" "m68k-netbsd" "mipsel-netbsd" "powerpc-netbsd" 39 + "riscv32-netbsd" "riscv64-netbsd" "x86_64-netbsd" 40 40 41 41 # none 42 42 "aarch64-none" "arm-none" "armv6l-none" "avr-none" "i686-none"
+4 -3
lib/systems/parse.nix
··· 127 127 128 128 # GNU build systems assume that older NetBSD architectures are using a.out. 129 129 gnuNetBSDDefaultExecFormat = cpu: 130 - if (cpu.family == "x86" && cpu.bits == 32) || 131 - (cpu.family == "arm" && cpu.bits == 32) || 132 - (cpu.family == "sparc" && cpu.bits == 32) 130 + if (cpu.family == "arm" && cpu.bits == 32) || 131 + (cpu.family == "sparc" && cpu.bits == 32) || 132 + (cpu.family == "m68k" && cpu.bits == 32) || 133 + (cpu.family == "x86" && cpu.bits == 32) 133 134 then execFormats.aout 134 135 else execFormats.elf; 135 136
+1 -1
lib/tests/systems.nix
··· 29 29 testgnu = mseteq gnu (linux /* ++ kfreebsd ++ ... */); 30 30 testillumos = mseteq illumos [ "x86_64-solaris" ]; 31 31 testlinux = mseteq linux [ "aarch64-linux" "armv5tel-linux" "armv6l-linux" "armv7a-linux" "armv7l-linux" "i686-linux" "mipsel-linux" "riscv32-linux" "riscv64-linux" "x86_64-linux" "powerpc64-linux" "powerpc64le-linux" "m68k-linux" "s390-linux" ]; 32 - testnetbsd = mseteq netbsd [ "aarch64-netbsd" "armv6l-netbsd" "armv7a-netbsd" "armv7l-netbsd" "i686-netbsd" "mipsel-netbsd" "powerpc-netbsd" "riscv32-netbsd" "riscv64-netbsd" "x86_64-netbsd" ]; 32 + testnetbsd = mseteq netbsd [ "aarch64-netbsd" "armv6l-netbsd" "armv7a-netbsd" "armv7l-netbsd" "i686-netbsd" "m68k-netbsd" "mipsel-netbsd" "powerpc-netbsd" "riscv32-netbsd" "riscv64-netbsd" "x86_64-netbsd" ]; 33 33 testopenbsd = mseteq openbsd [ "i686-openbsd" "x86_64-openbsd" ]; 34 34 testwindows = mseteq windows [ "i686-cygwin" "x86_64-cygwin" "i686-windows" "x86_64-windows" ]; 35 35 testunix = mseteq unix (linux ++ darwin ++ freebsd ++ openbsd ++ netbsd ++ illumos ++ cygwin ++ redox);