[PATCH 05/21] compression: test: Move test into lib

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


This test doesn't belong at the top level. Move it into the lib/
directory, since that is where compression is implemented.

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

 test/Makefile                | 1 -
 test/lib/Makefile            | 3 +++
 test/{ => lib}/compression.c | 0
 3 files changed, 3 insertions(+), 1 deletion(-)
 rename test/{ => lib}/compression.c (100%)

diff --git a/test/Makefile b/test/Makefile
index 2beff431899..fcd73f0b472 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -8,7 +8,6 @@ obj-$(CONFIG_$(XPL_)CMDLINE) += bootm.o
 obj-$(CONFIG_$(XPL_)CMDLINE) += cmd/
 obj-$(CONFIG_$(XPL_)CMDLINE) += cmd_ut.o
 obj-$(CONFIG_$(XPL_)CMDLINE) += command_ut.o
-obj-$(CONFIG_$(XPL_)UT_COMPRESSION) += compression.o
 obj-y += dm/
 obj-$(CONFIG_FUZZ) += fuzz/
 ifndef CONFIG_SANDBOX_VPL
diff --git a/test/lib/Makefile b/test/lib/Makefile
index a54387a058e..ce22780eed8 100644
--- a/test/lib/Makefile
+++ b/test/lib/Makefile
@@ -2,6 +2,9 @@
 #
 # (C) Copyright 2018
 # Mario Six, Guntermann & Drunck GmbH, mario.six at gdsys.cc
+
+obj-$(CONFIG_$(XPL_)UT_COMPRESSION) += compression.o
+
 ifeq ($(CONFIG_XPL_BUILD),)
 obj-y += cmd_ut_lib.o
 obj-y += abuf.o
diff --git a/test/compression.c b/test/lib/compression.c
similarity index 100%
rename from test/compression.c
rename to test/lib/compression.c
-- 
2.43.0



More information about the U-Boot mailing list