2004-04-01 22:12:54 +02:00
|
|
|
. $stdenv/setup
|
2003-09-12 12:20:12 +02:00
|
|
|
|
2004-04-01 22:12:54 +02:00
|
|
|
# !!! hack
|
|
|
|
. $NIX_GCC/nix-support/add-flags
|
|
|
|
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
|
|
|
|
make oldconfig ARCH=um
|
|
|
|
}
|
|
|
|
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
|
|
|
|
make modules_install INSTALL_MOD_PATH=$out ARCH=um
|
|
|
|
}
|
|
|
|
installPhase=installPhase
|
|
|
|
|
|
|
|
genericBuild
|