[LTP] [PATCH 1/1] compat_16.mk: Cleanup INTERMEDIATE object syntax
Petr Vorel
pvorel@suse.cz
Fri Oct 27 19:43:22 CEST 2023
From: Li Wang <liwang@redhat.com>
INTERMEDIATE object syntax is not necessary, thus remove it.
Suggested-by: Li Wang <liwang@redhat.com>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
testcases/kernel/syscalls/utils/compat_16.mk | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/testcases/kernel/syscalls/utils/compat_16.mk b/testcases/kernel/syscalls/utils/compat_16.mk
index 71a8cc56f..8effa2b05 100644
--- a/testcases/kernel/syscalls/utils/compat_16.mk
+++ b/testcases/kernel/syscalls/utils/compat_16.mk
@@ -53,11 +53,8 @@ CPPFLAGS += -I$(abs_srcdir) -I$(abs_srcdir)/../utils
SRCS ?= $(sort $(wildcard $(abs_srcdir)/*.c))
MAKE_TARGETS := $(notdir $(patsubst %.c,%,$(SRCS)))
-MAKE_TARGETS_OBJS_WO_COMPAT_16 := $(addsuffix .o,$(MAKE_TARGETS))
MAKE_TARGETS += $(addsuffix _16,$(MAKE_TARGETS))
-# XXX (garrcoop): This code should be put in question as it cannot be applied
-# (no .h file, no TST_USE_NEWER64_SYSCALL def).
DEF_16 := TST_USE_COMPAT16_SYSCALL
ifeq ($(USE_LEGACY_COMPAT_16_H),1)
@@ -66,13 +63,5 @@ else
COMPAT_16_H := $(abs_srcdir)/../utils/compat_tst_16.h
endif
-ifneq ($(wildcard $(COMPAT_16_H)),)
-$(MAKE_TARGETS_OBJS_WO_COMPAT_16): $(COMPAT_16_H)
-.INTERMEDIATE: $(MAKE_TARGETS_OBJS_WO_COMPAT_16)
-endif
-
-%_16: CPPFLAGS += -D$(DEF_16)=1
-# XXX (garrcoop): End section of code in question..
-
%_16.o: %.c $(COMPAT_16_H)
$(COMPILE.c) $(OUTPUT_OPTION) $<
--
2.42.0
More information about the ltp
mailing list