From patchwork Tue Sep 17 14:16:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 13806217 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 E8D41194C8F; Tue, 17 Sep 2024 14:18:17 +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=1726582698; cv=none; b=D43DPf7pEMYt4XstW53dcTB21/QogvXLMWVR+2fsv9j1gIpTBZCUjZ5a7VqxmSY1It9FFj4lKm7xQ+rOUC/hBOD7y85nvTig8M3QnDSREPXj7QMdVuIle2YF3WyvzEL0jwI7johOKxv1kwW25UiMaTnIrBvCKkHqaZZJMHzKl0E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726582698; c=relaxed/simple; bh=/5fq3didrGVAcPh4C5/Q4yo410TOLiRILJJC0tUs9Go=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JFwan9NsTcltTkiaVcWVS2unPBJ/ibOUnycr7v9VWVEBnPd/eRTaBldE+EdD/XiVUBWC3xq6V3LfcI5vqHm9UUIkAUw4ah4K7FVeI8IYc1672tR+3Ia1iW6P628Fpo5OKHwlfmsrVClmxq39g41OzhjBfz31D66ThyjdrbMjiTI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=T19nYlja; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="T19nYlja" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD112C4CECD; Tue, 17 Sep 2024 14:18:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1726582697; bh=/5fq3didrGVAcPh4C5/Q4yo410TOLiRILJJC0tUs9Go=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T19nYlja1p0xgVKeZLU/WtpTcajsT9vIRdu+VTu6ffeetHV3TGr7u2PJTInnpQ81h xF6CCxARdatLfOpHWY7dD6BuacR33KEG9QrU+VRR+li7Pc1q1rDW1T3q/4lpbR0ZQn rukdp5z4ZvMhuAwlW6NsSCpte9bV8lLvyE/jEeWaXkzmb70n0ocyYsUejL9hdIV59o HqMpXEx98OZFDDvWbPt4tSdLWbYuuvaRclBeRj6HZe+Ud3KPXMBS5UIKSO8mxl30mu vFtO0GDDBkNjAEgNm6uMVYeYGGmoSlCn9S1ax+JTjUPo7noquQOLlPoLtRw0dIXtn9 o2qMBlcGa27Jw== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Miguel Ojeda , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, Nathan Chancellor , Nicolas Schier , Masahiro Yamada Subject: [PATCH 21/23] kbuild: use absolute path in the generated wrapper Makefile Date: Tue, 17 Sep 2024 23:16:49 +0900 Message-ID: <20240917141725.466514-22-masahiroy@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240917141725.466514-1-masahiroy@kernel.org> References: <20240917141725.466514-1-masahiroy@kernel.org> Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Keep the consistent behavior when this Makefile is invoked from another directory. Signed-off-by: Masahiro Yamada Reviewed-by: Nicolas Schier --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ce646a6994a6..9f0ba07e8f25 100644 --- a/Makefile +++ b/Makefile @@ -643,8 +643,9 @@ ifdef building_out_of_srctree quiet_cmd_makefile = GEN Makefile cmd_makefile = { \ - echo "\# Automatically generated by $(srctree)/Makefile: don't edit"; \ - echo "include $(srctree)/Makefile"; \ + echo "\# Automatically generated by $(abs_srctree)/Makefile: don't edit"; \ + echo "export KBUILD_OUTPUT = $(CURDIR)"; \ + echo "include $(abs_srctree)/Makefile"; \ } > Makefile outputmakefile: