From patchwork Tue Mar 13 21:48:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 131536 Delivered-To: patch@linaro.org Received: by 10.80.210.197 with SMTP id q5csp1348662edg; Tue, 13 Mar 2018 14:48:43 -0700 (PDT) X-Google-Smtp-Source: AG47ELv31AbgTshTRo/YLaDADmMxDj4NnI05zjSi4KlXez+XSom4s9F7PlBilFB1kbu+0kiWKKRo X-Received: by 10.101.88.130 with SMTP id d2mr1071320pgu.383.1520977723766; Tue, 13 Mar 2018 14:48:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520977723; cv=none; d=google.com; s=arc-20160816; b=fjU1GRwBsfrtj+CVxX1pUjm9zXgmLN722n7S7DC+huHGl0/+A2yRa9XXoWpaS9HNLw KRHeuQfhGNX0BbtSDLGGoMlDRADHEO9vrSfy0padUhOPMYXPseoPGAUJgUzOoQmsLtfE l93DWrN5fU9nL/AkDa/WVjiR4Z/rbaTTGM5o3lkqe1YEjwLvE4ARhtKF0SfabbXcD+BA kHNdGRwvCL111EpUO6NcQ4Av//QcIzsiWZaF2fbcdY9YCtEip9UqLkpCo5gJKvik4gfP l9CyaPZ9bP7UCvDdyq1PxpavkJ1HT7eqMLj6Jf6e8Utg0zTjBgkDqDJKP3Ku2PSeY6an VtNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=6sg4CMY8Do1Dykpe2LY0z79nqHrqGE8Fb1q+k+WfDb0=; b=BxBT9zVyaO1GzjXAFA6E3kEJovqzQC2XLGGgxqGg5EQdP859GMaBqKLEd/rukF4KLJ jgx2ocRqPwL9b2M46/cIjhIiBsv2f5WcGYpxyXbdsO2JsAMASbxSCdkZ07bKcaZYZZnb OrznUA2hYwkcjF4U4rc6V025fvcn3NT/xE4QnU+fBD9mxwARdi8mV2oftnImXqYOo00r pFhHNpYYnBLGUCm5myUreTS3qraEwqx+Z5sraDaQER8yERaRuCt3mu4DvXsMVgVPQASR 4/Z5NQ84tRmhekjjg0HeZ+sLoijngikFR+TkzOzpDXdCkk5v2PwE298Yftg5URzHSWoo 1tLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=DOYxu6CC; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d90-v6si795184pld.40.2018.03.13.14.48.43; Tue, 13 Mar 2018 14:48:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=DOYxu6CC; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932257AbeCMVsm (ORCPT + 5 others); Tue, 13 Mar 2018 17:48:42 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:35477 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752100AbeCMVsl (ORCPT ); Tue, 13 Mar 2018 17:48:41 -0400 Received: by mail-lf0-f65.google.com with SMTP id t132-v6so1706771lfe.2 for ; Tue, 13 Mar 2018 14:48:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=B/p7a3PA9hyyzGCeAKYTd58m9ZowdGgjl8BccH3awcM=; b=DOYxu6CCxdoRyJoYosQDMyflI1iC8A8AGsRD7+U5K5uMaa2ijxkd+QCLXk6hl7Z+2j Ar/XuvDUf9Rdl3aM/O99F4DNla9z5BdqZ+inxgcUU5qDhFmiw97avSGKvplL9JMOe09J 4mVtN1/KpunGzQZLxy7tRw4dzoPphZ3GrFwtY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=B/p7a3PA9hyyzGCeAKYTd58m9ZowdGgjl8BccH3awcM=; b=GAncgxeYZZaf51DIgWOiZxaKEYCMtKEkiqiCzrVNdQoiPb0FNtfGUHx134x3rJvH4F 4isTc1YHtuA5XI4A5dhLjxoJj30ONKGq0zQSpgn9WNyiaCfefY2HMlyknxACOfL7ISav h+PjOVaJ9MhTkj4gr0Jsqp2RiYpVzfz4/MYK8Ba7j72n2BchTmwbIwecf0wR6NrOv9Fc ZeXuWcbmhGZGn2IaC80bFVOtWFKkm69XqYRpYhrAzthB3sdcgPnAcjtiZ9pOlV9mAhST Gqz+ZNrbIhjo3xEhuxcIejNxA986EFz2IOuTLK3ydn1UIqNa1FFglQwoAGRv56ShXCYE Haog== X-Gm-Message-State: AElRT7HU0Lr68I7sunm+XWzaf7AxnkU/Bpzr2eh7ffCm1K1Kf+Jem4SD ulx39PpV2lhXJMMhFHeDkcbXpg== X-Received: by 2002:a19:eb0b:: with SMTP id j11-v6mr1704702lfh.120.1520977719776; Tue, 13 Mar 2018 14:48:39 -0700 (PDT) Received: from localhost (c-073070d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.48.7]) by smtp.gmail.com with ESMTPSA id a142-v6sm268719lfb.11.2018.03.13.14.48.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Mar 2018 14:48:38 -0700 (PDT) From: Anders Roxell To: shuah@kernel.org, bamv2005@gmail.com Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Anders Roxell Subject: [PATCH] selftests/*/Makefile: stop calling headers_install Date: Tue, 13 Mar 2018 22:48:33 +0100 Message-Id: <20180313214833.14645-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.11.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Various tests should not call headers_install. Adding headers_install as a prereq before building kselftests. Signed-off-by: Anders Roxell --- tools/testing/selftests/Makefile | 5 ++++- tools/testing/selftests/gpio/Makefile | 6 +----- tools/testing/selftests/vm/Makefile | 4 ---- 3 files changed, 5 insertions(+), 10 deletions(-) -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile index 2d73f7f0b180..5b8553654d6b 100644 --- a/tools/testing/selftests/Makefile +++ b/tools/testing/selftests/Makefile @@ -74,13 +74,16 @@ endif export KSFT_TAP_LEVEL=`echo 1` export BUILD -all: +all: headers_install @for TARGET in $(TARGETS); do \ BUILD_TARGET=$$BUILD/$$TARGET; \ mkdir $$BUILD_TARGET -p; \ make OUTPUT=$$BUILD_TARGET -C $$TARGET;\ done; +headers_install: + make -C ../../.. headers_install + run_tests: all @for TARGET in $(TARGETS); do \ BUILD_TARGET=$$BUILD/$$TARGET; \ diff --git a/tools/testing/selftests/gpio/Makefile b/tools/testing/selftests/gpio/Makefile index 1bbb47565c55..9ef4d751268b 100644 --- a/tools/testing/selftests/gpio/Makefile +++ b/tools/testing/selftests/gpio/Makefile @@ -21,11 +21,7 @@ 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/gpio-utils.o ../../../gpio/gpio-utils.o: make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C ../../../gpio - -../../../../usr/include/linux/gpio.h: - make -C ../../../.. headers_install INSTALL_HDR_PATH=$(shell pwd)/../../../../usr/ - diff --git a/tools/testing/selftests/vm/Makefile b/tools/testing/selftests/vm/Makefile index fdefa2295ddc..58759454b1d0 100644 --- a/tools/testing/selftests/vm/Makefile +++ b/tools/testing/selftests/vm/Makefile @@ -25,10 +25,6 @@ TEST_PROGS := run_vmtests include ../lib.mk -$(OUTPUT)/userfaultfd: ../../../../usr/include/linux/kernel.h $(OUTPUT)/userfaultfd: LDLIBS += -lpthread $(OUTPUT)/mlock-random-test: LDLIBS += -lcap - -../../../../usr/include/linux/kernel.h: - make -C ../../../.. headers_install