mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
kconfig: allow compiling out QEMU device tree code per target
Introduce a new Kconfig symbol, CONFIG_DEVICE_TREE, that specifies whether to include the common device tree code in system/device_tree.c and to link to libfdt. For now, include it unconditionally if libfdt is available. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
7a6f3343b6
commit
1935b7ead1
10 changed files with 45 additions and 18 deletions
|
@ -668,20 +668,6 @@ void qmp_dumpdtb(const char *filename, Error **errp)
|
|||
}
|
||||
}
|
||||
|
||||
void hmp_dumpdtb(Monitor *mon, const QDict *qdict)
|
||||
{
|
||||
const char *filename = qdict_get_str(qdict, "filename");
|
||||
Error *local_err = NULL;
|
||||
|
||||
qmp_dumpdtb(filename, &local_err);
|
||||
|
||||
if (hmp_handle_error(mon, local_err)) {
|
||||
return;
|
||||
}
|
||||
|
||||
info_report("dtb dumped to %s", filename);
|
||||
}
|
||||
|
||||
void qemu_fdt_randomize_seeds(void *fdt)
|
||||
{
|
||||
int noffset, poffset, len;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue