[Concept,18/18] ulib: Drop dm stats for the library

Message ID 20250904130459.848794-19-sjg@u-boot.org
State New
Headers
Series ulib: Introduce building U-Boot as a shared library |

Commit Message

Simon Glass Sept. 4, 2025, 1:04 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

When using the library it should start up silently. Drop the
driver model message about the number of devices, etc.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 common/board_r.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/common/board_r.c b/common/board_r.c
index 297fdc29ca9..ca1498de11e 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -504,7 +504,7 @@  static int dm_announce(void)
 	int device_count;
 	int uclass_count;
 
-	if (IS_ENABLED(CONFIG_DM)) {
+	if (IS_ENABLED(CONFIG_DM) && !gd_ulib()) {
 		dm_get_stats(&device_count, &uclass_count);
 		printf("Core:  %d devices, %d uclasses", device_count,
 		       uclass_count);