Skip to content

Commit

Permalink
libs: Remove 'libltp' prefix from libs source directories
Browse files Browse the repository at this point in the history
LTP internal libraries are located in libs/ directory. There is no need
to keep 'libltp' prefix in their own directories. NOTE: resulted
libraries (*.a) keep expected 'libltp' prefix.

Link: https://lore.kernel.org/ltp/20240419110230.191809-1-pvorel@suse.cz/
Acked-by: Cyril Hrubis <chrubis@suse.cz>
Reviewed-by: Li Wang <liwang@redhat.com>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
  • Loading branch information
pevik committed Jul 29, 2024
1 parent 2d24a28 commit dfb293e
Show file tree
Hide file tree
Showing 43 changed files with 28 additions and 28 deletions.
6 changes: 3 additions & 3 deletions include/mk/testcases.mk
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ LDLIBS += -lltp

ifdef LTPLIBS

LTPLIBS_DIRS = $(addprefix $(abs_top_builddir)/libs/lib, $(LTPLIBS))
LTPLIBS_FILES = $(addsuffix .a, $(addprefix $(abs_top_builddir)/libs/, $(foreach LIB,$(LTPLIBS),lib$(LIB)/lib$(LIB))))
LTPLIBS_DIRS = $(addprefix $(abs_top_builddir)/libs/, $(LTPLIBS))
LTPLIBS_FILES = $(addsuffix .a, $(addprefix $(abs_top_builddir)/libs/, $(foreach LIB,$(LTPLIBS),$(LIB)/lib$(LIB))))

MAKE_DEPS += $(LTPLIBS_FILES)

Expand All @@ -61,7 +61,7 @@ else
@$(MAKE) --no-print-directory -C "$(dir $@)" -f "$(subst $(abs_top_builddir),$(abs_top_srcdir),$(dir $@))/Makefile" all
endif

LDFLAGS += $(addprefix -L$(top_builddir)/libs/lib, $(LTPLIBS))
LDFLAGS += $(addprefix -L$(top_builddir)/libs/, $(LTPLIBS))

endif

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion testcases/kernel/mem/ksm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

top_srcdir ?= ../../../..

LTPLIBS = ltpnuma
LTPLIBS = numa
ksm06: LTPLDLIBS = -lltpnuma

include $(top_srcdir)/include/mk/testcases.mk
Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/clock_gettime/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

top_srcdir ?= ../../../..

LTPLIBS = ltpvdso
LTPLIBS = vdso

include $(top_srcdir)/include/mk/testcases.mk

Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/get_mempolicy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

top_srcdir ?= ../../../..

LTPLIBS = ltpnuma
LTPLIBS = numa

include $(top_srcdir)/include/mk/testcases.mk

Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/ipc/msgctl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

top_srcdir ?= ../../../../..

LTPLIBS = ltpnewipc
LTPLIBS = newipc

include $(top_srcdir)/include/mk/testcases.mk

Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/ipc/msgget/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

top_srcdir ?= ../../../../..

LTPLIBS = ltpnewipc
LTPLIBS = newipc

include $(top_srcdir)/include/mk/testcases.mk

Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/ipc/msgrcv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

top_srcdir ?= ../../../../..

LTPLIBS = ltpnewipc
LTPLIBS = newipc

include $(top_srcdir)/include/mk/testcases.mk

Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/ipc/msgsnd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

top_srcdir ?= ../../../../..

LTPLIBS = ltpnewipc
LTPLIBS = newipc

include $(top_srcdir)/include/mk/testcases.mk

Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/ipc/semctl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

top_srcdir ?= ../../../../..

LTPLIBS = ltpipc ltpnewipc
LTPLIBS = ipc newipc

include $(top_srcdir)/include/mk/testcases.mk

Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/ipc/semget/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

top_srcdir ?= ../../../../..

LTPLIBS = ltpnewipc
LTPLIBS = newipc

include $(top_srcdir)/include/mk/testcases.mk

Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/ipc/semop/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

top_srcdir ?= ../../../../..

LTPLIBS = ltpnewipc
LTPLIBS = newipc

include $(top_srcdir)/include/mk/testcases.mk

Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/ipc/shmat/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

top_srcdir ?= ../../../../..

LTPLIBS = ltpnewipc
LTPLIBS = newipc

include $(top_srcdir)/include/mk/testcases.mk

Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/ipc/shmctl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

top_srcdir ?= ../../../../..

LTPLIBS = ltpnewipc
LTPLIBS = newipc

shmctl05: CFLAGS += -pthread
shmctl05: LDLIBS += -lrt
Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/ipc/shmdt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

top_srcdir ?= ../../../../..

LTPLIBS = ltpnewipc
LTPLIBS = newipc

include $(top_srcdir)/include/mk/testcases.mk

Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/ipc/shmget/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

top_srcdir ?= ../../../../..

LTPLIBS = ltpnewipc
LTPLIBS = newipc

include $(top_srcdir)/include/mk/testcases.mk

Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/kill/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

top_srcdir ?= ../../../..

LTPLIBS = ltpipc ltpnewipc
LTPLIBS = ipc newipc

include $(top_srcdir)/include/mk/testcases.mk

Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/mbind/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

top_srcdir ?= ../../../..

LTPLIBS=ltpnuma
LTPLIBS = numa

include $(top_srcdir)/include/mk/testcases.mk

Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/mremap/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

top_srcdir ?= ../../../..

LTPLIBS = ltpipc
LTPLIBS = ipc

include $(top_srcdir)/include/mk/testcases.mk

Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/rt_sigtimedwait/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

top_srcdir ?= ../../../..

LTPLIBS = ltpsigwait
LTPLIBS = sigwait

include $(top_srcdir)/include/mk/testcases.mk

Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/set_mempolicy/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-or-later
top_srcdir ?= ../../../..

LTPLIBS = ltpnuma
LTPLIBS = numa

include $(top_srcdir)/include/mk/testcases.mk

Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/sigtimedwait/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

top_srcdir ?= ../../../..

LTPLIBS = ltpsigwait
LTPLIBS = sigwait

include $(top_srcdir)/include/mk/testcases.mk

Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/sigwait/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

top_srcdir ?= ../../../..

LTPLIBS = ltpsigwait
LTPLIBS = sigwait

include $(top_srcdir)/include/mk/testcases.mk

Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/sigwaitinfo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

top_srcdir ?= ../../../..

LTPLIBS = ltpsigwait
LTPLIBS = sigwait

include $(top_srcdir)/include/mk/testcases.mk

Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/swapoff/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

top_srcdir ?= ../../../..

LTPLIBS = ltpswap
LTPLIBS = swap

include $(top_srcdir)/include/mk/testcases.mk

Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/swapon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

top_srcdir ?= ../../../..

LTPLIBS = ltpswap
LTPLIBS = swap

include $(top_srcdir)/include/mk/testcases.mk

Expand Down
2 changes: 1 addition & 1 deletion testcases/kernel/uevents/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

top_srcdir ?= ../../..

LTPLIBS = ltpuinput
LTPLIBS = uinput

uevent03: LDLIBS += -lltpuinput

Expand Down

0 comments on commit dfb293e

Please sign in to comment.