mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
hw/boards: Rename no_sdcard -> auto_create_sdcard
Invert the 'no_sdcard' logic, renaming it as the more explicit "auto_create_sdcard". Machines are supposed to create a SD Card drive when this flag is set. In many cases it doesn't make much sense (as boards don't expose SD Card host controller), but this is patch only aims to expose that nonsense; so no logical change intended (mechanical patch using gsed). Most of the changes are: - mc->no_sdcard = ON_OFF_AUTO_OFF; + mc->auto_create_sdcard = true; Except in . hw/core/null-machine.c . hw/arm/xilinx_zynq.c . hw/s390x/s390-virtio-ccw.c where the disabled option is manually removed (since default): - mc->no_sdcard = ON_OFF_AUTO_ON; + mc->auto_create_sdcard = false; - mc->auto_create_sdcard = false; and in system/vl.c we change the 'default_sdcard' type to boolean. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20250204200934.65279-4-philmd@linaro.org>
This commit is contained in:
parent
8a2f1f921c
commit
cdc8d7cada
102 changed files with 156 additions and 160 deletions
|
@ -481,7 +481,7 @@ static void npcm750_evb_machine_class_init(ObjectClass *oc, void *data)
|
|||
|
||||
mc->desc = "Nuvoton NPCM750 Evaluation Board (Cortex-A9)";
|
||||
mc->init = npcm750_evb_init;
|
||||
mc->no_sdcard = ON_OFF_AUTO_OFF;
|
||||
mc->auto_create_sdcard = true;
|
||||
mc->default_ram_size = 512 * MiB;
|
||||
};
|
||||
|
||||
|
@ -494,7 +494,7 @@ static void gsj_machine_class_init(ObjectClass *oc, void *data)
|
|||
|
||||
mc->desc = "Quanta GSJ (Cortex-A9)";
|
||||
mc->init = quanta_gsj_init;
|
||||
mc->no_sdcard = ON_OFF_AUTO_OFF;
|
||||
mc->auto_create_sdcard = true;
|
||||
mc->default_ram_size = 512 * MiB;
|
||||
};
|
||||
|
||||
|
@ -507,7 +507,7 @@ static void gbs_bmc_machine_class_init(ObjectClass *oc, void *data)
|
|||
|
||||
mc->desc = "Quanta GBS (Cortex-A9)";
|
||||
mc->init = quanta_gbs_init;
|
||||
mc->no_sdcard = ON_OFF_AUTO_OFF;
|
||||
mc->auto_create_sdcard = true;
|
||||
mc->default_ram_size = 1 * GiB;
|
||||
}
|
||||
|
||||
|
@ -520,7 +520,7 @@ static void kudo_bmc_machine_class_init(ObjectClass *oc, void *data)
|
|||
|
||||
mc->desc = "Kudo BMC (Cortex-A9)";
|
||||
mc->init = kudo_bmc_init;
|
||||
mc->no_sdcard = ON_OFF_AUTO_OFF;
|
||||
mc->auto_create_sdcard = true;
|
||||
mc->default_ram_size = 1 * GiB;
|
||||
};
|
||||
|
||||
|
@ -533,7 +533,7 @@ static void mori_bmc_machine_class_init(ObjectClass *oc, void *data)
|
|||
|
||||
mc->desc = "Mori BMC (Cortex-A9)";
|
||||
mc->init = mori_bmc_init;
|
||||
mc->no_sdcard = ON_OFF_AUTO_OFF;
|
||||
mc->auto_create_sdcard = true;
|
||||
mc->default_ram_size = 1 * GiB;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue