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