add kernel headers for ARM
svn path=/nixpkgs/trunk/; revision=4316
This commit is contained in:
parent
3f3636a403
commit
0cf7a93827
24
pkgs/os-specific/linux/kernel-headers-arm/builder.sh
Normal file
24
pkgs/os-specific/linux/kernel-headers-arm/builder.sh
Normal file
@ -0,0 +1,24 @@
|
||||
. $stdenv/setup
|
||||
|
||||
|
||||
buildPhase() {
|
||||
make include/linux/version.h
|
||||
}
|
||||
|
||||
buildPhase=buildPhase
|
||||
|
||||
|
||||
installPhase() {
|
||||
mkdir $out
|
||||
mkdir $out/include
|
||||
#cd $out/include
|
||||
#ln -s asm-arm asm
|
||||
make include/asm ARCH=arm
|
||||
cp -prvd include/linux include/asm include/asm-arm include/asm-generic $out/include
|
||||
echo -n > $out/include/linux/autoconf.h
|
||||
}
|
||||
|
||||
installPhase=installPhase
|
||||
|
||||
|
||||
genericBuild
|
12
pkgs/os-specific/linux/kernel-headers-arm/default.nix
Normal file
12
pkgs/os-specific/linux/kernel-headers-arm/default.nix
Normal file
@ -0,0 +1,12 @@
|
||||
{stdenv, fetchurl}:
|
||||
|
||||
assert stdenv.system == "i686-linux";
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "linux-headers-2.6.13.4-arm";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.13.4.tar.bz2;
|
||||
md5 = "94768d7eef90a9d8174639b2a7d3f58d";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user