nixpkgs/pkgs/misc/uml/builder.sh
Eelco Dolstra 769c44da98 * Get User Mode Linux to compile again:
- Hack to make it work with the latest host kernel headers
    (2.6.18.1).
  - Don't call depmod impurily, rather use oldskool modutils.
  - modutils: use the final version, and use GCC 3.4 to compile it
    (4.1 doesn't work).

svn path=/nixpkgs/trunk/; revision=6908
2006-10-30 13:45:48 +00:00

39 lines
683 B
Bash

source $stdenv/setup
# !!! hack
source $NIX_GCC/nix-support/add-flags.sh
export NIX_LDFLAGS
postUnpack() {
unp() {
bunzip2 < $umlPatch > patch
}
unpackCmd=unp
unpackFile $umlPatch
patches="`pwd`/patch $noAioPatch"
}
postUnpack=postUnpack
configurePhase() {
cp $config .config
yes | 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 DEPMOD=$modutils/sbin/depmod
}
installPhase=installPhase
genericBuild