OSDN Git Service

modules: introduces module_kconfig directive
authorJose R. Ziviani <jziviani@suse.de>
Fri, 27 May 2022 22:20:23 +0000 (00:20 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Jun 2022 07:26:53 +0000 (09:26 +0200)
commit24ce7aa77dd1a3095d994bf53d60cce6e672cf4d
tree6637096305922de96e8c0a284bd601a0fd80f38f
parentb0f3184e82817b700ea81bc76ebc8d999de35278
modules: introduces module_kconfig directive

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>
Message-Id: <165369002370.5857.12150544416563557322.stgit@work>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
18 files changed:
hw/display/qxl.c
hw/display/vhost-user-gpu-pci.c
hw/display/vhost-user-gpu.c
hw/display/vhost-user-vga.c
hw/display/virtio-gpu-base.c
hw/display/virtio-gpu-gl.c
hw/display/virtio-gpu-pci-gl.c
hw/display/virtio-gpu-pci.c
hw/display/virtio-gpu.c
hw/display/virtio-vga-gl.c
hw/display/virtio-vga.c
hw/s390x/virtio-ccw-gpu.c
hw/usb/ccid-card-emulated.c
hw/usb/ccid-card-passthru.c
hw/usb/host-libusb.c
hw/usb/redirect.c
include/qemu/module.h
scripts/modinfo-generate.py