mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
add uclibc for ARM. The scary thing, this actually works...
svn path=/nixpkgs/trunk/; revision=4318
This commit is contained in:
parent
508cd3a3e8
commit
4130324eac
9
pkgs/development/uclibc/builder.sh
Normal file
9
pkgs/development/uclibc/builder.sh
Normal file
@ -0,0 +1,9 @@
|
||||
source $stdenv/setup
|
||||
|
||||
preBuild=preBuild
|
||||
|
||||
preBuild() {
|
||||
cp $config .config
|
||||
}
|
||||
|
||||
genericBuild
|
@ -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
|
||||
|
||||
|
@ -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-";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user