Received: by 10.213.65.68 with SMTP id h4csp237787imn; Mon, 26 Mar 2018 20:22:55 -0700 (PDT) X-Google-Smtp-Source: AG47ELv3xejGHmxH8C5Zkd1rDWkSUfrwumS4VZ9+IDY7VIvAxQ09MOgHluDtxBvgUAl6jIdiWsWd X-Received: by 10.99.176.71 with SMTP id z7mr28569377pgo.74.1522120975150; Mon, 26 Mar 2018 20:22:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522120975; cv=none; d=google.com; s=arc-20160816; b=ijRVsPysG6UPmqUgezwolxvwKhK3e5MKnX5JnDv5dIWcHu5J+vPX5xgkMJ7FW7o6Uz hQfOxfBN/H6xfMsEh5Kx7eBiI0KS5x/HqQalWBoooxo1MslqCdvJQqcAgT5LWFzyzx9R RfeqA/5yy4XXEm3toRQ2QmGRT7eBRXxPBAJzuVfGeXoDHy51qk33HnzyatwlvgSNFXlI KHATDXAfAY/ZF2VkLPxn8aPlgvfCekY2Yoz3Hr1geXoLS0TXKfDJRb23qukZYI6EKCiI BFbhbQh98i9/mDdZwthx3KVHNwumCqMRYgWbrym4Vb8TwX9LGosMd0GRxk56EmyO9oVs 5rTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=/E+fd7TieHhonHTrjrQsNs79okxjLudXGIBULRqYvA0=; b=ZbBiMAqF5GjzSfMYJ1vVU5DAnbccvLYphVmysiYR4a2OW+owp9ZALxmUtslwptPHF/ fdxyjJRrjdTIqVchLXchLqt//KSKHEumiSWvI5XI2zeCz2F6vGkGLD/BmI/UYamJXrte w42opsjNcboSn5pbXVPqM5HKZwdBwWx8vr8+I8kc2gGb8Pas9OzScv4OU7spLtfMG3dO sELHnWdCIhy1o3PhFWCPhZtwKiQOdHldgxvekBv9Jj6QHpoO4iJRA8RLlVkLTlrhgQbj bcAQbOdVDDhTbUQXs8f6lMeydKbixfx2GlBtGK+6L0HDluZMMGKPibbNLxWSkyztzzwf oJpw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d63-v6si314815pld.23.2018.03.26.20.22.41; Mon, 26 Mar 2018 20:22:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752128AbeC0DVY (ORCPT + 99 others); Mon, 26 Mar 2018 23:21:24 -0400 Received: from mga02.intel.com ([134.134.136.20]:63675 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752040AbeC0DVT (ORCPT ); Mon, 26 Mar 2018 23:21:19 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Mar 2018 20:21:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,366,1517904000"; d="scan'208";a="215125693" Received: from gvt-dell.bj.intel.com (HELO gvt-dell-host.bj.intel.com) ([10.238.154.59]) by fmsmga005.fm.intel.com with ESMTP; 26 Mar 2018 20:21:18 -0700 From: changbin.du@intel.com To: shuah@kernel.org Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Changbin Du Subject: [PATCH v2 2/4] selftests/gpio: fix paths in Makefile Date: Tue, 27 Mar 2018 11:11:32 +0800 Message-Id: <1522120294-24926-3-git-send-email-changbin.du@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522120294-24926-1-git-send-email-changbin.du@intel.com> References: <1522120294-24926-1-git-send-email-changbin.du@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Changbin Du With previous improvement, the generated files from tools/gpio/ will put into tools/testing/selftests/gpio/. Let's fix the paths in Makefile and .gitignore. Signed-off-by: Changbin Du --- v2: fix compiling error when runing make in sub-folder. --- tools/testing/selftests/.gitignore | 4 ---- tools/testing/selftests/gpio/.gitignore | 4 ++++ tools/testing/selftests/gpio/Makefile | 17 +++++++++-------- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/tools/testing/selftests/.gitignore b/tools/testing/selftests/.gitignore index 9175035..f0600d2 100644 --- a/tools/testing/selftests/.gitignore +++ b/tools/testing/selftests/.gitignore @@ -1,5 +1 @@ kselftest -gpiogpio-event-mon -gpiogpio-hammer -gpioinclude/ -gpiolsgpio diff --git a/tools/testing/selftests/gpio/.gitignore b/tools/testing/selftests/gpio/.gitignore index 7d14f74..21e83e1 100644 --- a/tools/testing/selftests/gpio/.gitignore +++ b/tools/testing/selftests/gpio/.gitignore @@ -1 +1,5 @@ gpio-mockup-chardev +gpio-event-mon +gpio-hammer +include/ +lsgpio diff --git a/tools/testing/selftests/gpio/Makefile b/tools/testing/selftests/gpio/Makefile index 1bbb475..cb8c134 100644 --- a/tools/testing/selftests/gpio/Makefile +++ b/tools/testing/selftests/gpio/Makefile @@ -1,13 +1,14 @@ # SPDX-License-Identifier: GPL-2.0 +OUTPUT ?= $(shell pwd) TEST_PROGS := gpio-mockup.sh TEST_FILES := gpio-mockup-sysfs.sh $(BINARIES) BINARIES := gpio-mockup-chardev -EXTRA_PROGS := ../gpiogpio-event-mon ../gpiogpio-hammer ../gpiolsgpio -EXTRA_DIRS := ../gpioinclude/ -EXTRA_OBJS := ../gpiogpio-event-mon-in.o ../gpiogpio-event-mon.o -EXTRA_OBJS += ../gpiogpio-hammer-in.o ../gpiogpio-utils.o ../gpiolsgpio-in.o -EXTRA_OBJS += ../gpiolsgpio.o +EXTRA_PROGS := gpio-event-mon gpio-hammer lsgpio +EXTRA_DIRS := ./include/ +EXTRA_OBJS := gpio-event-mon-in.o gpio-event-mon.o +EXTRA_OBJS += gpio-hammer-in.o gpio-utils.o lsgpio-in.o +EXTRA_OBJS += lsgpio.o include ../lib.mk @@ -21,10 +22,10 @@ endef CFLAGS += -O2 -g -std=gnu99 -Wall -I../../../../usr/include/ LDLIBS += -lmount -I/usr/include/libmount -$(BINARIES): ../../../gpio/gpio-utils.o ../../../../usr/include/linux/gpio.h +$(BINARIES): gpio-utils.o ../../../../usr/include/linux/gpio.h -../../../gpio/gpio-utils.o: - make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C ../../../gpio +gpio-utils.o: + make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) OUTPUT=$(OUTPUT)/ -C ../../../gpio ../../../../usr/include/linux/gpio.h: make -C ../../../.. headers_install INSTALL_HDR_PATH=$(shell pwd)/../../../../usr/ -- 2.7.4