2013-01-25 00:55:56 +04:00
# choose std kernel flavour for max RAM size support
i f e q ( i 5 8 6 , $( ARCH ) )
BIGRAM := std-pae
e l s e
BIGRAM := std-def
e n d i f
2012-05-08 18:59:57 +04:00
use/kernel :
@$( call add_feature)
2019-04-26 20:25:34 +03:00
i f e q ( , $( filter -out e 2k %,$ ( ARCH ) ) )
@$( call try,KFLAVOURS,elbrus-def)
2019-04-29 19:47:04 +03:00
e l s e
i f e q ( , $( filter -out aarch 64 armh ,$ ( ARCH ) ) )
@$( call try,KFLAVOURS,mp)
2019-05-13 13:21:21 +03:00
e l s e
i f e q ( , $( filter -out riscv 64,$ ( ARCH ) ) )
@$( call try,KFLAVOURS,un-def)
2019-04-26 20:25:34 +03:00
e l s e
2017-08-02 15:51:18 +03:00
@$( call try,KFLAVOURS,std-def)
2019-04-26 20:25:34 +03:00
e n d i f
2019-04-29 19:47:04 +03:00
e n d i f
2019-05-13 13:21:21 +03:00
e n d i f
2013-02-21 13:49:32 +04:00
2014-03-13 22:16:48 +04:00
# r8168 is a kludge, never install it by default
2013-02-21 13:49:32 +04:00
use/kernel/net :
2014-03-13 22:16:48 +04:00
@$( call add,THE_KMODULES,e1000e igb)
@$( call add,MAIN_KMODULES,r8168 rtl8168)
2014-08-29 15:36:05 +04:00
2016-03-23 11:58:44 +03:00
use/kernel/wireless : use /firmware /wireless
2014-08-29 15:36:05 +04:00
@$( call add,THE_KMODULES,bcmwl ndiswrapper)
2016-03-23 12:04:13 +03:00
use/kernel/laptop : use /firmware /laptop
2018-08-10 14:11:35 +03:00
@$( call add,THE_KMODULES,omnibook tp_smapi)
2016-03-23 12:04:13 +03:00
use/kernel/desktop :
2018-08-10 14:11:35 +03:00
@$( call add,THE_KMODULES,lirc v4l)
2018-08-10 14:15:42 +03:00
use/kernel/server :
@$( call add,THE_KMODULES,ipset kvm)
2019-05-07 19:17:55 +03:00
# for vm targets
use/kernel/initrd-setup : use /kernel
@$( call add,VM_INITRDFEATURES,add-modules compress cleanup)
@$( call try,VM_FSTYPE,ext4)
@$( call add,VM_INITRDMODULES,$$ ( VM_FSTYPE) )
i f e q ( , $( filter -out i 586 x 86_ 64,$ ( ARCH ) ) )
@$( call add,VM_INITRDFEATURES,qemu)
@$( call add,VM_INITRDMODULES,ata_piix)
e n d i f
i f e q ( , $( filter -out e 2k %,$ ( ARCH ) ) )
@$( call add,VM_INITRDFEATURES,usb)
e n d i f
i f e q ( , $( filter -out i 586 x 86_ 64 aarch 64 armh ,$ ( ARCH ) ) )
@$( call add,VM_INITRDMODULES,ahci sd_mod)
@$( call add,VM_INITRDMODULES,nvme nvme-core)
@$( call add,VM_INITRDMODULES,virtio-scsi virtio-blk virtio-rng)
e n d i f
i f e q ( , $( filter -out aarch 64 armh ,$ ( ARCH ) ) )
@$( call add,VM_INITRDMODULES,bcm2835 sunxi-mmc)
@$( call add,VM_INITRDMODULES,nvmem_rockchip_efuse)
@$( call add,VM_INITRDMODULES,virtio-mmio)
e n d i f
i f e q ( , $( filter -out aarch 64,$ ( ARCH ) ) )
@$( call add,VM_INITRDMODULES,meson-gx-mmc)
@$( call add,VM_INITRDMODULES,nvmem_meson_efuse)
e n d i f
i f e q ( , $( filter -out armh ,$ ( ARCH ) ) )
@$( call add,VM_INITRDMODULES,sdhci_dove sdhci_esdhc_imx)
e n d i f
@$( call xport,VM_INITRDMODULES)
@$( call xport,VM_INITRDFEATURES)