modules
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
menu "Block device drivers"
|
||||
|
||||
source "dev/block/nvme/Kconfig"
|
||||
|
||||
endmenu
|
||||
@@ -0,0 +1,3 @@
|
||||
if kconfig.get('CONFIG_NVME_CORE', 'n') != 'n'
|
||||
subdir('nvme')
|
||||
endif
|
||||
@@ -0,0 +1,13 @@
|
||||
menu "NVMe Support"
|
||||
|
||||
config NVME_CORE
|
||||
bool
|
||||
default y
|
||||
|
||||
config NVME_PCI
|
||||
bool "NVMe via PCI transport"
|
||||
default y
|
||||
depends on PCI
|
||||
depends on NVME_CORE
|
||||
|
||||
endmenu
|
||||
@@ -0,0 +1,12 @@
|
||||
#include <zinnia/cmdline.h>
|
||||
#include <zinnia/module.h>
|
||||
#include <zinnia/print.h>
|
||||
|
||||
void nvme_init(struct module* mod) {
|
||||
log("Hello world from NVMe!\n");
|
||||
}
|
||||
|
||||
void do_nvme(bool on) {}
|
||||
CMDLINE_OPTION("nvme_on", "My description", do_nvme);
|
||||
|
||||
MODULE("NVME", "Marvin Friedrich", "ISC", "1.0", nvme_init);
|
||||
@@ -0,0 +1,12 @@
|
||||
nvme_sources = files('core.c')
|
||||
|
||||
if kconfig.get('CONFIG_NVME_PCI', 'n') == 'y'
|
||||
nvme_sources += files('pci.c')
|
||||
endif
|
||||
|
||||
modules += {
|
||||
'nvme': {
|
||||
'modular': true, #kconfig.get('CONFIG_NVME_CORE') == 'm',
|
||||
'sources': nvme_sources,
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
#pragma once
|
||||
Reference in New Issue
Block a user