Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp505136rdb; Tue, 31 Oct 2023 13:37:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFg1cr4vbQv1CkPDLbx4uOypaO01J7x1KKFmk3fbQgaMlSRlWXCa2SsPwB0PqtPBlN2WEtz X-Received: by 2002:a05:6a21:4881:b0:180:eef7:b3d9 with SMTP id av1-20020a056a21488100b00180eef7b3d9mr3489222pzc.57.1698784642933; Tue, 31 Oct 2023 13:37:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698784642; cv=none; d=google.com; s=arc-20160816; b=Jc193i2dGCx5Q8GzewvsrY/YFTL+eAuwxe27xKlS0GPC7RfCDXLCLO3rWY0bQzyKBx 70LMdCqIlKCvFibvOTuepsRn/pjSv4y8NxQiAmR4anFzcCc8Pm3HF/nNphy4Dnr8Qsxo YybioLenS3q33PW2v85kGwGmVWyhwT5zNQd0KuMQLbOtLkG/bkHkJF3aHQlC0LP1B5mE 2w0zp6BsetY6LZHTD/7mI32nudahFaxVroKURhyYhgtakPUJTPJJJaTmqPkBX0ojlWxc iBlQEBClTQRQlGU8yUyWggjOr91wnSPL/25VxdKJVk7mTfMtu0R6dduCfcOaqh1+fJYF JA2w== 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=C/s/udNyFjqk0pNWuqwT9GM7vATD6kADIFZXqldmu7U=; fh=MEusuZMnxhrNAu45ysRmC1MHGnmniUkTNzVzpsulgt4=; b=phSx030coS7UkTJYmHflpIfD627iHUA7uVa2oY7HguSiHKYOAz9HT4kfE/5ALc4EVQ uDwDX0Wl5Zzh5pxUeen2KB0pf2StggugH6g0qWeCo2Gk4WcCy2/d+MPN6L5BFVkjM0QF K6Br5rQCCOx71FOdWfMvo4odCVAdVePR2De3KF3UT9rAIcyyl1PkfypRNqBn9SHDRjD6 HPI7n7g7BkNcDQ4Nf1j0XyPJfVum+P4dW8xQeMQpRZrsF63FyyQrstncDBp1+g1cdMHw nlnKuZQdKH8gQJTiy1krMjrJndz235lYIwLuOMXijw0frFKHf38FSPouH1BQcMU+yeGg wFpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=ILFzcJGC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id t11-20020a170902e84b00b001cc407388a8si1547703plg.337.2023.10.31.13.37.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 13:37:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=ILFzcJGC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 88681810439B; Tue, 31 Oct 2023 13:37:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234041AbjJaUhM (ORCPT + 99 others); Tue, 31 Oct 2023 16:37:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231546AbjJaUhG (ORCPT ); Tue, 31 Oct 2023 16:37:06 -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 77B5CFE; Tue, 31 Oct 2023 13:37:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1698784621; bh=EnUH+FVtH/2LFDhbHmODszdfsWGWE/DcG346HqhXK2g=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ILFzcJGCaPzR71nWlxIIPD1cs/We2OEt3ALO3BSVTtTWr1NTNNNy+kbFajQCMI0rl UF15W+0CBkN7+cnM5kKPHx5P2LpT9+waoCNmMjIiPA1ObsZCIp5EZVAISb71fAJuTp xD6mT5FVK/xv+w5le+r09255Ut6k1Vq+S1WHeUhk= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Tue, 31 Oct 2023 21:36:59 +0100 Subject: [PATCH 2/3] 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: <20231031-nolibc-out-of-tree-v1-2-47c92f73590a@weissschuh.net> References: <20231031-nolibc-out-of-tree-v1-0-47c92f73590a@weissschuh.net> In-Reply-To: <20231031-nolibc-out-of-tree-v1-0-47c92f73590a@weissschuh.net> To: Willy Tarreau , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , Shuah Khan Cc: Zhangjin Wu , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1698784620; l=1515; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=EnUH+FVtH/2LFDhbHmODszdfsWGWE/DcG346HqhXK2g=; b=RyW5XWFgW1+NuFvftheWO5iwivD2gAnupVLHTHp8ifnMh4hICk7oPe+PXPm7mzSOXQmGA6qel RDDWr1IzXaRB4e+KhoiljXuY/mGYwi8aa8cQa/37gAFhDwayUvEqas3 X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,TO_EQ_FM_DIRECT_MX,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 31 Oct 2023 13:37:16 -0700 (PDT) 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. Acked-by: Willy Tarreau 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 eb258ae1d948..b1129be98376 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -174,7 +174,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) @@ -184,7 +184,7 @@ nolibc-test: nolibc-test.c nolibc-test-linkage.c sysroot/$(ARCH)/include else nolibc-test: nolibc-test.c nolibc-test-linkage.c $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ \ - -nostdlib -static -include ../../../include/nolibc/nolibc.h nolibc-test.c nolibc-test-linkage.c -lgcc + -nostdlib -static -include $(srctree)/tools/include/nolibc/nolibc.h nolibc-test.c nolibc-test-linkage.c -lgcc endif libc-test: nolibc-test.c nolibc-test-linkage.c -- 2.42.0