Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4158487imw; Tue, 12 Jul 2022 03:02:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vUbpLtj8HWLG4QgSHhJWfJDIjHChqKJeRAMB39z+cAotUCWL0T9PGxU3lkONqTRsbT348R X-Received: by 2002:a65:6cc8:0:b0:3fe:2b89:cc00 with SMTP id g8-20020a656cc8000000b003fe2b89cc00mr20096392pgw.599.1657620173689; Tue, 12 Jul 2022 03:02:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657620173; cv=none; d=google.com; s=arc-20160816; b=pFtL1pARsqKAc1cUyQwFo9xvO2RrJlbX81uE5F7KA+H//CvycyWZMzqruweFsdfUF4 rfbPQY5QzouFHpqpeYwFEuWH9HnGIehOjLcMw7BT9K1XNu9oF4wutfOQXaRFe/LutRIP zNQXGCPmmlG+LjIJURnX0egQCpU/iO2rkSH/0DwwwMfX8azIlOEUCAg1zreb9yg5UHBR BmVrS2Izsh5B5Z+wI33JheoBShS9zLKZa2PvYT7i6nQ6Sqt8pel17P+IwOjUX8BwSScD V4TnKIqPSHngSS66Vqm790rtf8zuthdNi+ZHLW+4nxnaxpnYNYNuKywFcUqvnEPWWtUB C3tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=E3bJNjTQ0sljopXALlhyXxa+mX72VOlGEbg1L7QIj1E=; b=sf9YfHfqNEIkIw8sEOLNRpe5sLYM3Cfr9kxsD1p1nzuGZN4PFO6SA2UHeIS9TBb4Sg vPAhMRSjUFNy60OxVVUZ684HoxGGE0ZqR7kFiQWh6UIgR/yvFxJ51r39W2++mff38sm4 oNdoS3DCchJpZM5OmlrrFSPI5/n+S5zT3sgqsu7y1T84xg+p0xcz9jo/bB6SAzjx1zMG Gld/wqctGFQ3+thR804umhiBymxinYqeDxD9t06vfUl40nWADoKyv3FHU3qkiwNz2yy4 KSoaYRQxEokIh1n/30GJR2JDh6w3eKjKxgM/PCfA89hE5897AJkqzDhqMnfyCh6YOUUq 3H6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sWuqwMsZ; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f21-20020a656295000000b003fcaefeeec8si11859813pgv.115.2022.07.12.03.02.21; Tue, 12 Jul 2022 03:02:53 -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=@linaro.org header.s=google header.b=sWuqwMsZ; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232036AbiGLJ7T (ORCPT + 99 others); Tue, 12 Jul 2022 05:59:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232378AbiGLJ7S (ORCPT ); Tue, 12 Jul 2022 05:59:18 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0B962DABD for ; Tue, 12 Jul 2022 02:59:16 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id v7so4999596pfb.0 for ; Tue, 12 Jul 2022 02:59:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=E3bJNjTQ0sljopXALlhyXxa+mX72VOlGEbg1L7QIj1E=; b=sWuqwMsZhRcRkPdenKadW7Dk/P/7ur4EL9j6sqVJ1bhlRfAY/oc7xmZVG1CiFGk0Ns ljYuR0X/umNI2OYd0XO6XR9zETL1IGaw/Zn/J8+VPfgcB/6atpffIZRhjsK0TILzHjdB B+LnH2U5prvK022gJ9+wZ32aGjsm2fIaVJPaEjCzDWclbcDTZUzvWp7uEisBBdtPYbLT KiWyfu1ocqksvCW4CGzQ2GRXXpi1xWdyRd55/JdRNg/PnoekbukxOj011f5a24tooUea Hm2ftl0+N3xge9PtB31Rps2eG7q9Mmp7SWAdl3fPRVZJSN0h+gtJarWOCsKDlCZzqqoN Az7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=E3bJNjTQ0sljopXALlhyXxa+mX72VOlGEbg1L7QIj1E=; b=QWc/DK7KaKiKFddRSBabtu+j2rGWadr0PI0G4EFyPjj3zERvv7W11aRXHQMcHdQVgh Q9jQE7BTnlysdTCqHKrSo9KvIz7i7LruYx1VimpeJjWscktVQerIEoSG+3r+h69Fa/fo KrxX9okOswOjDdWpxBqPFCVOFNWRyitr8QFcY8ZfADRnTfIx8Lss4E5SAkAKi9AFactz g/3T/NhIQIvlezgi92d6jDDZ3jNSoQDA0NoAlwc6KddLdbYws/V0moQH+ncSaX3cC0r6 vwYWj30M1/fWLBZYNq/4bKUGk2PUjInJ+NUiJY1GBB2qdG5ZOIEuaR20ix2BiLfJiVXI bM9A== X-Gm-Message-State: AJIora+hoh0GvB9e+uqMK5eNqdbwmjMLqgEiyhhqdqQLDZYikrDEKYtW HRGG1utLaNkAN0AkR24fxFvzloL361B8E2/QGm35xw== X-Received: by 2002:a65:6a4a:0:b0:40d:dd27:80fd with SMTP id o10-20020a656a4a000000b0040ddd2780fdmr20580395pgu.54.1657619956363; Tue, 12 Jul 2022 02:59:16 -0700 (PDT) MIME-Version: 1.0 References: <4a66bf3227825bbf9007ffc9c10e52fad9ae453f.1657614127.git.guillaume.tucker@collabora.com> In-Reply-To: <4a66bf3227825bbf9007ffc9c10e52fad9ae453f.1657614127.git.guillaume.tucker@collabora.com> From: Anders Roxell Date: Tue, 12 Jul 2022 11:59:05 +0200 Message-ID: Subject: Re: [PATCH v2 3/4] selftests: drop KSFT_KHDR_INSTALL make target To: Guillaume Tucker Cc: Masahiro Yamada , Michal Marek , Nick Desaulniers , Shuah Khan , Kees Cook , Tim.Bird@sony.com, kernel@collabora.com, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 On Tue, 12 Jul 2022 at 10:29, Guillaume Tucker wrote: > > 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)"; \ Should this be removed as well, since 'khdr' gets droped from file the lib.mk ? diff --git a/tools/testing/selftests/landlock/Makefile b/tools/testing/selftests/landlock/Makefile index 1313e44e8fb9..99f88c52d61a 100644 --- a/tools/testing/selftests/landlock/Makefile +++ b/tools/testing/selftests/landlock/Makefile @@ -13,9 +13,6 @@ include ../lib.mk khdr_dir = $(top_srcdir)/usr/include -$(khdr_dir)/linux/landlock.h: khdr - @: - $(OUTPUT)/true: true.c $(LINK.c) $< $(LDLIBS) -o $@ -static Cheers, Anders