Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp62247lqo; Thu, 9 May 2024 12:37:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUcRSMA2WEEBcu3wq+Ytr7piaFfU7Bmjt9SOmaw2Omo5VRSTMoaydieBJ/iloHLaDAnaFoV/zFfsOC/Zy8BjJIiTxGCuBW9tuNBdAse8g== X-Google-Smtp-Source: AGHT+IH00JEPfoiVq3oTVHv7WH4NtH/96BMi2KBD+tAid2YTR4fQ18stj+19/YnovVSfa1lgW5g9 X-Received: by 2002:a17:90a:630c:b0:2b2:6de2:cdc7 with SMTP id 98e67ed59e1d1-2b6cc3429f7mr491052a91.20.1715283478694; Thu, 09 May 2024 12:37:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715283478; cv=pass; d=google.com; s=arc-20160816; b=ZnuZ1LOwuqUn9z/nHujv4E90XoTRCSJjvpCpYXymsN7VXFn9bJvLRIPVj/b6PXWNuc iabdUuTgi7fGDkEWlaZEMwCRfIvlQaSXUxYUH3RtS2fJDKftLq0Wb1DwstbAHmn8VvAi wfYgGZrKNMoHXUUCvg6SP/mrZQs0tskJUqnLkhizbGr0dhqXsloewQUAcMh+lHHEq+Uz cXrudpVu3ijeOanZrjAnT/4SCNgjH/EaBcKidOvlAsXzCf8g8xpLG4Oy2XUpEDqLQvLN +fNFJsBvF3kaIGNEquFEkM9dP3tzHQdChypiJZYiK/8eYwmvYpB6pqhPkrn4ay0a+pF9 Q+0Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=dVNOzZpNQESIStqX5v4OYaJlP6P2QFvXq+D0k/b2kL8=; fh=xoBdHjNEVSoohhRJrjVqRTU/Wsv4jQILvaMGYKD/bwk=; b=hTglcK86eVXrIAikOYNHtbmy/Kil6HEnGA1O7II1Gp7FHyd8RzJ3YEm4wsLsD12Edr 6RDzRcrAQduAtQaOsMe1bPS57AF5H0/WPuesYrOhH/MbDL4IfNXXS9NRJufgb/ovU3Vq hlEQxk6pV769uxu6ZoSizdn7GoGN6vojsf9XCXSB1WcF/EZerWe9IbhF6u8nMPTJZ0GZ 07fN0t1dsmlLw3/hPgM/dJaeVfh2RfUYJvs5D1MtTFTn5u8XoSldt2dPGOyeeAahZryr jU0lSnNu5o+J+Hnk1FhYRoL59/VVpKKzKZV7O02lYKUMREy1OELd78QJt/JmkNgij9Ub lBAQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R5cGNiTm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-174828-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174828-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b628a6a3cesi4070034a91.86.2024.05.09.12.37.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 12:37:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174828-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R5cGNiTm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-174828-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174828-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 57B2CB21D88 for ; Thu, 9 May 2024 19:37:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F0E87FBB4; Thu, 9 May 2024 19:37:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="R5cGNiTm" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2086FEED5; Thu, 9 May 2024 19:37:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715283431; cv=none; b=paSs+GkOim4S2p8p0oL4eGnvgf/gwTMbpoC5/nAhCeX/JH2j7hYR9PXzIP+p8fmuPEYkeV3tZwOS/FTKxtRpHXxWC7XYXcHkhiJ6R/CWSxKu/cCEpul95zEIsTOhBbY40zV+XnDkk+teNbDBKx3Mvh1z7dWeR3b/RGXFf/s2SQk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715283431; c=relaxed/simple; bh=kFJJ2GCFHMrGsA2nEYZ+N28F2+0s0EpfhS927die1f4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=g+Rk/iHFVvpDvq7xY5wGMSwSELdYZlrhyXdSbOMEkN+mB9BD8/oK2YJTlSF3dfCANr4YiJMI0I/RmlU/l+uk1RTcuf4wyPKjFLNdhys/wAH+L7tQhOatoQvYxNO8IM8MNENWHFkiayi80vBUa6iXUuECVijDVZxobHSMEWGYmag= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=R5cGNiTm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A951DC3277B; Thu, 9 May 2024 19:37:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715283430; bh=kFJJ2GCFHMrGsA2nEYZ+N28F2+0s0EpfhS927die1f4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=R5cGNiTmAUmmNUAhU3bTVFM8iZdVnTjqtPcPSUUY0nPckjA0KtRcUiOMxuyom2/GR NprYgE5Bk72Y8mEwkbO2jWUJ6ezPZFbrmE3TwSCkP80/LS0VHUSFyiXmrzjufBhtqF aS38pyzMXLUAGIsKZKDN68UCQ9rncjbclgBoXXMOG2spS/RWE+Zj23hfOTzYsYCk1l BOSVPnaPPSmGhRCmGEKSogd6tRODmAsTWfun2eK11K3amJidv1ASMWWbU9f4x4LXwb PXyHmGMl/ARLCmWaHesNIMtJvfjCisDj++t3PH6rrUdYXRcgvD2bb6iL0f4bJVmLZx yBB5SRZoX0afw== Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-52192578b95so1398076e87.2; Thu, 09 May 2024 12:37:10 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCXqkV/5V7tEC2xd+3XVOSIuKCvt2rXqEDvmgbAXpMYJOJNjSg0jIIq2Da/TmprMBWvbaBD1DkJtGqRJqCfDT2sQnzYfilMv2B53iBpEZBMfiL5XwtZzoAkqes0lnps44Ea3/+G1HkYwTQ== X-Gm-Message-State: AOJu0YzaIKSAz7JV6ShH4pLKxioGkID2TyqzqKTPr6TO7OSNrka1kQvA PSqauTFFkKiPXWe4mxGMz7wsO74SkQ56c5Yq6a6u5hJDENp3VhicpdKcd4AHsp49Z8uNVjepzcE JaeySG0ZpxIJocYdWqgE65BmKSr0= X-Received: by 2002:ac2:41d3:0:b0:51c:fd0a:7e34 with SMTP id 2adb3069b0e04-5220fb72d61mr303609e87.22.1715283429282; Thu, 09 May 2024 12:37:09 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240427145502.2804311-1-masahiroy@kernel.org> <20240427145502.2804311-5-masahiroy@kernel.org> In-Reply-To: From: Masahiro Yamada Date: Fri, 10 May 2024 04:36:32 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 4/4] kbuild: use $(src) instead of $(srctree)/$(src) for source directory To: Krzysztof Kozlowski Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Nicolas Schier , Conor Dooley , Rob Herring , "devicetree@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, May 9, 2024 at 5:59=E2=80=AFPM Krzysztof Kozlowski wrote: > > On 27/04/2024 16:55, Masahiro Yamada wrote: > > Kbuild conventionally uses $(obj)/ for generated files, and $(src)/ for > > checked-in source files. It is merely a convention without any function= al > > difference. In fact, $(obj) and $(src) are exactly the same, as defined > > in scripts/Makefile.build: > > > > src :=3D $(obj) > > > > When the kernel is built in a separate output directory, $(src) does > > not accurately reflect the source directory location. While Kbuild > > resolves this discrepancy by specifying VPATH=3D$(srctree) to search fo= r > > source files, it does not cover all cases. For example, when adding a > > header search path for local headers, -I$(srctree)/$(src) is typically > > passed to the compiler. > > > > This introduces inconsistency between upstream and downstream Makefiles > > because $(src) is used instead of $(srctree)/$(src) for the latter. > > > > To address this inconsistency, this commit changes the semantics of > > $(src) so that it always points to the directory in the source tree. > > > > Going forward, the variables used in Makefiles will have the following > > meanings: > > > > $(obj) - directory in the object tree > > $(src) - directory in the source tree (changed by this commit) > > $(objtree) - the top of the kernel object tree > > $(srctree) - the top of the kernel source tree > > > > Consequently, $(srctree)/$(src) in upstream Makefiles need to be replac= ed > > with $(src). > > > > This patch, since yesterday's next, causes build issues with my > (completely) standard and typical workflow: > > alias crosc64=3D'CROSS_COMPILE=3D"ccache aarch64-linux-gnu-" ARCH=3Darm64= KBUILD_OUTPUT=3Dout/' > crosc64 make defconfig > crosc64 make dt_binding_check > > Errors: > > No rule to make target 'Documentation/devicetree/bindings/i3c/snps,dw-i3c= -master.example.dtb', needed by 'dt_binding_check'. Stop. > > Please revert/drop from next. Or, fix the code. Now fixed. Thanks for the report. --=20 Best Regards Masahiro Yamada