[PoC 178/241] global: Migrate CONFIG_SET_DFU_ALT_BUF_LEN to CFG
Tom Rini
trini at konsulko.com
Sun Nov 20 15:08:08 CET 2022
Signed-off-by: Tom Rini <trini at konsulko.com>
---
board/samsung/common/misc.c | 2 +-
include/configs/odroid.h | 2 +-
include/configs/odroid_xu3.h | 2 +-
scripts/config_whitelist.txt | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/board/samsung/common/misc.c b/board/samsung/common/misc.c
index 9c0ec29c937b..5ffa216e2e5d 100644
--- a/board/samsung/common/misc.c
+++ b/board/samsung/common/misc.c
@@ -41,7 +41,7 @@ DECLARE_GLOBAL_DATA_PTR;
#ifdef CONFIG_SET_DFU_ALT_INFO
void set_dfu_alt_info(char *interface, char *devstr)
{
- size_t buf_size = CONFIG_SET_DFU_ALT_BUF_LEN;
+ size_t buf_size = CFG_SET_DFU_ALT_BUF_LEN;
ALLOC_CACHE_ALIGN_BUFFER(char, buf, buf_size);
char *alt_info = "Settings not found!";
char *status = "error!\n";
diff --git a/include/configs/odroid.h b/include/configs/odroid.h
index 3ac13a65d63f..560a23c23efb 100644
--- a/include/configs/odroid.h
+++ b/include/configs/odroid.h
@@ -37,7 +37,7 @@
""PARTS_BOOT" part 0 1;" \
""PARTS_ROOT" part 0 2\0" \
-#define CONFIG_SET_DFU_ALT_BUF_LEN (SZ_1K)
+#define CFG_SET_DFU_ALT_BUF_LEN (SZ_1K)
#define CFG_DFU_ALT_BOOT_EMMC \
"u-boot raw 0x3e 0x800 mmcpart 1;" \
diff --git a/include/configs/odroid_xu3.h b/include/configs/odroid_xu3.h
index 93f88ef53eba..e8ec504c355e 100644
--- a/include/configs/odroid_xu3.h
+++ b/include/configs/odroid_xu3.h
@@ -57,7 +57,7 @@
"params.bin raw 0x1880 0x20\0"
/* Enable: board/samsung/common/misc.c to use set_dfu_alt_info() */
-#define CONFIG_SET_DFU_ALT_BUF_LEN (SZ_1K)
+#define CFG_SET_DFU_ALT_BUF_LEN (SZ_1K)
/* Set soc_rev, soc_id, board_rev, board_name, fdtfile */
#define CFG_ODROID_REV_AIN 9
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index c8e2d10fe0be..6ffe0779b47d 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -187,7 +187,7 @@ CFG_SC_TIMER_CLK
CFG_SERIAL_BOOT
CFG_SERVERIP
CFG_SETUP_INITRD_TAG
-CONFIG_SET_DFU_ALT_BUF_LEN
+CFG_SET_DFU_ALT_BUF_LEN
CONFIG_SH_ETHER_ALIGNE_SIZE
CONFIG_SH_ETHER_CACHE_INVALIDATE
CONFIG_SH_ETHER_CACHE_WRITEBACK
--
2.25.1
More information about the U-Boot
mailing list