[PATCH 01/21] bloblist: test: Move test into common

Simon Glass sjg at chromium.org
Mon Oct 28 13:41:06 CET 2024


This test doesn't belong at the top level. Move it into the common/
directory, to match its implementation.

This also fixes the build rule for the bootm test, which was depending
on bloblist by mistake.

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

 test/Makefile                | 3 ---
 test/common/Makefile         | 3 +++
 test/{ => common}/bloblist.c | 0
 3 files changed, 3 insertions(+), 3 deletions(-)
 rename test/{ => common}/bloblist.c (100%)

diff --git a/test/Makefile b/test/Makefile
index 145c952d2c3..2beff431899 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -4,10 +4,7 @@
 
 obj-y += test-main.o
 
-ifneq ($(CONFIG_$(XPL_)BLOBLIST),)
-obj-$(CONFIG_$(XPL_)CMDLINE) += bloblist.o
 obj-$(CONFIG_$(XPL_)CMDLINE) += bootm.o
-endif
 obj-$(CONFIG_$(XPL_)CMDLINE) += cmd/
 obj-$(CONFIG_$(XPL_)CMDLINE) += cmd_ut.o
 obj-$(CONFIG_$(XPL_)CMDLINE) += command_ut.o
diff --git a/test/common/Makefile b/test/common/Makefile
index 12c65f8c951..b6bff9201ec 100644
--- a/test/common/Makefile
+++ b/test/common/Makefile
@@ -1,6 +1,9 @@
 # SPDX-License-Identifier: GPL-2.0+
 obj-y += cmd_ut_common.o
 obj-$(CONFIG_AUTOBOOT) += test_autoboot.o
+ifneq ($(CONFIG_$(XPL_)BLOBLIST),)
+obj-$(CONFIG_$(XPL_)CMDLINE) += bloblist.o
+endif
 obj-$(CONFIG_CYCLIC) += cyclic.o
 obj-$(CONFIG_EVENT_DYNAMIC) += event.o
 obj-y += cread.o
diff --git a/test/bloblist.c b/test/common/bloblist.c
similarity index 100%
rename from test/bloblist.c
rename to test/common/bloblist.c
-- 
2.43.0



More information about the U-Boot mailing list