Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp435115rdb; Thu, 21 Dec 2023 13:45:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IFhN3iM2MWqdNljCxC84XahOiyf5MMjKOWKxXd351klKw3D81DSZdBpzlEPd+qJd3O1BwZG X-Received: by 2002:aa7:8ecc:0:b0:6ce:2731:d5c4 with SMTP id b12-20020aa78ecc000000b006ce2731d5c4mr321687pfr.53.1703195102966; Thu, 21 Dec 2023 13:45:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703195102; cv=none; d=google.com; s=arc-20160816; b=FtLXkywjQsEvLdsCTq5oEwaAWa+kuEcVpQTUSjw0O31NYBlOZt7OrB2ZOqSqXmqC2+ SG6CxrUdie4zcfI1yeQS+aPI0tFihJp8AGWWjKHkSJeZhQjtvk66xn2JqCL9KWtNVDFe vrxBZcZRy59E4RSat6GD+moisOZioAHjknNwJPyoPO/3NigTlkTyXpVIYVdjHus22QP9 4VxYSOgthJcHU1m0G99hiLKrVylG+MWyVolMEE+fSh9XMP32DoF7KTiYrpWHoUbIAZXA yOez1Vf7My9pcOOLzsc9K8PSSAL0Fn24DAmkPmwf4ta9L86qtWJcsEVyihYd9rboWr92 lGUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=LnneZFzTlHoKpJav6pEJp8aS2hixrEs69ZIqivt6hIA=; fh=Spwf3XGgXGY4i/yVpZYf6Q+GDiq9/wrV8hVa5rSs8I4=; b=pYDhhTmMZGjkEPPv5EcgWJJkUQvyG6XJINddV3UWBNO3LCpSS5zsWoeucZApE+SA/d AH+ClHRyGcGaDlqtof0dacvbX+cijfmIDwdscHxfVTEu/ZCEQXvmaTYFqwkDduUg7MNe xFFVdxIs1d49MS1vBApptOMyFRX2/LSlFr0dGWPbg96TX99d3pQyEfI75BDpIzsxf2tw 2JnXbst8w+bZ4nIYba3x89vYiiYQilX8FoBMonLw54qckle/ua75ff+W/izvkCZvWII9 osj+tGry9tJ7+j/5pG/KWkvLtiRnXKnbpAFPg/wgtGVIgggS0vULkpVpyv82rHusIvsh N1yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b="ZDd7CR/Q"; spf=pass (google.com: domain of linux-kernel+bounces-9097-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9097-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s35-20020a056a0017a300b006cbe5e18d29si2176678pfg.36.2023.12.21.13.45.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 13:45:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9097-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b="ZDd7CR/Q"; spf=pass (google.com: domain of linux-kernel+bounces-9097-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9097-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9FB1628635D for ; Thu, 21 Dec 2023 21:45:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B135476DBB; Thu, 21 Dec 2023 21:44:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ZDd7CR/Q" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-io1-f52.google.com (mail-io1-f52.google.com [209.85.166.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2758F768EF for ; Thu, 21 Dec 2023 21:44:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-io1-f52.google.com with SMTP id ca18e2360f4ac-7ba97708c38so5200439f.0 for ; Thu, 21 Dec 2023 13:44:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1703195093; x=1703799893; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=LnneZFzTlHoKpJav6pEJp8aS2hixrEs69ZIqivt6hIA=; b=ZDd7CR/QKngp8eIJy37FgFsozuboDa7s0JJ++M+9i4AWIoDeAOobCa7GjEgWta+5BY bLViSAxwci49FDwKW2P+LAOPPYh7AYg6TZ/5DWyhvd1o89ZZWSiZGWQf2fRGxkc4MjV0 +9WxUfz0DmPX8eaXO8i8rUgzHE8+irtETEWsE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703195093; x=1703799893; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LnneZFzTlHoKpJav6pEJp8aS2hixrEs69ZIqivt6hIA=; b=lOq2KBlYEtSdoWGDM9lxwO4YbHiU1yLz0B5NTu89+hPEPZbAJvR4AIJEv/QHO0TKEe cNNkGo4ViBxdpzLbRsTwZ1dksi7+xqCedIkWZx3u09oqYpg7Ti0LSnZobJ+ZTXOBSk6e 4akberKkkXyvwwM/htf/CeXjQZvErUnI0F+teeexfcSLYc74adNPjH6syKsNRcppF49s uZkYYkqFmZCJlwUmOpMDmNvW2Att7yqUmjgOKhO8A+G5XJASxfJokBq0mEiIQqHZ/efx Rb/RJpI0/rj9VqHRlhi8/ZTXimt5+H9zZY/e7wCpWh3el/+XoGVvdgPLFfwlxM4DaBD0 OYnw== X-Gm-Message-State: AOJu0YycobR8B690D9CNqK2nXoaWF7TryI/spNEXbB1i1KJx5PTlz/ek NIbsBdQnvbcYP/oHB+Wvi9hfBVcbnyphgA== X-Received: by 2002:a05:6e02:174c:b0:35f:b559:c2c7 with SMTP id y12-20020a056e02174c00b0035fb559c2c7mr653248ill.3.1703195093260; Thu, 21 Dec 2023 13:44:53 -0800 (PST) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id a8-20020a92d108000000b0035d58d00b7bsm713639ilb.56.2023.12.21.13.44.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Dec 2023 13:44:52 -0800 (PST) Message-ID: Date: Thu, 21 Dec 2023 14:44:52 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] selftests: uevent: use shared makefile library Content-Language: en-US To: Antonio Terceiro , Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <20231221204908.341677-2-antonio.terceiro@linaro.org> From: Shuah Khan In-Reply-To: <20231221204908.341677-2-antonio.terceiro@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/21/23 13:49, Antonio Terceiro wrote: > This makes the uevent selftests build not write to the source tree > unconditionally, as that breaks out of tree builds when the source tree > is read-only. It also avoids leaving a git repository in a dirty state > after a build. > Why can't you do that using make O= directive. > v2: drop spurious extra SPDX-License-Identifier > > Signed-off-by: Antonio Terceiro > --- > tools/testing/selftests/uevent/Makefile | 15 +++------------ > 1 file changed, 3 insertions(+), 12 deletions(-) > > diff --git a/tools/testing/selftests/uevent/Makefile b/tools/testing/selftests/uevent/Makefile > index f7baa9aa2932..872969f42694 100644 > --- a/tools/testing/selftests/uevent/Makefile > +++ b/tools/testing/selftests/uevent/Makefile > @@ -1,17 +1,8 @@ > # SPDX-License-Identifier: GPL-2.0 > all: > > -include ../lib.mk > - > -.PHONY: all clean > - > -BINARIES := uevent_filtering > -CFLAGS += -Wl,-no-as-needed -Wall > +CFLAGS += -Wl,-no-as-needed -Wall $(KHDR_INCLUDES) > > -uevent_filtering: uevent_filtering.c ../kselftest.h ../kselftest_harness.h > - $(CC) $(CFLAGS) $< -o $@ > +TEST_GEN_PROGS = uevent_filtering > > -TEST_PROGS += $(BINARIES) > -EXTRA_CLEAN := $(BINARIES) > - > -all: $(BINARIES) > +include ../lib.mk This change doesn't get the intended result of not writing to source tree. Binaries will still be written to the source tree unless O= is specified. thanks, -- Shuah