mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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>
This commit is contained in:
parent
b0f3184e82
commit
24ce7aa77d
18 changed files with 28 additions and 0 deletions
|
@ -613,6 +613,7 @@ static const TypeInfo emulated_card_info = {
|
|||
.class_init = emulated_class_initfn,
|
||||
};
|
||||
module_obj(TYPE_EMULATED_CCID);
|
||||
module_kconfig(USB);
|
||||
|
||||
static void ccid_card_emulated_register_types(void)
|
||||
{
|
||||
|
|
|
@ -415,6 +415,7 @@ static const TypeInfo passthru_card_info = {
|
|||
.class_init = passthru_class_initfn,
|
||||
};
|
||||
module_obj(TYPE_CCID_PASSTHRU);
|
||||
module_kconfig(USB);
|
||||
|
||||
static void ccid_card_passthru_register_types(void)
|
||||
{
|
||||
|
|
|
@ -1809,6 +1809,7 @@ static const TypeInfo usb_host_dev_info = {
|
|||
.instance_init = usb_host_instance_init,
|
||||
};
|
||||
module_obj(TYPE_USB_HOST_DEVICE);
|
||||
module_kconfig(USB);
|
||||
|
||||
static void usb_host_register_types(void)
|
||||
{
|
||||
|
|
|
@ -2620,6 +2620,7 @@ static const TypeInfo usbredir_dev_info = {
|
|||
.instance_init = usbredir_instance_init,
|
||||
};
|
||||
module_obj(TYPE_USB_REDIR);
|
||||
module_kconfig(USB);
|
||||
|
||||
static void usbredir_register_types(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue