Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp1862229rwb; Sun, 6 Aug 2023 04:57:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHGJoStYJMpc/Z1f8lHkAlFvvRWrNgdND9gwSKzgqsXSLeATjbpGNdVzWLt6UGZcLZ1hSEc X-Received: by 2002:a17:906:76d7:b0:992:91ce:4508 with SMTP id q23-20020a17090676d700b0099291ce4508mr7158024ejn.53.1691323051753; Sun, 06 Aug 2023 04:57:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691323051; cv=none; d=google.com; s=arc-20160816; b=WUxr7LVOkwJEezqPUNdYtgrTxO0UW8SWdurpGKUKffomc1WI29d8Wobr+5zY7GUHg6 cwWKmmgGT6TAzkMLs11XWXhnrozzlS+VsDZHWYFyJMjjSeni2iEO8he3FGxnXX1vho7l Y8GwMyxYYUw0M8ZQO4cDbR6OsQ3EokvX15WfbQL9qsCDsgSwuBrm/oKC70JKpK0Zgod2 qmzVrevXOegp8rIx5Ir3WIFoKlYsOjnILGGYrOWDNoybRXPQyjPHYyPJLhvPV2xeGPTp iF0zDN7nC3Ta4Ei9dE4Iuqb5MyaFZ7urQZjJwEsMKdEiXPNcQxa4PkF3j8ftpe57VYwI B16A== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Gru4Hlbr+evYfDbL7lZX7UVmu1T56mhUpZMcoTT2A1I=; fh=wyimPdTOn8xZ/PnMz39J6I7iMPR2IzUL+hxDWbyVwE8=; b=IXkG847qd7zcCHxwTg5KsPlsi9A+nF2x1JTrCZRc9qqb7huQ8r7bpd5krXJabyvegP A1nNzM8HgBvv0NyGYc6FCVCF8byd+jZq36b4QBJSFcZqr84swq7TW2GzZW4q7TJ5PFlU pslkUmDCL8UTfWQTsNsFMxH8J8E1bNM7oW5tUdZ8vFS9p+MSJc+EimqSQnI/9Y0c4K/D B3AbN2TKY/aEx1HnOX367uDpssherBCEDBWn8s1svWCz5d39XY44O8Co7fD4I1rzaPvX M4zI5x1UYog46tmkfGnk2/nNZSHwUlIBxcwFMxdqFZDJFz3Rlo4QIz+W7vTTdc4LRbMc ZDaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f17-20020a1709062c5100b00994936a6f11si4458507ejh.957.2023.08.06.04.57.06; Sun, 06 Aug 2023 04:57:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229662AbjHFLVr (ORCPT + 99 others); Sun, 6 Aug 2023 07:21:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjHFLVq (ORCPT ); Sun, 6 Aug 2023 07:21:46 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E9AEE11D; Sun, 6 Aug 2023 04:21:38 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 376BLNHo013027; Sun, 6 Aug 2023 13:21:23 +0200 Date: Sun, 6 Aug 2023 13:21:23 +0200 From: Willy Tarreau To: Zhangjin Wu Cc: thomas@t-8ch.de, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Thomas =?iso-8859-1?Q?Wei=DFschuh?= Subject: Re: [PATCH v2 3/3] selftests/nolibc: fix up O= option support Message-ID: <20230806112122.GF10627@1wt.eu> References: <06d96bd81fe812a9718098a383678ad3beba98b1.1691215074.git.falcon@tinylab.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <06d96bd81fe812a9718098a383678ad3beba98b1.1691215074.git.falcon@tinylab.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_PASS,T_SPF_HELO_TEMPERROR 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 On Sat, Aug 05, 2023 at 02:13:11PM +0800, Zhangjin Wu wrote: > To avoid pollute the source code tree and avoid mrproper for every > architecture switch, the O= argument must be supported. > > Both IMAGE and .config are from the building directory, let's use > objtree instead of srctree for them. > > If no O= option specified, means building kernel in source code tree, > objtree should be srctree in such case. > > To support relative path, as suggested by Thomas, $(COMMAND_O) is used > to pass the O=$(ABSOLUTE_O) to the $(MAKE) commands. Zhangjin, I cannot get this one to work, regardless of what I try: $ make -j8 O=$PWD/output-i386 nolibc-test XARCH=i386 CROSS_COMPILE=/f/tc/nolibc/gcc-12.3.0-nolibc/i386-linux/bin/i386-linux- CC=/f/tc/nolibc/gcc-12.3.0-nolibc/i386-linux/bin/i386-linux-gcc (...) CC nolibc-test In file included from sysroot/i386/include/stdio.h:14, from nolibc-test.c:13: sysroot/i386/include/errno.h:10:10: fatal error: asm/errno.h: No such file or directory 10 | #include | ^~~~~~~~~~~~~ compilation terminated. I'll leave it aside for now as I've spent way longer than I hoped on these series. I could take the previous two patches however. Thanks, Willy