about summary refs log tree commit diff
path: root/lib/systems
AgeCommit message (Collapse)AuthorFilesLines
2019-09-02Merge branch 'master' into stagingVladimír Čunát3-2/+14
2019-09-02Merge remote-tracking branch 'upstream/master' into js-unknown-ghcjsJohn Ericson7-91/+182
2019-09-02lib: Further clean up systems listJohn Ericson1-3/+3
2019-09-02Merge lib sort into feature/js-unknown-ghcjsJohn Ericson1-3/+3
2019-09-02lib: Sort platform predicatesJohn Ericson1-2/+2
2019-09-02Merge remote-tracking branch 'upstream/master' into feature/js-unknown-ghcjsJohn Ericson7-91/+182
2019-09-02Add support for `js-unknown-ghcjs`Moritz Angermann3-4/+17
This adds enough logic to nixpkgs to support the `js-unknown-ghcjs` triple.
2019-08-28treewide: remove redundant recvolth3-11/+11
2019-08-26treewide: remove redundant quotesvolth2-22/+22
2019-07-25Add RISC-V embedded crossSystemsJay Kruer2-1/+13
2019-07-10Revert "Revert "systems/doubles.nix: add Apple doubles""Matthew Bauer1-1/+3
This reverts commit ce2f74df2cade57e74c235292c8b074281903e71. Doubles are treated as -darwin here, to provide some consistency. There is some ambiguity between “x86_64-darwin” and “i686-darwin” which could refer to binaries linked between iOS simulator or real macOS binaries. useiOSPrebuilt can be used to determine which to use, however.
2019-07-10Revert "systems/doubles.nix: add Apple doubles"Frederik Rietdijk1-3/+1
The lib tests need to be fixed as well. This unbreaks the tarball job. This reverts commit 00ba557856d6217121e50ea69c251e9458d9dc08.
2019-07-08systems/doubles.nix: add Apple doublesMatthew Bauer1-1/+3
These are used in cross-compilation to iOS devices and simulators. Fallout from #60349.
2019-06-16treewide: remove unused variables (#63177)volth1-1/+1
* treewide: remove unused variables * making ofborg happy
2019-06-04systems: fix lib-testsMatthew Bauer2-0/+3
These were broken by the added system doubles. This just adds those to the lib-tests.
2019-06-04systems: fixup from last commitMatthew Bauer1-1/+1
it’s powerpc-none not ppc-none
2019-06-04systems: add missing doublesMatthew Bauer1-0/+4
in https://github.com/NixOS/nixpkgs/pull/60349, the attr handling was removed. This means we rely on these double values for determing what we are compatible with. This adds some of the missing doubles to this list. https://hydra.nixos.org/eval/1523389#tabs-removed
2019-06-04Merge pull request #60349 from matthewbauer/fix-60345Matthew Bauer3-40/+6
check-meta: use system tuple in platforms
2019-06-04systems: allow passing in string for cross/localSystemMatthew Bauer1-1/+3
This makes things a little bit more convenient. Just pass in like: $ nix-build ’<nixpkgs>’ -A hello --argstr localSystem x86_64-linux --argstr crossSystem aarch64-linux
2019-06-04systems: remove forMetaMatthew Bauer2-39/+0
This is unused now.
2019-05-05Adds pkgsCross.gnu32 and pkgsCross.gnu64 platformsLionello Lunesu1-0/+3
2019-04-30systems: add riscv doubleMatthew Bauer1-0/+3
This was never listed in doubles.nix! Not sure why?
2019-04-23Merge pull request #56555 from matthewbauer/wasmMatthew Bauer6-5/+25
Initial WebAssembly/WASI cross-compilation support
2019-04-23wasmtime: init and use for emulationMatthew Bauer1-2/+2
This isn’t really an "emulator" but it’s the closest concept we have right now.
2019-04-23wasm: don’t assume muslMatthew Bauer1-1/+1
2019-04-23wasm: init cross targetMatthew Bauer6-4/+24
Adds pkgsCross.wasm32 and pkgsCross.wasm64. Use it to build Nixpkgs with a WebAssembly toolchain. stdenv/cross: use static overlay on isWasm isWasm doesn’t make sense dynamically linked.
2019-04-20cc-wrapper: make machine configuration configurableMatthew Bauer1-18/+18
It is useful to make these dynamic and not bake them into gcc. This means we don’t have to rebuild gcc to change these values. Instead, we will pass cflags to gcc based on platform values. This was already done hackily for android gcc (which is multi-target), but not for our own gccs which are single target. To accomplish this, we need to add a few things: - add ‘arch’ to cpu - add NIX_CFLAGS_COMPILE_BEFORE flag (goes before args) - set -march everywhere - set mcpu, mfpu, mmode, and mtune based on targetPlatform.gcc flags cc-wrapper: only set -march when it is in the cpu type Some architectures don’t have a good mapping of -march. For instance POWER architecture doesn’t support the -march flag at all! https://gcc.gnu.org/onlinedocs/gcc/RS_002f6000-and-PowerPC-Options.html#RS_002f6000-and-PowerPC-Options
2019-04-20release-cross: remove alpha-elf targetMatthew Bauer1-5/+0
This doesn’t appear to ever have worked. binutils doesn’t seem to support the alpha-elf target at all. It doesn’t make sense to keep this around. https://hydra.nixos.org/build/92403855/nixlog/1/tail
2019-04-19kernel-headers: infer ARCH from config tripleMatthew Bauer1-0/+7
This makes us less reliant on the systems/examples.nix. You should be able to cross compile with just your triple: $ nix build --arg crossSystem '{ config = "armv6l-unknown-linux-gnueabi"; }' stdenv
2019-04-19systems: correct qemu architecturesMatthew Bauer1-3/+2
ppc64le and ppc64 are different targets in the configure script. We can’t use the same one. TODO: canonicalize similar ones based on qemu’s configure script.
2019-04-19systems: fix emulator identityMatthew Bauer1-1/+1
Squashed to fix shell quoting, thanks @Ericson2314
2019-04-19systems/parse.nix: fixup arm compatibilitiesMatthew Bauer1-13/+33
2019-04-16androidndk-pkgs: Remove -mfloat flagKen Micklas1-1/+0
2019-04-10systems: remove android armv5te platformMatthew Bauer1-10/+0
this isn’t useful any more because the ndk we use no longer supports it.
2019-04-10androidndk: fixup messMatthew Bauer1-8/+0
New android ndk (18) now uses clang. We were going through the wrapper that are provided. This lead to surprising errors when building. Ideally we could use the llvm linker as well, but this leads to errors as many packages don’t support the llvm linker.
2019-04-02Merge branch 'master' into staging-nextVladimír Čunát4-0/+8
Hydra nixpkgs: ?compare=1512490
2019-03-25msp430: include vendor headers with stdenvAaron Lindsay1-0/+1
2019-03-25systems: support TI MSP430 microcontrollersAaron Lindsay3-0/+7
2019-03-01Merge staging-next into stagingFrederik Rietdijk2-3/+66
2019-02-26Merge pull request #56197 from matthewbauer/cross-fixes3Matthew Bauer1-1/+1
Android and related cross fixes
2019-02-26cross/tests: add llvm-based testsMatthew Bauer1-1/+1
2019-02-26Merge pull request #56393 from matthewbauer/is-compatibleMatthew Bauer2-2/+65
systems: add isCompatible handling
2019-02-26netbsd: add cross targetMatthew Bauer2-0/+8
2019-02-25systems: add “emultator” for wasmMatthew Bauer1-0/+2
v8 can run any wasm bytecode
2019-02-24mesa: armv7a-linux supports mesaMatthew Bauer1-1/+1
2019-02-21systems: add isCompatible handlingMatthew Bauer2-2/+63
2019-02-20alpha-embedded: isAlpha code Added (#56090)Vincent Weisner1-0/+1
Adds isAlpha to stdenv.<platform> flags.
2019-02-01Merge branch 'master' into staging-nextVladimír Čunát1-0/+1
Comments on conflicts: - llvm: d6f401e1 vs. 469ecc70 - docs for 6 and 7 say the default is to build all targets, so we should be fine - some pypi hashes: they were equivalent, just base16 vs. base32
2019-01-27systems/default.nix: wasm in platform.uname.systemMatthew Bauer1-0/+1
This adds the "Wasm" system to platform.uname.system. This is used in CMake infrastructure.
2019-01-06add generic x86_32 support (#52634)Daniel Goertzen2-1/+4
* 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