Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp101933rdg; Tue, 10 Oct 2023 05:35:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH/6SlLQ/AXu1DGcx0bXfzhyIlA57ehPDol8/29EDJTL2w8wG3YpUdKasxz8t7fR3sexPvB X-Received: by 2002:a05:6a20:970e:b0:15e:8962:4101 with SMTP id hr14-20020a056a20970e00b0015e89624101mr14155273pzc.54.1696941308024; Tue, 10 Oct 2023 05:35:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696941308; cv=none; d=google.com; s=arc-20160816; b=mClAVl0jjRCwwZvkuOVjH4eLl50yL4Zph7+kdYp3Kb7chSKImwxCpRsVdFui8ick/q ZpzayRTl4tp/0gK8AUZaQ320/Ed5iRVBsvLn6wuIBRvU7Ed6icJLT7hAUDORqEpMxQQa YLD4EJMz8ifu4gx9Kgv/iqLXX8MdRodlrHmSXPQiVIeqHtjVFDSof08SYzdePWtIGBuh MfM/dK/pa2j6lWawATd5D8RDjumo2Mx0aLs6eyzdTdqKT1z4hlV3qmS5qgmR+qbjQVjJ /5og8qE5W4FzYQLtJ3uwJ+BcfCovBlvcnCG8onN+nhd0BhUK80TbarCDK6UvVwvZ1D0n sYEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=xFh8GqH22ESUpTcuSCBCWCk8mKJdzSeU27sSstMmtVY=; fh=9sqEKGXuwAA9c0V9ZXRADQA4HhJpzxYAPqBLFba1wk4=; b=xxQuCRoetf75uf5yB2BJqJGn2dkFRn0ajAQ/QzjbnPTAbmQCy3NH/XdCnZG/YtpETN N1+SOlSNgvM1X6miQvKIvTZLdbVsmaITGDYMUm572KbrzzQRDZgVK3fHoWX0hf+g/CDy 7Wv+GCFgN0D+bMporXJv93uB5aryTEeAu33Bn6FXHmHUPeUIq02ryvMlZ5yp4lStfabL y6mIkZImyytSqlCXHR+5Ng5VrNt2huOueFhRtgCs79nO1E3xLYdoV6hlAWgf+Di6ZoJw XEzCp6DoboaQeYtxw/o62Wozo/xLchQiAuHy8S9a/qYKC7TFhZZ3L7o+JPgnPh8klDN8 d7sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=lx3KNP+O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id d129-20020a633687000000b0059b8e2b0ec3si1600181pga.661.2023.10.10.05.35.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 05:35:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=lx3KNP+O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 75DEE816EF77; Tue, 10 Oct 2023 05:35:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232080AbjJJMeb (ORCPT + 99 others); Tue, 10 Oct 2023 08:34:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231928AbjJJMeR (ORCPT ); Tue, 10 Oct 2023 08:34:17 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A6EF11C; Tue, 10 Oct 2023 05:34:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1696941245; bh=hixffEo6Od5BKvLAa5YL7lg4UjAnDYgxCrpKJ2QsowA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=lx3KNP+OrSMDesEOP/6O8tZLVwMGi+QevwDFDT3qHF8IG2SUsmA2KIGHH73jpOzLf npr7PcECkFSkT4sYG6x2UbQQny2sDepg6BCl/QEfgYdb06yRzINCiA7EU/VCjHj0S1 kbLHyuDcldSRxw8ayz5FWXyGMzlY6DLizCvmnE+o= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Tue, 10 Oct 2023 14:33:58 +0200 Subject: [PATCH 3/5] selftests/nolibc: anchor paths in $(srcdir) if possible MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20231010-nolibc-out-of-tree-v1-3-b6a263859596@weissschuh.net> References: <20231010-nolibc-out-of-tree-v1-0-b6a263859596@weissschuh.net> In-Reply-To: <20231010-nolibc-out-of-tree-v1-0-b6a263859596@weissschuh.net> To: Willy Tarreau , Shuah Khan Cc: Zhangjin Wu , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1696941244; l=1347; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=hixffEo6Od5BKvLAa5YL7lg4UjAnDYgxCrpKJ2QsowA=; b=Yeyu0n2VOJ82yYaeMfS6OUy6louhOtnaeMYZ7aWmOmVdzx6zfBp8W8AkTzKCUwHkpvTQRI4No 78YKz0kxgnBBHULSkIKMMgOCz9Uy3ABmI7jRCvB1TI1l3xqRlPyv6Mn X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 10 Oct 2023 05:35:03 -0700 (PDT) X-Spam-Level: ** It is easier to recognize paths from their well-known location in the source tree than having to resolve the relative path in ones head. Signed-off-by: Thomas Weißschuh --- tools/testing/selftests/nolibc/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 258293639572..598d53c5cb7b 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -167,7 +167,7 @@ sysroot: sysroot/$(ARCH)/include sysroot/$(ARCH)/include: $(Q)rm -rf sysroot/$(ARCH) sysroot/sysroot $(QUIET_MKDIR)mkdir -p sysroot - $(Q)$(MAKE) -C ../../../include/nolibc ARCH=$(ARCH) OUTPUT=$(CURDIR)/sysroot/ headers_standalone + $(Q)$(MAKE) -C $(srctree)/tools/include/nolibc ARCH=$(ARCH) OUTPUT=$(CURDIR)/sysroot/ headers_standalone $(Q)mv sysroot/sysroot sysroot/$(ARCH) ifneq ($(NOLIBC_SYSROOT),0) @@ -177,7 +177,7 @@ nolibc-test: nolibc-test.c sysroot/$(ARCH)/include else nolibc-test: nolibc-test.c $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ \ - -nostdlib -static -include ../../../include/nolibc/nolibc.h $< -lgcc + -nostdlib -static -include $(srctree)/tools/include/nolibc/nolibc.h $< -lgcc endif libc-test: nolibc-test.c -- 2.42.0