add uclibc for ARM. The scary thing, this actually works...

svn path=/nixpkgs/trunk/; revision=4318
This commit is contained in:
Armijn Hemel 2005-11-29 01:41:24 +00:00
parent 508cd3a3e8
commit 4130324eac
3 changed files with 15 additions and 2 deletions

View File

@ -0,0 +1,9 @@
source $stdenv/setup
preBuild=preBuild
preBuild() {
cp $config .config
}
genericBuild

View File

@ -47,7 +47,8 @@ ARCH_HAS_MMU=y
UCLIBC_HAS_FLOATS=y
HAS_FPU=y
# DO_C99_MATH is not set
KERNEL_SOURCE="/usr/src/linux"
#KERNEL_SOURCE="/usr/src/linux"
KERNEL_SOURCE="$(kernelHeadersArm)"
C_SYMBOL_PREFIX=""
HAVE_DOT_CONFIG=y

View File

@ -1,4 +1,4 @@
{stdenv, fetchurl}:
{stdenv, fetchurl, gcc40arm, kernelHeadersArm, binutilsArm}:
stdenv.mkDerivation {
builder = ./builder.sh;
@ -8,4 +8,7 @@ stdenv.mkDerivation {
md5 = "1ada58d919a82561061e4741fb6abd29";
};
config = ./config;
inherit kernelHeadersArm;
buildInputs = [gcc40arm binutilsArm];
makeFlags="CROSS=arm-linux-";
}