bloblist: adjust default bloblist size after reloc
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 1 Sep 2025 17:03:08 +0000 (19:03 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 12 Sep 2025 19:49:34 +0000 (13:49 -0600)
commit559f11e66cf78a7cf57100086bba11a5a516cd25
tree23ed3ae27a4adc03a9a368013b06a2477599a404
parent7e2c23eacd8e6fe76306ebf3cd6e31d52695b617
bloblist: adjust default bloblist size after reloc

If neither CONFIG_BLOBLIST_FIXED NOR CONFIG_BLOBLIST_ALLOC is set,
currently CONFIG_BLOBLIST_SIZE_RELOC defaults to 0 except if
* CONFIG_ARM=y && CONFIG_EFI_LOADER=y && GENERATE_ACPI_TABLE=y.

A size of zero never makes sense for a bloblist.

When using QFW we need more than 64 KiB to host the ACPI table.
In this case CONFIG_BLOBLIST_ALLOC is used.

Set a reasonable default.

Remove the CONFIG_BLOBLIST_SIZE_RELOC in ARM QEMU defconfigs which are
not compatible with ACPI tables passed from QEMU.

Reported-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Fixes: 6f9b015c138b ("common: Enable BLOBLIST_TABLES on arm")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
common/Kconfig
configs/qemu_arm64_defconfig
configs/qemu_arm_defconfig