LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Shuah Khan <shuahkh@osg.samsung.com>
To: gorcunov@openvz.org, akpm@linux-foundation.org,
tranmanphong@gmail.com, mpe@ellerman.id.au
Cc: Shuah Khan <shuahkh@osg.samsung.com>,
linux-kernel@vger.kernel.org, linux-api@vger.kernel.org
Subject: [PATCH 1/3] selftests: ptrace build fails when invoked from kselftest target
Date: Tue, 10 Mar 2015 16:00:57 -0600 [thread overview]
Message-ID: <e4accbcb28e4dc1c9367611d21aca14c7db4ce07.1426022048.git.shuahkh@osg.samsung.com> (raw)
In-Reply-To: <cover.1426022048.git.shuahkh@osg.samsung.com>
In-Reply-To: <cover.1426022048.git.shuahkh@osg.samsung.com>
ptrace Makefile doesn't have an explicit build rule. As a result,
ptrace build fails, when it is run from top level Makefile target
kselftest. Without the explicit rule, make works only when it is
run in the current directory or from selftests directory. Add an
explicit build rule to fix the problem.
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
---
tools/testing/selftests/ptrace/Makefile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/ptrace/Makefile b/tools/testing/selftests/ptrace/Makefile
index 47ae2d3..9067567 100644
--- a/tools/testing/selftests/ptrace/Makefile
+++ b/tools/testing/selftests/ptrace/Makefile
@@ -1,7 +1,8 @@
+CC := $(CROSS_COMPILE)$(CC)
CFLAGS += -iquote../../../../include/uapi -Wall
-peeksiginfo: peeksiginfo.c
-all: peeksiginfo
+all:
+ $(CC) $(CFLAGS) peeksiginfo.c -o peeksiginfo
clean:
rm -f peeksiginfo
--
2.1.0
next prev parent reply other threads:[~2015-03-10 22:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-10 22:00 [PATCH 0/3] selftests: ptrace, kcmp, efivars build failure fixes Shuah Khan
2015-03-10 22:00 ` Shuah Khan [this message]
2015-03-10 22:00 ` [PATCH 2/3] selftests: efivars build fails when invoked from kselftest target Shuah Khan
2015-03-10 22:00 ` [PATCH 3/3] selftests: kcmp " Shuah Khan
2015-03-10 22:09 ` Cyrill Gorcunov
2015-03-10 22:41 ` Shuah Khan
2015-03-10 22:45 ` Cyrill Gorcunov
2015-03-10 23:35 ` [PATCH 0/3] selftests: ptrace, kcmp, efivars build failure fixes Michael Ellerman
2015-03-10 23:37 ` Shuah Khan
2015-03-10 23:40 ` Shuah Khan
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=e4accbcb28e4dc1c9367611d21aca14c7db4ce07.1426022048.git.shuahkh@osg.samsung.com \
--to=shuahkh@osg.samsung.com \
--cc=akpm@linux-foundation.org \
--cc=gorcunov@openvz.org \
--cc=linux-api@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mpe@ellerman.id.au \
--cc=tranmanphong@gmail.com \
--subject='Re: [PATCH 1/3] selftests: ptrace build fails when invoked from kselftest target' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).