Hi Heinrich, On Thu, 14 Nov 2024 at 04:10, Heinrich Schuchardt <[email protected]> wrote: > > On 11/2/24 20:36, Simon Glass wrote: > > This test doesn't belong at the top level. Move it into the lib/ > > directory, to match (most of) its implementation. Rename it to drop the > > unnecessary _ut suffix. > > > > Signed-off-by: Simon Glass <[email protected]> > > --- > > > > (no changes since v1) > > > > test/Makefile | 1 - > > test/lib/Makefile | 1 + > > test/{str_ut.c => lib/str.c} | 0 > > 3 files changed, 1 insertion(+), 1 deletion(-) > > rename test/{str_ut.c => lib/str.c} (100%) > > > > diff --git a/test/Makefile b/test/Makefile > > index 9f19bfa472b..220a249c397 100644 > > --- a/test/Makefile > > +++ b/test/Makefile > > @@ -14,7 +14,6 @@ endif > > ifneq ($(CONFIG_HUSH_PARSER),) > > obj-$(CONFIG_$(XPL_)CMDLINE) += hush/ > > endif > > -obj-$(CONFIG_$(XPL_)CMDLINE) += str_ut.o > > obj-$(CONFIG_UT_TIME) += time_ut.o > > obj-y += ut.o > > > > diff --git a/test/lib/Makefile b/test/lib/Makefile > > index ce22780eed8..be20bbc047f 100644 > > --- a/test/lib/Makefile > > +++ b/test/lib/Makefile > > @@ -17,6 +17,7 @@ obj-y += lmb.o > > obj-y += longjmp.o > > obj-$(CONFIG_CONSOLE_RECORD) += test_print.o > > obj-$(CONFIG_SSCANF) += sscanf.o > > +obj-$(CONFIG_$(XPL_)CMDLINE) += str.o > > Shouldn't this be CONFIG_$(PHASE_)STRTO, see lib/Makefile.
We don't allow the cmdline in any xPL build, so this is just checking for U-Boot proper, in fact. > > I would not know why we need *CMDLINE as dependency here. > > Cf. > https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/ Yes, we don't. Regards, Simon

