about summary refs log tree commit diff
path: root/lib/systems
AgeCommit message (Collapse)AuthorFilesLines
2021-02-11lib: fix typo in platforms.nixPhilipp Adolf1-1/+1
In 9c213398b312e0f0bb9cdf05090fd20223a82ad0 kernelPreferBuiltin was moved/renamed to linux-kernel.preferBuiltin. However, for armv7l-hf-multiplatform the new option was written with an uppercase P, which made the kernel build process ignore it.
2021-01-30Merge pull request #111345 from r-burns/ppc64-big-endianJohn Ericson3-2/+25
Enable PPC64 (big-endian)
2021-01-30lib.systems: add powerpc64-linuxRyan Burns3-2/+25
PPC64 supports two ABIs: ELF v1 and v2. ELFv1 is historically what GCC and most packages expect, but this is changing because musl outright does not work with ELFv1. So any distro which uses musl must use ELFv2. Many other platforms are moving to ELFv2 too, such as FreeBSD (as of v13) and Gentoo (as of late 2020). Since we use musl extensively, let's default to ELFv2. Nix gives us the power to specify this declaratively for the entire system, so ELFv1 is not dropped entirely. It can be specified explicitly in the target config, e.g. "powerpc64-unknown-linux-elfv1". Otherwise the default is "powerpc64-unknown-linux-elfv2". For musl, "powerpc64-unknown-linux-musl" must use elfv2 internally to function.
2021-01-29gcc: fix armhf targetAlexander Foremny1-0/+6
Fixes #96921
2021-01-25lib/systems: fix linuxArch for power + riscvRyan Burns1-0/+2
Looks like these got left behind in the kernelArch -> linuxArch migration. Fixes: * pkgsCross.powernv.linuxHeaders * pkgsCross.riscv64.linuxHeaders * pkgsCross.riscv32.linuxHeaders and dependees
2021-01-23Merge pull request #100687 from spease/add-newer-xcode-hashesMatthew Bauer1-8/+8
darwin: update xcode versions
2021-01-23lib: Clean up how linux and gcc config is specifiedJohn Ericson4-374/+365
Second attempt of 8929989614589ee3acd070a6409b2b9700c92d65; see that commit for details. This reverts commit 0bc275e63423456d6deb650e146120c39c1e0723.
2021-01-22Revert "lib: Clean up how linux and gcc config is specified"Jonathan Ringer3-361/+370
This is a stdenv-rebuild, and should not be merged into master This reverts commit 8929989614589ee3acd070a6409b2b9700c92d65.
2021-01-21lib: Clean up how linux and gcc config is specifiedJohn Ericson3-370/+361
The `platform` field is pointless nesting: it's just stuff that happens to be defined together, and that should be an implementation detail. This instead makes `linux-kernel` and `gcc` top level fields in platform configs. They join `rustc` there [all are optional], which was put there and not in `platform` in anticipation of a change like this. `linux-kernel.arch` in particular also becomes `linuxArch`, to match the other `*Arch`es. The next step after is this to combine the *specific* machines from `lib.systems.platforms` with `lib.systems.examples`, keeping just the "multiplatform" ones for defaulting.
2021-01-19Merge branch 'master' into add-newer-xcode-hashesSteven Pease7-49/+142
2021-01-19Update to XCode 12.3Steven Pease1-8/+8
2021-01-18Merge pull request #104648 from samueldr/cleanup/kernelMajorJohn Ericson1-8/+0
platforms.nix: Remove now unused kernelMajor
2020-12-31Merge pull request #107999 from andir/platforms-arm-trusted-platformJohn Ericson1-2/+3
lib/systems/platforms: treat missing cpu version as generic pcBase
2020-12-31lib/systems: add emulator for mmixBen Siraphob1-0/+2
2020-12-31lib/systems/platforms: treat missing cpu version as generic pcBaseAndreas Rammhold1-2/+3
Since 40e7be1 all ARM platforms that didn't have a parsed cpu version (e.g. arm-none-eabi) would be handled as armv7l-hf-multiplatform which did break building arm-trusted-platform packages for some targets (e.g. rk3399). Using pcBase as fallback, instead of armv7l-hf-multiplatform, corresponds with the behaviour we had before 40e7be1.
2020-12-23lib.systems: update processor architecture infoFabián Heredia Montiel1-7/+37
2020-12-17lib/systems: fix kernelArch for x86_64Linus Heckemann1-1/+1
IA64 (Itanium) is something completely different and certainly not what we want! x86_64 code lives in arch/x86 just like "classic" x86.
2020-12-02Merge pull request #105294 from Ericson2314/platform-config-improvementsJohn Ericson3-19/+23
Platform config improvements
2020-11-29Cross-compiling configuration for reMarkable 2 tabletTad Fisher2-0/+20
2020-11-29lib/systems/exmaple: `riscv-multiplatform` no longer needs parameterJohn Ericson2-4/+4
2020-11-29lib, binutils: Move Risc-V bfdEmulation to be by the othersJohn Ericson1-1/+0
2020-11-29lib.systems.platforms: Make selection more flexibleJohn Ericson2-14/+19
We dont have to match on exact strings if we get accessed to `parsed`. Co-authored-by: Matthew Bauer <mjbauer95@gmail.com>
2020-11-23Initial implementation of remarkable1 cross-compileBen Siraphob2-0/+19
2020-11-22platforms.nix: Remove now unused kernelMajorSamuel Dionne-Riel1-8/+0
The last use of `kernelMajor` in Nixpkgs was removed in 2018. Even then, I'm not positive it was actually in an exercised code path. AFAIUI this is now totally redundant and useless as it really was meant for the 2.4 -> 2.6 transition.
2020-11-16Merge master into staging-nextFrederik Rietdijk4-14/+28
2020-11-09Initial support for OpenRISC 1000 (or1k)Samuel Dionne-Riel4-0/+11
2020-11-09Initial implementation of mmix cross-compileBen Siraphob4-14/+28
2020-10-15Add newer xcode versionsSteven Pease1-8/+8
2020-09-20Merge branch 'staging-next' into stagingWORLDofPEACE1-25/+28
2020-09-20Merge pull request #81014 from fgaz/platforms/endiannessGabriel Ebner1-25/+28
platforms: add bigEndian and littleEndian
2020-09-20platforms: add bigEndian and littleEndianFrancesco Gazzetta1-25/+28
2020-09-12Merge staging-next into stagingFrederik Rietdijk2-3/+3
2020-09-10Merge branch 'staging' into ios-13Matthew Bauer6-4/+102
2020-09-10Merge pull request #97587 from arcnmx/arch-fixMatthew Bauer1-1/+1
Fix arch eval error
2020-09-09Fix arch eval error introduced in #61019arcnmx1-1/+1
This occurs when using a `platform.gcc.arch` that isn't one of the pre-existing hard-coded options.
2020-09-08lib.systems.examples: Bump android SDK to 21John Ericson1-2/+2
074bc78cc8749faa31729096b65f2ef51b10abeb evidently meant to do this, but forgot.
2020-09-01Merge pull request #61019 from volth/gcc.arch-amdJohn Ericson2-0/+79
platform.gcc.arch: support for AMD CPUs
2020-09-01Update architectures.nixvolth1-1/+2
2020-08-31Merge pull request #96223 from KAction/staticJohn Ericson1-0/+1
Make pkgsStatic set "static" argument to true
2020-08-27Distinguish pkgsStatic from pkgsMusl via stdenv.targetPlatformDmitry Bogatov1-0/+1
This change allows derivations to distinguish dynamic musl build and static musl build in cases where upstream build system can't detect it by itself.
2020-08-22Update architectures.nixvolth1-12/+13
2020-08-22Update architectures.nixvolth1-7/+7
2020-08-22Update architectures.nixvolth1-6/+6
2020-08-17android: update sdk, ndk to 29, 21Matthew Bauer1-2/+2
2020-08-05gcc.arch: refactor, move tables under lib/volth2-0/+77
2020-08-04Define a i686-genode system doubleEmery Hemingway1-1/+1
2020-07-21redox: add as targetAaron Janse5-1/+19
2020-07-21systems/examples.nix: update to iOS 13Matthew Bauer1-8/+8
new apps need iOS 13, so we should try to use that here
2020-03-24lib/systems: Add Genode platform definitionsEmery Hemingway4-0/+8
Add platform definitions for 64-bit ARM and x86. This is sufficient for for building Genode where a toolchain is provided as an overlay. Toolchain: git+https://git.sr.ht/~ehmry/genodepkgs?rev=14fc773ac9ecd2cbb30cb4612b284eee83d83546
2020-03-12lib: Add armv6l-none to doubles listJohn Ericson1-1/+7