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:22:09 +0100
commitfed6e9be675f86cc19cdb72a77c7c7ef3d4fc5fe (patch)
tree3a525fb101357d49c4db17cc68a645072b80eb18
parent5ac41dcb21af559d6be9cbbcd9e24789b9a395be (diff)
downloadrtems-libbsd-fed6e9be675f86cc19cdb72a77c7c7ef3d4fc5fe.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 a23f7341..82190576 100644
--- a/libbsd.py
+++ b/libbsd.py
@@ -1622,6 +1622,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
#
@@ -5097,6 +5125,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))