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
2019-05-13 13:21:21 +03:00
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-05-13 13:21:21 +03:00
e n d i f
2019-11-09 16:44:03 +03:00
@$( call xport,KFLAVOURS)
2013-02-21 13:49:32 +04:00
2020-09-05 22:51:25 +03:00
use/kernel/latest : use /kernel ; @:
i f e q ( , $( filter -out aarch 64 armh i 586 ppc 64le x 86_ 64,$ ( ARCH ) ) )
@$( call set,KFLAVOURS,un-def)
e n d i f
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 :
2021-02-14 18:14:08 +03:00
@$( call add,THE_KMODULES,e1000e)
2020-11-01 19:21:47 +03:00
@$( call add,THE_KMODULES,r8125)
2014-03-13 22:16:48 +04:00
@$( 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
2021-04-04 05:07:45 +03:00
@$( call add,THE_KMODULES,bcmwl staging)
@$( call add,THE_KMODULES,rtl8188fu rtl8192eu rtl8723de rtl8812au)
@$( call add,THE_KMODULES,rtl8821ce rtl8821cu rtl88x2bu rtl8723bu)
2016-03-23 12:04:13 +03:00
2021-02-14 18:14:08 +03:00
use/kernel/laptop : use /firmware /laptop ; @:
2016-03-23 12:04:13 +03:00
use/kernel/desktop :
2021-02-14 18:14:08 +03:00
@$( call add,THE_KMODULES,v4l)
2018-08-10 14:15:42 +03:00
2021-02-14 18:14:08 +03:00
use/kernel/drm : use /drm ; @:
2019-10-31 17:06:38 +03:00
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 try,VM_FSTYPE,ext4)
@$( call add,VM_INITRDMODULES,$$ ( VM_FSTYPE) )
2021-05-11 22:30:28 +03:00
@$( call add,VM_INITRDMODULES,ahci.ko ahci_platform.ko sd_mod.ko)
@$( call add,VM_INITRDMODULES,usbhid.ko usbkbd.ko)
@$( call add,VM_INITRDMODULES,evdev.ko)
@$( call add,VM_INITRDMODULES,drivers/pci)
@$( call add,VM_INITRDMODULES,drivers/mmc drivers/usb/host)
@$( call add,VM_INITRDMODULES,drivers/usb/storage drivers/nvmem)
@$( call add,VM_INITRDMODULES,drivers/virtio)
@$( call add,VM_INITRDMODULES,drm/virtio)
2021-05-31 22:03:17 +03:00
@$( call add,VM_INITRDMODULES,virtio-scsi.ko virtio_blk.ko virtio-rng virtio_net.ko virtio-gpu.ko)
@$( call add,VM_INITRDMODULES,virtio-mmio.ko virtio_pci.ko virtio_console.ko virtio_input.ko)
2019-05-07 19:17:55 +03:00
i f e q ( , $( filter -out i 586 x 86_ 64,$ ( ARCH ) ) )
2021-05-11 22:30:28 +03:00
@$( call add,VM_INITRDMODULES,ata_piix.ko)
2019-05-07 19:17:55 +03:00
e n d i f
2021-02-16 16:12:23 +03:00
i f e q ( , $( filter -out i 586 x 86_ 64 aarch 64 armh e 2k % ppc 64le mipsel ,$ ( ARCH ) ) )
2019-05-07 19:17:55 +03:00
@$( call add,VM_INITRDFEATURES,usb)
e n d i f
2021-02-16 16:12:23 +03:00
i f n e q ( , $( filter -out e 2k % riscv 64 mipsel ,$ ( ARCH ) ) )
2020-01-20 13:55:31 +03:00
@$( call add,VM_INITRDFEATURES,qemu)
2020-06-30 17:00:51 +03:00
e n d i f
2019-07-09 13:20:56 +03:00
i f e q ( , $( filter -out ppc 64le ,$ ( ARCH ) ) )
2021-05-11 22:30:28 +03:00
@$( call add,VM_INITRDMODULES,ipr.ko ibmvscsi.ko)
2019-07-09 13:20:56 +03:00
e n d i f
2019-05-07 19:17:55 +03:00
i f e q ( , $( filter -out aarch 64 armh ,$ ( ARCH ) ) )
2021-05-11 22:30:28 +03:00
@$( call add,VM_INITRDMODULES,drivers/dma drivers/reset)
@$( call add,VM_INITRDMODULES,drivers/usb/dwc2 drivers/usb/dwc3)
@$( call add,VM_INITRDMODULES,drivers/phy drivers/usb/phy)
@$( call add,VM_INITRDMODULES,drivers/bus)
@$( call add,VM_INITRDMODULES,drivers/pwm drivers/regulator)
2021-05-14 08:46:04 +03:00
@$( call add,VM_INITRDMODULES,drivers/i2c)
2019-05-07 19:17:55 +03:00
e n d i f
@$( call xport,VM_INITRDMODULES)
@$( call xport,VM_INITRDFEATURES)
2019-11-09 20:06:49 +03:00
@$( call xport,VM_FSTYPE)