modules: introduces module_kconfig directive
Git-commit: 0000000000000000000000000000000000000000 References: bsc#1199015 module_kconfig is a new directive that should be used with module_obj whenever that module depends on the Kconfig to be enabled. When the module is enabled in Kconfig we are sure that its dependencies will be enabled as well, thus the module will be loaded without any problem. The correct way to use module_kconfig is by passing the Kconfig option to module_kconfig (or the *config-devices.mak without CONFIG_). Signed-off-by: Jose R. Ziviani <jziviani@suse.de> Signed-off-by: Dario Faggioli <dfaggioli@suse.com>
This commit is contained in:
@@ -65,6 +65,7 @@ static const TypeInfo virtio_gpu_pci_base_info = {
|
||||
.abstract = true
|
||||
};
|
||||
module_obj(TYPE_VIRTIO_GPU_PCI_BASE);
|
||||
module_kconfig(VIRTIO_PCI);
|
||||
|
||||
#define TYPE_VIRTIO_GPU_PCI "virtio-gpu-pci"
|
||||
typedef struct VirtIOGPUPCI VirtIOGPUPCI;
|
||||
|
||||
Reference in New Issue
Block a user