[PoC 167/241] global: Migrate CONFIG_SANDBOX_ARCH to CFG

Tom Rini trini at konsulko.com
Sun Nov 20 15:07:57 CET 2022


Signed-off-by: Tom Rini <trini at konsulko.com>
---
 arch/sandbox/include/asm/config.h | 2 +-
 drivers/adc/adc-uclass.c          | 2 +-
 scripts/config_whitelist.txt      | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/sandbox/include/asm/config.h b/arch/sandbox/include/asm/config.h
index 50215b35d777..0adb6978451c 100644
--- a/arch/sandbox/include/asm/config.h
+++ b/arch/sandbox/include/asm/config.h
@@ -6,7 +6,7 @@
 #ifndef _ASM_CONFIG_H_
 #define _ASM_CONFIG_H_
 
-#define CONFIG_SANDBOX_ARCH
+#define CFG_SANDBOX_ARCH
 
 /* Used by drivers/spi/sandbox_spi.c and arch/sandbox/include/asm/state.h */
 #ifndef CONFIG_SANDBOX_SPI_MAX_BUS
diff --git a/drivers/adc/adc-uclass.c b/drivers/adc/adc-uclass.c
index 67137ffb3414..67289bb1acae 100644
--- a/drivers/adc/adc-uclass.c
+++ b/drivers/adc/adc-uclass.c
@@ -22,7 +22,7 @@
 #define CHECK_MASK			(!CHECK_NUMBER)
 
 /* TODO: add support for timer uclass (for early calls) */
-#ifdef CONFIG_SANDBOX_ARCH
+#ifdef CFG_SANDBOX_ARCH
 #define sdelay(x)	udelay(x)
 #else
 extern void sdelay(unsigned long loops);
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index 332b5493d30d..c9e0703f52a5 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -176,7 +176,7 @@ CFG_RD_LVL
 CFG_RESET_VECTOR_ADDRESS
 CFG_ROCKCHIP_SDHCI_MAX_FREQ
 CFG_ROOTPATH
-CONFIG_SANDBOX_ARCH
+CFG_SANDBOX_ARCH
 CONFIG_SANDBOX_SDL
 CONFIG_SANDBOX_SPI_MAX_BUS
 CONFIG_SANDBOX_SPI_MAX_CS
-- 
2.25.1



More information about the U-Boot mailing list