Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4102446imw; Tue, 12 Jul 2022 01:40:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1stls35nVbfNdmIxteCwbYeEnAnipVcQgzXLanGZmGuSBo0xKyToA9zplT+xdbzn5d080ob X-Received: by 2002:a05:6402:11c7:b0:43a:c61c:21cd with SMTP id j7-20020a05640211c700b0043ac61c21cdmr18886323edw.108.1657615225184; Tue, 12 Jul 2022 01:40:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657615225; cv=none; d=google.com; s=arc-20160816; b=xpcJBsK97ET84Q/ba8NN5jCGutUPbGreZkO+ie0ilI7K0URLpyqtEyXEwhe/gB/Qj5 Lk7c50sfFnqoFsYGy7k6CGB4P6qcw2T6zBJD1KpfTInx89VFAb3IqJOtH2G1ofbsM9tZ lHqonk2Q4ISt4jP2nU6lV2SIF5OAx98azzKksqAmctMVtfFRQEYx0+vwhRa0oGQ4Tu/W JnCMntZvZQQ0M19DC41jdPrKlsO/qYnq4jmbXxwm8UbbHSjdU9kU9aAZ+IOy5sJe+5w6 22ZZpewnunMrYU3Sx1MyaRNEB2EcUgP48jWq4eION5inP6xj9fQEGhryLdhvcIE6ASCe Ap7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JzcdRRCZu8dg2rhVJexaLtSXKNdbGkYAZV/BoqH5Hsg=; b=qzFjPeYklZuD0j/wDiu4Md0sdIXxxwf/Ox+zl7Xwz2eWV7++WXHNgeb2xZETmx3qGi WQ98UsPbVPOb7QQg3JZNpXM4qBsMRWWn4QZuoezLa37ICQw8KnQGI9DCP1/WH9gUdRfx mpZqhqJYbbkQL2hLmHaFjnymD2p5boLEoIqK/wLmI08ah/SOteLC9apGcW+ofSa0xx86 eQM4rpUJgndneIhlms0tgcgFHjkGwZsEJlnPBKiRi2X29zXp4QlZwc6sXJGQaHeFLvQ8 MV2Sj1PFr/eotQzvZMuz9W71p/ZEMUIxdG0KqL+t8tcjJtZtYuNsl9/3X1rE/3mJb0tx Gtyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=OBV5mixN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m2-20020a17090607c200b0072aef01015dsi11072453ejc.532.2022.07.12.01.39.59; Tue, 12 Jul 2022 01:40:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=OBV5mixN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232663AbiGLIaM (ORCPT + 99 others); Tue, 12 Jul 2022 04:30:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231160AbiGLI3z (ORCPT ); Tue, 12 Jul 2022 04:29:55 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6EDA3190A; Tue, 12 Jul 2022 01:29:53 -0700 (PDT) Received: from tincan.cable.virginm.net (cpc108961-cmbg20-2-0-cust263.5-4.cable.virginm.net [80.5.129.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: gtucker) by madras.collabora.co.uk (Postfix) with ESMTPSA id 6EF4B6601A24; Tue, 12 Jul 2022 09:29:52 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1657614592; bh=Z/RhoByoSEAiaAQK6oCVIVGeLmj7WGTmSLfU1UPz9UY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OBV5mixNKiQAfRRvGCgSDa/3DNwHchGtr/VXD2aC8Ira92MAdqc/4Wi6w+njwf/9G usz0n55nGKHEBEsGV65ZQtsTLqmF9J+WXK2myzw+ombfjyN5qDcP4jwk6zYowXx1U1 S+gfHYQUN9cizNmIeSHzFQ4XLLRFsmpdOq46eLR0yNo6g1SO+rsTCwOud43alxYhJB v3bwqRVO61FIXmcu6KHJX+adipujmd396jcOGUXgBcZVpz3/Zs0NkHo2URkVlyOBIf gMwg/jCwLhUdewLo80DtiZdd+88hHTXCi6GMxLMcIlzi5atSLcwmYgMUZl/xu2Wq4g dY+YpW6xG53mQ== From: Guillaume Tucker To: Masahiro Yamada , Michal Marek , Nick Desaulniers , Shuah Khan , Kees Cook Cc: Anders Roxell , Tim.Bird@sony.com, kernel@collabora.com, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v2 3/4] selftests: drop KSFT_KHDR_INSTALL make target Date: Tue, 12 Jul 2022 09:29:47 +0100 Message-Id: <4a66bf3227825bbf9007ffc9c10e52fad9ae453f.1657614127.git.guillaume.tucker@collabora.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Drop the KSFT_KHDR_INSTALL make target now that all use-cases have been removed from the other kselftest Makefiles. Signed-off-by: Guillaume Tucker --- tools/testing/selftests/Makefile | 1 - tools/testing/selftests/lib.mk | 38 -------------------------------- 2 files changed, 39 deletions(-) diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile index 619451e82863..e060777239a4 100644 --- a/tools/testing/selftests/Makefile +++ b/tools/testing/selftests/Makefile @@ -143,7 +143,6 @@ endif # Prepare for headers install include $(top_srcdir)/scripts/subarch.include ARCH ?= $(SUBARCH) -export KSFT_KHDR_INSTALL_DONE := 1 export BUILD export KHDR_INCLUDES diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk index 2a2d240cdc1b..df5f853951f2 100644 --- a/tools/testing/selftests/lib.mk +++ b/tools/testing/selftests/lib.mk @@ -30,45 +30,7 @@ TEST_GEN_PROGS := $(patsubst %,$(OUTPUT)/%,$(TEST_GEN_PROGS)) TEST_GEN_PROGS_EXTENDED := $(patsubst %,$(OUTPUT)/%,$(TEST_GEN_PROGS_EXTENDED)) TEST_GEN_FILES := $(patsubst %,$(OUTPUT)/%,$(TEST_GEN_FILES)) -ifdef KSFT_KHDR_INSTALL -top_srcdir ?= ../../../.. -include $(top_srcdir)/scripts/subarch.include -ARCH ?= $(SUBARCH) - -# set default goal to all, so make without a target runs all, even when -# all isn't the first target in the file. -.DEFAULT_GOAL := all - -# Invoke headers install with --no-builtin-rules to avoid circular -# dependency in "make kselftest" case. In this case, second level -# make inherits builtin-rules which will use the rule generate -# Makefile.o and runs into -# "Circular Makefile.o <- prepare dependency dropped." -# and headers_install fails and test compile fails. -# O= KBUILD_OUTPUT cases don't run into this error, since main Makefile -# invokes them as sub-makes and --no-builtin-rules is not necessary, -# but doesn't cause any failures. Keep it simple and use the same -# flags in both cases. -# Note that the support to install headers from lib.mk is necessary -# when test Makefile is run directly with "make -C". -# When local build is done, headers are installed in the default -# INSTALL_HDR_PATH usr/include. -.PHONY: khdr -.NOTPARALLEL: -khdr: -ifndef KSFT_KHDR_INSTALL_DONE -ifeq (1,$(DEFAULT_INSTALL_HDR_PATH)) - $(MAKE) --no-builtin-rules ARCH=$(ARCH) -C $(top_srcdir) headers_install -else - $(MAKE) --no-builtin-rules INSTALL_HDR_PATH=$$OUTPUT/usr \ - ARCH=$(ARCH) -C $(top_srcdir) headers_install -endif -endif - -all: khdr $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED) $(TEST_GEN_FILES) -else all: $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED) $(TEST_GEN_FILES) -endif define RUN_TESTS BASE_DIR="$(selfdir)"; \ -- 2.30.2