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