Skip to contentSkip to conversation

Revert "lib/{newlib_, }tests: Fix build dependency on lib"

PATCH New Cyril Hrubis 1 participant 1 message Jun 11, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert "lib/{newlib_, }tests: Fix build dependency on lib"

This reverts commit 90c6b2eb31106f0766ab2b8e90c97472e4ac3c78.

Unfortunately this change may cause an infinite loop when library rebuild is triggered from a test directory. E.g.:

$ cd ltp
$ make clean
...
$ cd testcases/kernel/syscalls/abort
$ make
...
make -C "/foo/bar/ltp/lib" -f "/foo/bar/ltp/lib/Makefile" all
make -C "/foo/bar/ltp/lib" -f "/foo/bar/ltp/lib/Makefile" all
make -C "/foo/bar/ltp/lib" -f "/foo/bar/ltp/lib/Makefile" all
make -C "/foo/bar/ltp/lib" -f "/foo/bar/ltp/lib/Makefile" all
make -C "/foo/bar/ltp/lib" -f "/foo/bar/ltp/lib/Makefile" all
make -C "/foo/bar/ltp/lib" -f "/foo/bar/ltp/lib/Makefile" all
...

Looks like some kind of race, so let's revert the commit for now.

---
 lib/newlib_tests/Makefile | 2 +-
 lib/tests/Makefile        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
lib/newlib_tests/Makefile +1 -1
index a263d7db5..30ca6810c 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-or-later
 top_srcdir		?= ../..
 
-include $(top_srcdir)/include/mk/testcases.mk
+include $(top_srcdir)/include/mk/env_pre.mk
 
 CFLAGS			+= -W -Wall
 LDLIBS			+= -lltp
lib/tests/Makefile +1 -1
index c418202ed..73a0f1655 100644
@@ -1,6 +1,6 @@
 top_srcdir		?= ../..
 
-include $(top_srcdir)/include/mk/testcases.mk
+include $(top_srcdir)/include/mk/env_pre.mk
 
 CFLAGS			+= -W
 LDLIBS			+= -lltp
Signature · 1 line
2.31.1