diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-05-07 14:13:46 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-05-10 15:45:15 +0200 |
commit | 1935b7ead18dbcbf459dbe7a8fd4253fbe1ed4d0 (patch) | |
tree | b9b4ead6229ed347134b9b74cd822a0933316953 /hw/core | |
parent | 7a6f3343b6f140c945b62a972b36d22efa14bdba (diff) | |
download | qemu-1935b7ead18dbcbf459dbe7a8fd4253fbe1ed4d0.zip qemu-1935b7ead18dbcbf459dbe7a8fd4253fbe1ed4d0.tar.gz qemu-1935b7ead18dbcbf459dbe7a8fd4253fbe1ed4d0.tar.bz2 |
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>
Diffstat (limited to 'hw/core')
-rw-r--r-- | hw/core/Kconfig | 9 | ||||
-rw-r--r-- | hw/core/meson.build | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/hw/core/Kconfig b/hw/core/Kconfig index 9397503..24411f5 100644 --- a/hw/core/Kconfig +++ b/hw/core/Kconfig @@ -4,8 +4,14 @@ config EMPTY_SLOT config PTIMER bool +config DEVICE_TREE + bool + # fail the build if libfdt not found + depends on FDT + config FITLOADER bool + depends on DEVICE_TREE config GENERIC_LOADER bool @@ -14,13 +20,14 @@ config GENERIC_LOADER config GUEST_LOADER bool default y - depends on TCG + depends on TCG && DEVICE_TREE config OR_IRQ bool config PLATFORM_BUS bool + depends on DEVICE_TREE config REGISTER bool diff --git a/hw/core/meson.build b/hw/core/meson.build index f20d414..a3d9bab 100644 --- a/hw/core/meson.build +++ b/hw/core/meson.build @@ -16,7 +16,7 @@ common_ss.add(files('cpu-common.c')) common_ss.add(files('machine-smp.c')) system_ss.add(when: 'CONFIG_FITLOADER', if_true: files('loader-fit.c')) system_ss.add(when: 'CONFIG_GENERIC_LOADER', if_true: files('generic-loader.c')) -system_ss.add(when: ['CONFIG_GUEST_LOADER', fdt], if_true: files('guest-loader.c')) +system_ss.add(when: 'CONFIG_GUEST_LOADER', if_true: files('guest-loader.c')) system_ss.add(when: 'CONFIG_OR_IRQ', if_true: files('or-irq.c')) system_ss.add(when: 'CONFIG_PLATFORM_BUS', if_true: files('platform-bus.c')) system_ss.add(when: 'CONFIG_PTIMER', if_true: files('ptimer.c')) |