]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
bloblist: Make BLOBLIST_ALLOC the default
authorSimon Glass <sjg@chromium.org>
Sat, 11 Jan 2025 00:00:00 +0000 (17:00 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 22 Jan 2025 21:58:03 +0000 (15:58 -0600)
We want to encourage people to use an allocated bloblist since it is
more flexible than a fixed one. Make this the default, being sure not to
change existing users.

The unit tests require BLOBLIST_FIXED so add a dependency in the
Makefile to avoid build errors.

All sandbox builds require BLOBLIST_FIXED so make that the default for
sandbox.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/Kconfig
configs/chromebook_bob_defconfig
configs/chromebook_coral_defconfig
configs/chromebook_kevin_defconfig
configs/chromebook_samus_tpl_defconfig
configs/qemu-x86_64_defconfig
test/common/Makefile

index 0e8c44f3f745df0bd3a15322e88de775b137eb55..7685914fa6fd4ff736b0b205ca419829bf51664b 100644 (file)
@@ -1047,6 +1047,8 @@ if BLOBLIST
 
 choice
        prompt "Bloblist location"
+       default BLOBLIST_FIXED if SANDBOX
+       default BLOBLIST_ALLOC
        help
          Select the location of the bloblist, via various means.
 
index decac2e19352d19d2737dfc0ded9cfef860b35a4..072311465d96c20166630fc8ca59ed953dc45740 100644 (file)
@@ -36,6 +36,7 @@ CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-gru-bob.dtb"
 CONFIG_DISPLAY_BOARDINFO_LATE=y
 CONFIG_BOARD_EARLY_INIT_R=y
 CONFIG_BLOBLIST=y
+CONFIG_BLOBLIST_FIXED=y
 CONFIG_BLOBLIST_ADDR=0x100000
 CONFIG_BLOBLIST_SIZE=0x1000
 CONFIG_SPL_MAX_SIZE=0x1e000
index 0fb7304973867d89d835bcc1f848452afd4cb5ab..b1999b4ef204fdea2a5cda6be7acd3d22fae170f 100644 (file)
@@ -44,6 +44,7 @@ CONFIG_LOGF_FUNC=y
 CONFIG_DISPLAY_BOARDINFO_LATE=y
 CONFIG_BLOBLIST=y
 # CONFIG_TPL_BLOBLIST is not set
+CONFIG_BLOBLIST_FIXED=y
 CONFIG_BLOBLIST_ADDR=0x100000
 CONFIG_BLOBLIST_SIZE=0x30000
 CONFIG_SPL_NO_BSS_LIMIT=y
index 5bbea6c42a8b4effa38cac274a742b696c9e44ad..13c0998dbab1895a07736eb0fbd2c119600bcfcd 100644 (file)
@@ -37,6 +37,7 @@ CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-gru-kevin.dtb"
 CONFIG_DISPLAY_BOARDINFO_LATE=y
 CONFIG_BOARD_EARLY_INIT_R=y
 CONFIG_BLOBLIST=y
+CONFIG_BLOBLIST_FIXED=y
 CONFIG_BLOBLIST_ADDR=0x100000
 CONFIG_BLOBLIST_SIZE=0x1000
 CONFIG_SPL_MAX_SIZE=0x1e000
index fc524da5480ef0e1f861a25013467e914d97b255..42337d7a11e27107f476b28159f0c82d052a0c92 100644 (file)
@@ -34,6 +34,7 @@ CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_DISPLAY_BOARDINFO_LATE=y
 CONFIG_MISC_INIT_R=y
 CONFIG_BLOBLIST=y
+CONFIG_BLOBLIST_FIXED=y
 CONFIG_BLOBLIST_ADDR=0xff7c0000
 CONFIG_BLOBLIST_SIZE=0x1000
 CONFIG_SPL_NO_BSS_LIMIT=y
index 812b20687e5e920508034a87ae1c5997703f8dc9..f93721fceb872ad4a4292b35ba94f43c135da4a8 100644 (file)
@@ -34,6 +34,7 @@ CONFIG_SPL_LOG=y
 CONFIG_DISPLAY_BOARDINFO_LATE=y
 CONFIG_PCI_INIT_R=y
 CONFIG_BLOBLIST=y
+CONFIG_BLOBLIST_FIXED=y
 CONFIG_BLOBLIST_ADDR=0x10000
 CONFIG_SPL_NO_BSS_LIMIT=y
 CONFIG_SPL_BOARD_INIT=y
index 53c4f16164d09e9fb5284e4b249a910286d993f3..95bd00741a318d7472507a1b1c71552ff1276370 100644 (file)
@@ -1,9 +1,13 @@
 # SPDX-License-Identifier: GPL-2.0+
 obj-y += cmd_ut_common.o
 obj-$(CONFIG_AUTOBOOT) += test_autoboot.o
+
 ifneq ($(CONFIG_$(XPL_)BLOBLIST),)
+ifdef CONFIG_BLOBLIST_FIXED
 obj-$(CONFIG_$(XPL_)CMDLINE) += bloblist.o
 endif
+endif
+
 obj-$(CONFIG_CYCLIC) += cyclic.o
 obj-$(CONFIG_EVENT_DYNAMIC) += event.o
 obj-y += cread.o