2005-12-05 15:11:09 +01:00
|
|
|
source $stdenv/setup
|
2005-11-28 23:03:13 +01:00
|
|
|
|
|
|
|
|
|
|
|
buildPhase() {
|
|
|
|
make include/linux/version.h
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
installPhase() {
|
|
|
|
mkdir $out
|
|
|
|
mkdir $out/include
|
|
|
|
#cd $out/include
|
|
|
|
#ln -s asm-arm asm
|
2005-12-31 15:31:16 +01:00
|
|
|
if test $cross = "arm-linux"; then
|
|
|
|
arch=arm
|
2005-12-31 17:28:49 +01:00
|
|
|
elif test $cross = "mips-linux"; then
|
2005-12-31 15:31:16 +01:00
|
|
|
arch=mips
|
2005-12-31 17:28:49 +01:00
|
|
|
elif test $cross = "sparc-linux"; then
|
|
|
|
arch=sparc
|
2006-01-01 03:15:33 +01:00
|
|
|
elif test $cross = "powerpc-linux"; then
|
|
|
|
arch=ppc
|
|
|
|
elif test $cross = "ppc-linux"; then
|
|
|
|
arch=ppc
|
2005-12-31 15:31:16 +01:00
|
|
|
fi
|
|
|
|
make include/asm ARCH=$arch
|
|
|
|
cp -prvd include/linux include/asm include/asm-$arch include/asm-generic $out/include
|
2005-11-28 23:03:13 +01:00
|
|
|
echo -n > $out/include/linux/autoconf.h
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
genericBuild
|