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-02-14 18:14:08 +03:00
@$( call add,THE_KMODULES,bcmwl)
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) )
2019-09-11 16:09:32 +03:00
@$( call add,VM_INITRDMODULES,ahci sd_mod)
@$( call add,VM_INITRDMODULES,nvme nvme-core)
@$( call add,VM_INITRDMODULES,ahci_platform ehci-pci ohci-pci uhci-hcd xhci-pci uas)
2020-05-01 11:25:33 +03:00
@$( call add,VM_INITRDMODULES,sdhci-acpi sdhci-pci sdhci-pltfm xhci-plat-hcd dwc2 mmc_block)
2020-01-20 13:55:31 +03:00
@$( call add,VM_INITRDMODULES,usbhid)
2019-09-11 16:09:32 +03:00
@$( call add,VM_INITRDMODULES,evdev)
2019-05-07 19:17:55 +03:00
i f e q ( , $( filter -out i 586 x 86_ 64,$ ( ARCH ) ) )
@$( call add,VM_INITRDMODULES,ata_piix)
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
2020-08-13 00:31:43 +03:00
@$( call add,VM_INITRDMODULES,virtio-scsi virtio-blk virtio-rng virtio_net virtio-gpu)
2020-01-20 13:55:31 +03:00
@$( call add,VM_INITRDMODULES,virtio-mmio virtio_pci virtio_console virtio_input)
2019-07-09 13:20:56 +03:00
i f e q ( , $( filter -out ppc 64le ,$ ( ARCH ) ) )
@$( call add,VM_INITRDMODULES,ipr ibmvscsi)
e n d i f
2019-05-07 19:17:55 +03:00
i f e q ( , $( filter -out aarch 64 armh ,$ ( ARCH ) ) )
2020-04-16 14:05:08 +03:00
@$( call add,VM_INITRDMODULES,bcm2835 bcm2835-dma sunxi-mmc)
2021-01-26 08:02:29 +03:00
@$( call add,VM_INITRDMODULES,reset_raspberrypi)
2019-05-07 19:17:55 +03:00
@$( call add,VM_INITRDMODULES,nvmem_rockchip_efuse)
2019-09-11 16:09:32 +03:00
@$( call add,VM_INITRDMODULES,pwm-meson)
@$( call add,VM_INITRDMODULES,cb710-mmc mtk-sd tifm_sd usdhi6rol0 via-sdmmc)
@$( call add,VM_INITRDMODULES,mmc_spi of_mmc_spi toshsd ushc vub300)
@$( call add,VM_INITRDMODULES,smssdio sdio_uart armmmci.ko dw_mmc-pltfm dw_mmc-pci)
@$( call add,VM_INITRDMODULES,tifm_sd sdhci-msm toshsd ushc)
@$( call add,VM_INITRDMODULES,cqhci mmc_spi via-sdmmc dw_mmc-exynos)
2020-05-01 11:25:33 +03:00
@$( call add,VM_INITRDMODULES,vub300 dw_mmc-k3)
2019-09-11 16:09:32 +03:00
@$( call add,VM_INITRDMODULES,sdhci-tegra sdhci-cadence sunxi-mmc dw_mmc-pci)
@$( call add,VM_INITRDMODULES,sdhci-iproc thunderx-mmc meson-gx-mmc)
@$( call add,VM_INITRDMODULES,nvme-fabrics nvme-rdma)
@$( call add,VM_INITRDMODULES,pci-stub aer_inject)
@$( call add,VM_INITRDMODULES,phy-sun4i-usb phy-sun6i-mipi-dphy phy-sun9i-usb)
@$( call add,VM_INITRDMODULES,phy-hi6220-usb phy-hisi-inno-usb2)
@$( call add,VM_INITRDMODULES,phy-rockchip-dp phy-rockchip-inno-usb2 phy-rockchip-usb)
@$( call add,VM_INITRDMODULES,phy-rockchip-emmc)
@$( call add,VM_INITRDMODULES,phy-rockchip-typec)
@$( call add,VM_INITRDMODULES,phy-exynos5-usbdrd phy-tegra-xusb phy-xgene)
@$( call add,VM_INITRDMODULES,meson-canvas mdt_loader)
@$( call add,VM_INITRDMODULES,usb_phy_generic)
2019-05-07 19:17:55 +03:00
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)
2019-08-27 19:51:05 +03:00
@$( call add,VM_INITRDMODULES,pcie-rockchip-host phy-rockchip-pcie)
@$( call add,VM_INITRDMODULES,rk808 i2c-rk3x sdhci-of-arasan sdhci)
@$( call add,VM_INITRDMODULES,dw_mmc dw_mmc-rockchip phy-rockchip-emmc)
@$( call add,VM_INITRDMODULES,pinctrl-rk805 rockchip-io-domain)
@$( call add,VM_INITRDMODULES,pwm-rockchip rk808-regulator)
2019-05-07 19:17:55 +03:00
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)
2019-11-09 20:06:49 +03:00
@$( call xport,VM_FSTYPE)