Add kernel headers for MIPS, uClibc for MIPS, binutils for MIPS, gcc for MIPS,
all in a generic way. Adding new platforms to cross compile applications for with uClibc becomes pretty trivial this way (unless you want C++ support, see 'maintainers/docs/cross.txt' for an explanation why this is so tough to build with Nix.) So, Nix starts with Linux/MIPS support in the New Year :) svn path=/nixpkgs/trunk/; revision=4467
This commit is contained in:
parent
bcfef16b46
commit
3eb9903b16
@ -489,20 +489,40 @@ rec {
|
|||||||
inherit stdenv;
|
inherit stdenv;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gcc40mips = (import ../build-support/gcc-cross-wrapper) {
|
||||||
|
nativeTools = false;
|
||||||
|
nativeGlibc = false;
|
||||||
|
cross = "mips-linux";
|
||||||
|
gcc = (import ../development/compilers/gcc-4.0-cross) {
|
||||||
|
inherit fetchurl stdenv noSysDirs;
|
||||||
|
langF77 = false;
|
||||||
|
langCC = false;
|
||||||
|
binutilsCross = binutilsMips;
|
||||||
|
kernelHeadersCross = kernelHeadersMips;
|
||||||
|
cross = "mips-linux";
|
||||||
|
};
|
||||||
|
inherit (stdenv.gcc) glibc;
|
||||||
|
binutils = binutilsMips;
|
||||||
|
inherit stdenv;
|
||||||
|
};
|
||||||
|
|
||||||
gcc40arm = (import ../build-support/gcc-cross-wrapper) {
|
gcc40arm = (import ../build-support/gcc-cross-wrapper) {
|
||||||
nativeTools = false;
|
nativeTools = false;
|
||||||
nativeGlibc = false;
|
nativeGlibc = false;
|
||||||
cross = "arm-linux";
|
cross = "arm-linux";
|
||||||
gcc = (import ../development/compilers/gcc-4.0-arm) {
|
gcc = (import ../development/compilers/gcc-4.0-cross) {
|
||||||
inherit fetchurl stdenv noSysDirs binutilsArm kernelHeadersArm;
|
inherit fetchurl stdenv noSysDirs;
|
||||||
langF77 = false;
|
langF77 = false;
|
||||||
langCC = false;
|
langCC = false;
|
||||||
|
binutilsCross = binutilsArm;
|
||||||
|
kernelHeadersCross = kernelHeadersArm;
|
||||||
|
cross = "arm-linux";
|
||||||
};
|
};
|
||||||
#inherit (stdenv.gcc) binutils glibc;
|
|
||||||
inherit (stdenv.gcc) glibc;
|
inherit (stdenv.gcc) glibc;
|
||||||
binutils = binutilsArm;
|
binutils = binutilsArm;
|
||||||
inherit stdenv;
|
inherit stdenv;
|
||||||
};
|
};
|
||||||
|
|
||||||
gcc40 = (import ../build-support/gcc-wrapper) {
|
gcc40 = (import ../build-support/gcc-wrapper) {
|
||||||
nativeTools = false;
|
nativeTools = false;
|
||||||
nativeGlibc = false;
|
nativeGlibc = false;
|
||||||
@ -1424,8 +1444,20 @@ rec {
|
|||||||
|
|
||||||
### OS-SPECIFIC
|
### OS-SPECIFIC
|
||||||
|
|
||||||
uclibc = (import ../development/uclibc) {
|
uclibcArm = (import ../development/uclibc) {
|
||||||
inherit fetchurl stdenv gcc40arm kernelHeadersArm binutilsArm;
|
inherit fetchurl stdenv;
|
||||||
|
kernelHeadersCross = kernelHeadersArm;
|
||||||
|
binutilsCross = binutilsArm;
|
||||||
|
gccCross = gcc40arm;
|
||||||
|
cross = "arm-linux";
|
||||||
|
};
|
||||||
|
|
||||||
|
uclibcMips = (import ../development/uclibc) {
|
||||||
|
inherit fetchurl stdenv;
|
||||||
|
kernelHeadersCross = kernelHeadersMips;
|
||||||
|
binutilsCross = binutilsMips;
|
||||||
|
gccCross = gcc40mips;
|
||||||
|
cross = "mips-linux";
|
||||||
};
|
};
|
||||||
|
|
||||||
dietlibc = (import ../os-specific/linux/dietlibc) {
|
dietlibc = (import ../os-specific/linux/dietlibc) {
|
||||||
@ -1461,8 +1493,14 @@ rec {
|
|||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
};
|
};
|
||||||
|
|
||||||
kernelHeadersArm = (import ../os-specific/linux/kernel-headers-arm) {
|
kernelHeadersArm = (import ../os-specific/linux/kernel-headers-cross) {
|
||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
|
cross = "arm-linux";
|
||||||
|
};
|
||||||
|
|
||||||
|
kernelHeadersMips = (import ../os-specific/linux/kernel-headers-cross) {
|
||||||
|
inherit fetchurl stdenv;
|
||||||
|
cross = "mips-linux";
|
||||||
};
|
};
|
||||||
|
|
||||||
kernel = (import ../os-specific/linux/kernel) {
|
kernel = (import ../os-specific/linux/kernel) {
|
||||||
|
Loading…
Reference in New Issue
Block a user