From 0df5e1480b037eb3bdee6860c0e7817218446d64 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Tue, 16 May 2023 15:49:03 +0800 Subject: [PATCH] Add kmod-nvme --- .buildbot/openwrt/build.sh | 7 +++++++ files/kmod-nvme.mk | 23 +++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 files/kmod-nvme.mk diff --git a/.buildbot/openwrt/build.sh b/.buildbot/openwrt/build.sh index 47b8b93..45d452c 100755 --- a/.buildbot/openwrt/build.sh +++ b/.buildbot/openwrt/build.sh @@ -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 \ diff --git a/files/kmod-nvme.mk b/files/kmod-nvme.mk new file mode 100644 index 0000000..ce51415 --- /dev/null +++ b/files/kmod-nvme.mk @@ -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)) + -- 2.45.1