Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp405575rdb; Thu, 21 Dec 2023 12:40:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IERoUKuQOZ5nUrtEHCzopyNu92ZCc38RifnHXtAvRVhvdniAR1CjlH7c2a+IttRiidE8cjL X-Received: by 2002:ae9:f815:0:b0:77f:35f2:f29e with SMTP id x21-20020ae9f815000000b0077f35f2f29emr473792qkh.134.1703191215774; Thu, 21 Dec 2023 12:40:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703191215; cv=none; d=google.com; s=arc-20160816; b=mikDnIlDjsP9sfuB8DpKdWwo68JilKLIlKa9/jjWfhMcHvgwj8A5Kv0TTO3Oh7ik1G YsPShDKjhEy41s2uqUAU14RIhhx1cSSN35pchpZPupr8/GOzfCBzluO8e6Q4L4cCoX1i 3R/c2lXoouL28quw6xminEgZ5Rz0OqjJRVWTejFQLauGV+okwTTyMsFFUfxigxYg1qv1 2D1CHVFYS6+hRtait8QRBnx26f9L+G2I8a3Oj87sxzeSszVnrTjXO7tjDz1Yzz5SToFT ptmvl90hwJhz/yQTuTjp33rBrY2lmRY2lv+39tG3mPKpGrrV/9E6jXYIS0vzCn6tIgqL KZiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=y2n7W31aNWMIkIL9wLBmZYYyUB9rGbrcDxhFrQaq9TQ=; fh=SIXm10U0XCrZgQxBorSi+HTORsMpdRZz93hpRAbY3/U=; b=pyhhKChXyE7uBlbwyVkjeYtV70awo+29Mnam2U84DqFO4Z4Fmd50iyb11Yg3IkLCfT +cYVMpat6dzpAd2fDmtfhGq8lmhAtE3o3Zvgq335r6dlfnyTfyL/paDJLb3LE9Iab+/S zbgVIhcJZjR9vLrUwVx1IW55U+ARZovSL4/nogm4Tp9eFfdc+x+3qPK9sq0LnjQ3awsm 4wfIeIvBEGuEOPEsYxoH3cvdZ4TWTsm5/Rk8SLH3NvYg0L8sdZyCNVoyp51C68u4SHBz WECMPxfPNEXZ9BdREsVjqOlOnlI9zJL0VUC+/E/grtfU0FFTJyv1gySKy28Dlg6uVtIa E2LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dlSSALkP; spf=pass (google.com: domain of linux-kernel+bounces-9057-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9057-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q11-20020a05620a0d8b00b0077f33376a64si3137022qkl.530.2023.12.21.12.40.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 12:40:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9057-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dlSSALkP; spf=pass (google.com: domain of linux-kernel+bounces-9057-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9057-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 79FE21C22ACF for ; Thu, 21 Dec 2023 20:40:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 36C2876916; Thu, 21 Dec 2023 20:40:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="dlSSALkP" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) (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 13BB9760B8 for ; Thu, 21 Dec 2023 20:40:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pj1-f49.google.com with SMTP id 98e67ed59e1d1-28bf27be6c4so543515a91.1 for ; Thu, 21 Dec 2023 12:40:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703191206; x=1703796006; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=y2n7W31aNWMIkIL9wLBmZYYyUB9rGbrcDxhFrQaq9TQ=; b=dlSSALkPwOidhgB447+auCT8KSl/M5ZtN6RnYY2yh0k+vPE1cLK+IbgGARvDV+y3OF yTPCCeavvymFh6BaOFPUOSv8gSdTVfs5lYZJX05L2cYR3fl+vrWxYMhS7G+6AJpuHNco Flb0kyvjzuqjXDYOsCS9+OEC2vPm9FbYVAN238DLWjv5rkdm8HmMXFxUjHLedgkkHtKX jNBomSrfoMdg7SLxUsSE7lFhp5jIDV8gjGCboJQ3FryOMykUfsJ2cmvAJ7WGT5SnNgBx fvtkYPlravxYRgims4imvfGGjpk6kUtoTwnfgSLqg1QYbugrnATzNTOe8uPZUxylwpZk gVBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703191206; x=1703796006; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=y2n7W31aNWMIkIL9wLBmZYYyUB9rGbrcDxhFrQaq9TQ=; b=mvX/RvInOBP0B7OJzay4gGeVUnyi5Hlbz5yDz5bQl4w4h6gcgaaktSg3L40iRU8OoN 2zX8F9E4OiTCwCZat4fyS1bMoNdXKljUfQ5MPu+XBGckHBuyjaxpfC9kUlH+P5tocMnX DCQPS2GHBOoj1j1T4EJ7IebJ45lBM7OCxFLIz5K+mbyjLI3aS7cHrvIXP3CHtO6F60hX yzACa/c1f+/11CNbbciydWnZxAUAmNpUBbZGVaXiIJF6LKOi7yU7r7QYxi4eLidINY9x b02tUi4B/C6OTofcZjtvR+Xp3WePXhtLc8sd88xdCJvbfvclot8bGvhWtNBvfrUcMaYl ENuQ== X-Gm-Message-State: AOJu0YxGZJdRXr7DhBieDELU44Lq0MxX0lFjItqbKm70CHMX89Lq2WZ+ R40rPYKqGZNr3/8eItNnOx4JyFacsAz8aQ== X-Received: by 2002:a17:90a:7285:b0:28b:e0e9:4816 with SMTP id e5-20020a17090a728500b0028be0e94816mr313510pjg.65.1703191206378; Thu, 21 Dec 2023 12:40:06 -0800 (PST) Received: from vps.terceiro.xyz (vps.terceiro.xyz. [2a02:4780:14:7710::1]) by smtp.gmail.com with ESMTPSA id nh24-20020a17090b365800b00287731b0ceasm5842518pjb.13.2023.12.21.12.40.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 12:40:05 -0800 (PST) Received: from localhost (unknown [IPv6:2804:14d:7224:8745:26f4:3599:ce80:10]) by vps.terceiro.xyz (Postfix) with ESMTPSA id E4E5D43EA0; Thu, 21 Dec 2023 17:40:01 -0300 (-03) From: Antonio Terceiro To: Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] selftests: uevent: use shared makefile library Date: Thu, 21 Dec 2023 17:38:47 -0300 Message-ID: <20231221203849.339025-1-antonio.terceiro@linaro.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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. Signed-off-by: Antonio Terceiro --- tools/testing/selftests/uevent/Makefile | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/tools/testing/selftests/uevent/Makefile b/tools/testing/selftests/uevent/Makefile index f7baa9aa2932..9d1ba09baa90 100644 --- a/tools/testing/selftests/uevent/Makefile +++ b/tools/testing/selftests/uevent/Makefile @@ -1,17 +1,9 @@ # SPDX-License-Identifier: GPL-2.0 all: -include ../lib.mk - -.PHONY: all clean - -BINARIES := uevent_filtering -CFLAGS += -Wl,-no-as-needed -Wall - -uevent_filtering: uevent_filtering.c ../kselftest.h ../kselftest_harness.h - $(CC) $(CFLAGS) $< -o $@ +# SPDX-License-Identifier: GPL-2.0 +CFLAGS += -Wl,-no-as-needed -Wall $(KHDR_INCLUDES) -TEST_PROGS += $(BINARIES) -EXTRA_CLEAN := $(BINARIES) +TEST_GEN_PROGS = uevent_filtering -all: $(BINARIES) +include ../lib.mk -- 2.43.0