Add kmod-nvme
buildbot/multibuild_parent Build done. Details
buildbot/travis_bionic Build done. Details
buildbot/job/openwrt Build done. Details

This commit is contained in:
Peter Šurda 2023-05-16 15:49:03 +08:00 committed by Peter Šurda
parent 90e53ad77b
commit 0df5e1480b
Signed by: PeterSurda
GPG Key ID: 3E47497CF67ABB95
2 changed files with 30 additions and 0 deletions

View File

@ -24,10 +24,16 @@ cat ${pwd}/feeds.conf >> feeds.conf
./scripts/feeds update -a
./scripts/feeds install -a
make clean
make defconfig
# Enable collectd network encryption
echo "CONFIG_PACKAGE_COLLECTD_ENCRYPTED_NETWORK=y" >> .config
#make package/kernel/linux/download
#make package/kernel/linux/clean
cat ${pwd}/files/kmod-nvme.mk >> package/kernel/linux/modules/block.mk
make kernel_defconfig
make package/kernel/linux/compile
make package/asterisk-chan-quectel/compile
make package/collectd/compile
# no signing key
@ -60,6 +66,7 @@ mkdir -p files/etc/uci-defaults
cp ${pwd}/defaults/* files/etc/uci-defaults
PACKAGES="kmod-nf-nathelper-extra kmod-rtc-ds1307 \
kmod-nvme \
kmod-usb-audio kmod-usb-net-rtl8152 \
alsa-lib pciutils usbutils \
kmod-usb-net-qmi-wwan libqmi qmi-utils uqmi luci-proto-qmi \

23
files/kmod-nvme.mk Normal file
View File

@ -0,0 +1,23 @@
define KernelPackage/nvme
SUBMENU:=$(BLOCK_MENU)
TITLE:=NVM Express block device
DEPENDS:=@PCI_SUPPORT
KCONFIG:= \
CONFIG_NVME_CORE \
CONFIG_BLK_DEV_NVME \
CONFIG_NVME_MULTIPATH=n \
CONFIG_NVME_HWMON=n
FILES:= \
$(LINUX_DIR)/drivers/nvme/host/nvme-core.ko \
$(LINUX_DIR)/drivers/nvme/host/nvme.ko
AUTOLOAD:=$(call AutoLoad,30,nvme-core nvme)
endef
define KernelPackage/nvme/description
Kernel module for NVM Express solid state drives directly
connected to the PCI or PCI Express bus.
endef
$(eval $(call KernelPackage,nvme))