Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp617592rda; Sun, 22 Oct 2023 02:23:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH7Lnil+aQWqmb2QEXBfHtUvX6KkaqWlwC+oQyOUd6CLOez4tgC2Ce+oXIRHpNtiBJ3kETm X-Received: by 2002:a05:6a00:10c5:b0:68f:b5a3:5ec6 with SMTP id d5-20020a056a0010c500b0068fb5a35ec6mr7843986pfu.0.1697966581593; Sun, 22 Oct 2023 02:23:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697966581; cv=none; d=google.com; s=arc-20160816; b=N5UYeZZ4cxJCVIbSa3+bNHFDpN9PkSxvI7Gx8T11BGyaHA/mKbigyTMO5sCR3VfEri SqXOGvP7E9i1Gji0EcSOdsh+9QUeE3yZqWFMdOmdQsTXqXmBRmP60X4V1UPbsoSU1r9j 0vyok7zCdgR6ozGRAJviJD0LLvldukDDaOVaUvfO7mpvUZuEb9gD2bTw+IioWz6eYFHF esvyUsnXT1CeKv7L1gJlGHglpF+5OWrWz41wRNC/jE+3emoeqBy+kmtEExCcZA/pFoR9 aJsbpzZD2NqVH/4M68Q7dUwYrUS+lYh6Wf9yLIu2b0n0+R+cKKMegQO3uhTE0eerryK2 2Ymw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=JS/E4CVLuJGgx9GfAFC/WzonzECT1jygwVYTgzzxBSQ=; fh=mdC1/KpK+YC4fyTYQLk7/kjwywPA+smMIoxoHlt1GXI=; b=u+AN0P/n1r/oG9qqnjdZBW36bdVR04vBgCOOBIwWOJFg7/B2AAmuwodQHVrvvWDd6S mXtPljQ4sF8YXviYp4dbJiXDu4YPrVTjLhSaSdsNsyRYD0OjI7d4a2bJRaCMVLiPipSX 4g+qDsGHWJoqBFjmyeYaNI62U+TnQMi8L89nAPN9lipJHI0XxvnZwl8KKGSj61j00odr xHmt0LobQJv4Tov/Mkp8A8i/uX3fBP6Nlv66/hjE1jonU+6imb45w5Ee8mSdiF/bH26z y/WpAoZ8w06xuZ6Ru5oe/HJTqYkdAfORsWp3jZNZ3v8KTPgtuGBQGD4glI1gSk3CjxqJ BVyQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id o7-20020a056a0015c700b00690c953e024si4774708pfu.119.2023.10.22.02.23.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 02:23:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 3BA4080879F6; Sun, 22 Oct 2023 02:22:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231519AbjJVJWx (ORCPT + 99 others); Sun, 22 Oct 2023 05:22:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231501AbjJVJWw (ORCPT ); Sun, 22 Oct 2023 05:22:52 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A998E124; Sun, 22 Oct 2023 02:22:49 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 39M9Md4Z003529; Sun, 22 Oct 2023 11:22:39 +0200 Date: Sun, 22 Oct 2023 11:22:39 +0200 From: Willy Tarreau To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Shuah Khan , Zhangjin Wu , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/5] selftests/nolibc: anchor paths in $(srcdir) if possible Message-ID: <20231022092239.GD2669@1wt.eu> References: <20231010-nolibc-out-of-tree-v1-0-b6a263859596@weissschuh.net> <20231010-nolibc-out-of-tree-v1-3-b6a263859596@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231010-nolibc-out-of-tree-v1-3-b6a263859596@weissschuh.net> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Sun, 22 Oct 2023 02:22:59 -0700 (PDT) On Tue, Oct 10, 2023 at 02:33:58PM +0200, Thomas Wei?schuh wrote: > 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 Agreed, this comes from the early days where we didn't have srctree, that's better this way. Acked-by: Willy Tarreau Willy