From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753754AbbCJWCR (ORCPT ); Tue, 10 Mar 2015 18:02:17 -0400 Received: from resqmta-po-09v.sys.comcast.net ([96.114.154.168]:38074 "EHLO resqmta-po-09v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752183AbbCJWBJ (ORCPT ); Tue, 10 Mar 2015 18:01:09 -0400 From: Shuah Khan To: gorcunov@openvz.org, akpm@linux-foundation.org, tranmanphong@gmail.com, mpe@ellerman.id.au Cc: Shuah Khan , 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 Message-Id: X-Mailer: git-send-email 2.1.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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