summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-07-09 09:00:11 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-11-13 13:03:47 +0100
commit0653b1db32d226562f958f36b46423dadca7d328 (patch)
treecf158f23ee987071f3fe3c72f4e98dd88c6574c9
parent950675442f1e30979798c8f7a3c8b696e6837c0b (diff)
downloadrtems-libbsd-0653b1db32d226562f958f36b46423dadca7d328.tar.bz2
NVME(4): Add build module
Update #3821.
-rw-r--r--libbsd.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/libbsd.py b/libbsd.py
index 194733bb..9ad60755 100644
--- a/libbsd.py
+++ b/libbsd.py
@@ -1758,6 +1758,34 @@ class dev_nic_broadcomm(builder.Module):
mm.generator['source']()
)
+class nvme(builder.Module):
+
+ def __init__(self, manager):
+ super(nvme, self).__init__(manager, type(self).__name__)
+
+ def generate(self):
+ mm = self.manager
+ self.addKernelSpaceHeaderFiles(
+ [
+ 'sys/dev/nvme/nvme.h',
+ 'sys/dev/nvme/nvme_private.h',
+ ]
+ )
+ self.addKernelSpaceSourceFiles(
+ [
+ 'sys/dev/nvme/nvme.c',
+ 'sys/dev/nvme/nvme_ctrlr.c',
+ 'sys/dev/nvme/nvme_ctrlr_cmd.c',
+ 'sys/dev/nvme/nvme_ns.c',
+ 'sys/dev/nvme/nvme_ns_cmd.c',
+ 'sys/dev/nvme/nvme_pci.c',
+ 'sys/dev/nvme/nvme_qpair.c',
+ 'sys/dev/nvme/nvme_sysctl.c',
+ 'sys/dev/nvme/nvme_util.c',
+ ],
+ mm.generator['source']()
+ )
+
#
# Networking
#
@@ -5270,6 +5298,8 @@ def load(mm):
mm.addModule(dev_nic_smc(mm))
mm.addModule(dev_nic_broadcomm(mm))
+ mm.addModule(nvme(mm))
+
# Add in_chksum
mm.addModule(in_cksum(mm))