kconfig: express dependency of individual boards on libfdt
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 30 Apr 2024 19:08:15 +0000 (21:08 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 10 May 2024 13:45:15 +0000 (15:45 +0200)
commitd641ec30be4963f43bffe033f5265a57cb8f4c90
treeaa87df2c809f45e751ff609d0214e07f6d998f10
parent1935b7ead18dbcbf459dbe7a8fd4253fbe1ed4d0
kconfig: express dependency of individual boards on libfdt

Now that boards are enabled by default and the "CONFIG_FOO=y"
entries are gone from configs/devices/, there cannot be any more
a conflicts between the default contents of configs/devices/
and a failed "depends on" clause.

With this change, each individual board or target can express
whether it needs FDT.  It can then include the common code in the
build via "select DEVICE_TREE", which will also as tell meson to link
with libfdt.

This allows building non-microvm x86 emulators without having
libfdt available.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
14 files changed:
Kconfig.host
hw/arm/Kconfig
hw/i386/Kconfig
hw/loongarch/Kconfig
hw/mips/Kconfig
hw/openrisc/Kconfig
hw/ppc/Kconfig
hw/riscv/Kconfig
hw/rx/Kconfig
hw/xtensa/Kconfig
target/arm/Kconfig
target/microblaze/Kconfig
target/openrisc/Kconfig
target/riscv/Kconfig