summary refs log tree commit diff
path: root/pkgs/misc/uml/builder.sh
blob: f2a615494f58de0b721ad033a67beb90d702fdf2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
. $stdenv/setup

# !!! hack
. $NIX_GCC/nix-support/add-flags
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
}
installPhase=installPhase

genericBuild