From: chrubis@suse.cz
To: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
Cc: vasily.isaenko@oracle.com, ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH V3 1/3] syscalls/utils/compat_16.mk: fix build dependencies
Date: Mon, 2 Sep 2013 17:59:29 +0200 [thread overview]
Message-ID: <20130902155929.GA2146@rei> (raw)
In-Reply-To: <1377782535-15955-2-git-send-email-stanislav.kholmanskikh@oracle.com>
Hi!
> If we create/modify/touch file syscalls/utils/compat_16.h and execute
> 'make' in any of syscalls directories which includes compat_16.mk, then
> nothing will happen, because this approach:
>
> %.c: $(COMPAT_16_H)
>
> is not working.
>
> Fixed this.
>
> Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
> ---
> testcases/kernel/syscalls/utils/compat_16.mk | 6 ++++--
> 1 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/testcases/kernel/syscalls/utils/compat_16.mk b/testcases/kernel/syscalls/utils/compat_16.mk
> index 371bd43..36ece1b 100644
> --- a/testcases/kernel/syscalls/utils/compat_16.mk
> +++ b/testcases/kernel/syscalls/utils/compat_16.mk
> @@ -55,6 +55,7 @@ CPPFLAGS += -I$(abs_srcdir) -I$(abs_srcdir)/../utils
> SRCS ?= $(wildcard $(abs_srcdir)/*.c)
>
> MAKE_TARGETS := $(notdir $(patsubst %.c,%,$(SRCS)))
> +MAKE_TARGETS_OBJS_WO_COMPAT_16 := $(addsuffix .o,$(MAKE_TARGETS))
>
> ifneq ($(TST_COMPAT_16_SYSCALL),no)
> MAKE_TARGETS += $(addsuffix _16,$(MAKE_TARGETS))
> @@ -69,7 +70,8 @@ COMPAT_16_H := $(abs_srcdir)/../utils/compat_16.h
> ifneq ($(wildcard $(COMPAT_16_H)),)
> HAS_COMPAT_16 := 1
>
> -%.c: $(COMPAT_16_H)
> +$(MAKE_TARGETS_OBJS_WO_COMPAT_16): $(COMPAT_16_H)
> +.INTERMEDIATE: $(MAKE_TARGETS_OBJS_WO_COMPAT_16)
>
> else
> HAS_COMPAT_16 := 0
> @@ -78,5 +80,5 @@ endif
> %_16: CPPFLAGS += -D$(DEF_16)=1
> # XXX (garrcoop): End section of code in question..
>
> -%_16.o: %.c
> +%_16.o: %.c $(COMPAT_16_H)
> $(COMPILE.c) $(OUTPUT_OPTION) $<
Perhaps we can do this more cleanly by making the _16 binaries depend on
the compat_16.h as with:
--- a/testcases/kernel/syscalls/utils/compat_16.mk
+++ b/testcases/kernel/syscalls/utils/compat_16.mk
@@ -57,7 +57,8 @@ SRCS ?= $(wildcard $(abs_srcdir)/*.c)
MAKE_TARGETS := $(notdir $(patsubst %.c,%,$(SRCS)))
ifneq ($(TST_COMPAT_16_SYSCALL),no)
-MAKE_TARGETS += $(addsuffix _16,$(MAKE_TARGETS))
+MAKE_TARGETS_16 = $(addsuffix _16,$(MAKE_TARGETS))
+MAKE_TARGETS += $(MAKE_TARGETS_16)
endif
# XXX (garrcoop): This code should be put in question as it cannot be applied
@@ -69,8 +70,7 @@ COMPAT_16_H := $(abs_srcdir)/../utils/compat_16.h
ifneq ($(wildcard $(COMPAT_16_H)),)
HAS_COMPAT_16 := 1
-%.c: $(COMPAT_16_H)
-
+$(MAKE_TARGETS_16): $(COMPAT_16_H)
else
HAS_COMPAT_16 := 0
endif
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2013-09-02 15:59 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-16 7:10 [LTP] [PATCH] syscalls/setgroups: fix implicit SETGROUPS parameter casting Stanislav Kholmanskikh
2013-08-22 13:13 ` chrubis
[not found] ` <52174875.9030606@oracle.com>
2013-08-23 11:39 ` chrubis
[not found] ` <521B331D.7050902@oracle.com>
2013-08-26 11:30 ` chrubis
[not found] ` <521B4D82.2060007@oracle.com>
2013-08-26 14:16 ` chrubis
[not found] ` <521B6875.8010202@oracle.com>
2013-08-27 9:35 ` [LTP] [PATCH V2 1/2] syscalls/setgroups: fix 16-bit versions of the testcases Stanislav Kholmanskikh
2013-08-27 9:35 ` [LTP] [PATCH V2 2/2] syscalls/getgroups: added checks for 16-bit getgroups() syscall Stanislav Kholmanskikh
2013-08-27 12:16 ` chrubis
[not found] ` <521D9C44.8090607@oracle.com>
2013-08-28 9:55 ` chrubis
[not found] ` <1377782535-15955-3-git-send-email-stanislav.kholmanskikh@oracle.com>
2013-09-02 15:23 ` [LTP] [PATCH V3 2/3] fixes for 16-bit syscalls testcases chrubis
[not found] ` <52259811.3000604@oracle.com>
2013-09-03 10:11 ` chrubis
[not found] ` <1378215677-14258-1-git-send-email-stanislav.kholmanskikh@oracle.com>
2013-09-04 13:37 ` [LTP] [PATCH V3.1 2/2] " chrubis
[not found] ` <1378364509-20971-1-git-send-email-stanislav.kholmanskikh@oracle.com>
2013-09-05 11:07 ` [LTP] [PATCH V4] 16-bit syscalls fixes chrubis
2013-09-09 12:07 ` chrubis
[not found] ` <1377782535-15955-4-git-send-email-stanislav.kholmanskikh@oracle.com>
2013-09-02 15:28 ` [LTP] [PATCH V3 3/3] syscalls/getgroups: added checks for 16-bit getgroups() syscall chrubis
[not found] ` <1377782535-15955-2-git-send-email-stanislav.kholmanskikh@oracle.com>
2013-09-02 15:59 ` chrubis [this message]
[not found] ` <52257D67.5020900@oracle.com>
2013-09-03 11:06 ` [LTP] [PATCH V3 1/3] syscalls/utils/compat_16.mk: fix build dependencies chrubis
2013-08-27 11:22 ` [LTP] [PATCH] syscalls/setgroups: fix implicit SETGROUPS parameter casting chrubis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130902155929.GA2146@rei \
--to=chrubis@suse.cz \
--cc=ltp-list@lists.sourceforge.net \
--cc=stanislav.kholmanskikh@oracle.com \
--cc=vasily.isaenko@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox