summary refs log tree commit diff
path: root/pkgs/top-level/platforms.nix
blob: 8664b6d577874624a9a4a1e8e71768b53b87f8ec (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{ system, pkgs}:
with pkgs;
{
  pc = assert system == "i686-linux" || system == "x86_64-linux"; {
    name = "pc";
    uboot = null;
    kernelBaseConfig = "defconfig";
    kernelExtraConfig =
      ''
        # Virtualisation (KVM, Xen...).
        PARAVIRT_GUEST y
        KVM_CLOCK y
        KVM_GUEST y
        XEN y
        KSM y

        # We need 64 GB (PAE) support for Xen guest support.
        HIGHMEM64G? y
      '';
  };

  sheevaplug = assert system == "armv5tel-linux"; {
    name = "sheevaplug";
    kernelBaseConfig = "kirkwood_defconfig";
    kernelArch = "arm";
    kernelExtraConfig =
      ''
        # Fail to build
        DRM n
        SCSI_ADVANSYS n
        USB_ISP1362_HCD n
        SND_SOC n
        SND_ALI5451 n
        FB_SAVAGE n
        SCSI_NSP32 n
        ATA_SFF n
        SUNGEM n
        IRDA n
        ATM_HE n
        SCSI_ACARD n
        BLK_DEV_CMD640_ENHANCED n
      '';
    inherit uboot;
  };

  versatileARM = assert system == "armv5tel-linux"; {
    name = "versatileARM";
    kernelBaseConfig = "versatile_defconfig";
    kernelArch = "arm";
    uboot = null;
  };
}