Received: by 10.213.65.68 with SMTP id h4csp608025imn; Tue, 13 Mar 2018 14:49:59 -0700 (PDT) X-Google-Smtp-Source: AG47ELtvw4a5VhwXBTUUAocdhqAvc5gvy1q/FIuH8o+GlCpa4g1f8wJS6goa/wghV6TxDEU/Ig6R X-Received: by 2002:a17:902:654a:: with SMTP id d10-v6mr1839389pln.117.1520977799725; Tue, 13 Mar 2018 14:49:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520977799; cv=none; d=google.com; s=arc-20160816; b=IRq4GdRnRRXDq5t7FLVnd/hI17IyNhp8e8VJ9AQ40j+UXE3DE2qaZ4dFHKledjYb2K ITKwiZmd+fLC3e6eo1j30w+vFW2K+ifS+/T8JGGpNrYPWsqHouVxUvCpFfdob6h44GqD 4kOV4vuJy2WA4HYxsif1ApYDOcn8/LXhRN7OKfdqmKfycjKlnXrk9C4vLQNmCzSmfulP ZfIUsVL/DOAQMOJIeX28g7m7FwCLmVDBndpquxkb5T8pOXv7P+wAwaGPaFT93HMACrI3 xvbLcEwncc+SCkA4ENXW5lxjYKqFRkzx7SgL8YQjvuM/GIkoSX4i+vZrG0ZtolnDEq0z 67QA== 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=B/p7a3PA9hyyzGCeAKYTd58m9ZowdGgjl8BccH3awcM=; b=qmnjxTEnQOLDK+aU4CXZTS6yig4G6pJ+m9w1nvnng5U+G1METppdjoAEMe0oPQNlpf 47dfGPt60+f2PZhnLsgqBB5HpbqeOjJTnRUAKYs0B9sVN5wyFi6BMyJ/U57Y84N6nZ8S Acs0GjBJgaplp6SloWxJ1TcsRmtFEonDyCDOlBbMnKGBagC/PXrbmAGRcTzkYAhnbguT 3JEeRBUSktEIH6g1qBj45W6ZAyQGBBmZ1G/4tgLozGi//K72tUo9jRHsh1jaBP/dlDVM xbUpRyFYpe2zl4khEkO9yrAemR4odL7R1Ye7fSPngkLiXllxvywMPtMLyigF/JXdaeji DQZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DOYxu6CC; 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; dmarc=pass (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 m11-v6si787036pla.724.2018.03.13.14.49.45; Tue, 13 Mar 2018 14:49:59 -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; dkim=pass header.i=@linaro.org header.s=google header.b=DOYxu6CC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932375AbeCMVsn (ORCPT + 99 others); Tue, 13 Mar 2018 17:48:43 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:36924 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752523AbeCMVsl (ORCPT ); Tue, 13 Mar 2018 17:48:41 -0400 Received: by mail-lf0-f67.google.com with SMTP id y19-v6so1703196lfd.4 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=WU0UUgZsv4xe1g+i1escMP8lV3pUi/bKWQtgTJxjekjgBr2EVBxDmU0gd8J4oS5HBh VZ9+YjcKPEeN+3cJizfcivMjVk/ssw2NvFV8G8S1UPGOePztoagkue+rkaSX7qEwKW0b j4d6BvCW5oEaEyZn+HWeZ2cOoK5S2JybS9xLZWxzhqN1nvTA4azL1/qnJG803PBVw2tx OX0JxAtjha/PelpGK4zh/A24EG4Xlc0bzzXiVMqZzulOat2QafsqORXTZmC18LPJ7kcc ND9VyPZ301DbwnvTAKMoH5U42r8VgiXxe7/cZN/V9xu/OQcWOKoCcIXeUOJpUhM+zkxW EMgQ== X-Gm-Message-State: AElRT7FiElHu5NUo3rDgxwYe6ZLxNhy72sA7lrHy//KYuFg+rVASfl5+ 79KdBEsu5uZZiAWZOVFPflkAxA== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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 -- 2.11.0