2005-12-05 15:11:09 +01:00
|
|
|
source $stdenv/setup
|
2003-09-12 12:20:12 +02:00
|
|
|
|
2004-04-01 22:12:54 +02:00
|
|
|
# !!! hack
|
2006-10-29 02:36:17 +02:00
|
|
|
source $NIX_GCC/nix-support/add-flags.sh
|
2004-04-01 22:12:54 +02:00
|
|
|
export NIX_LDFLAGS
|
2003-09-12 12:20:12 +02:00
|
|
|
|
2004-04-01 22:12:54 +02:00
|
|
|
postUnpack() {
|
|
|
|
unp() {
|
|
|
|
bunzip2 < $umlPatch > patch
|
|
|
|
}
|
|
|
|
unpackCmd=unp
|
|
|
|
unpackFile $umlPatch
|
2004-07-29 22:20:59 +02:00
|
|
|
patches="`pwd`/patch $noAioPatch"
|
2004-04-01 22:12:54 +02:00
|
|
|
}
|
|
|
|
postUnpack=postUnpack
|
2003-09-12 12:20:12 +02:00
|
|
|
|
2004-04-01 22:12:54 +02:00
|
|
|
configurePhase() {
|
|
|
|
cp $config .config
|
2004-12-09 20:48:40 +01:00
|
|
|
yes | make oldconfig ARCH=um
|
2004-04-01 22:12:54 +02:00
|
|
|
}
|
|
|
|
configurePhase=configurePhase
|
|
|
|
|
|
|
|
buildPhase() {
|
|
|
|
make linux ARCH=um
|
|
|
|
strip linux
|
|
|
|
make modules ARCH=um
|
|
|
|
}
|
|
|
|
buildPhase=buildPhase
|
|
|
|
|
|
|
|
installPhase() {
|
|
|
|
mkdir $out
|
|
|
|
mkdir $out/bin
|
|
|
|
cp -p linux $out/bin
|
2006-10-30 14:45:48 +01:00
|
|
|
make modules_install INSTALL_MOD_PATH=$out ARCH=um DEPMOD=$modutils/sbin/depmod
|
2004-04-01 22:12:54 +02:00
|
|
|
}
|
|
|
|
installPhase=installPhase
|
|
|
|
|
|
|
|
genericBuild
|