From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-195962-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 36691138239
	for <garchives@archives.gentoo.org>; Fri, 14 May 2021 09:59:47 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 8A3F9E08EB;
	Fri, 14 May 2021 09:59:42 +0000 (UTC)
Received: from msg-1.mailo.com (msg-1.mailo.com [213.182.54.11])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 14DB1E087C
	for <gentoo-user@lists.gentoo.org>; Fri, 14 May 2021 09:59:41 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=netc.eu; s=mailo;
	t=1620986379; bh=Cc8w2SjzYYwAOlq1vfjJqV0YbJ5HOrXCFOfg1EC+c1g=;
	h=X-EA-Auth:Date:From:To:Subject:Message-ID:In-Reply-To:References:
	 X-Mailer:MIME-Version:Content-Type:Content-Transfer-Encoding;
	b=s0ZdlK7kTm3QR2ll+/p3EQHOxRgUgzJkrSyQEoh3thcTeENbmZMgsxalPdXBuNVEy
	 X/d02g5GNBIsSbGMFNtA2u6zHO+vUNAke6CJBiD4VS8jWjvMElPFVuKoDkyW5YMFjt
	 nobb7KRrHnuVMXRge3ujQrj/Gu868alIotU3fgL4=
Received: by 192.168.90.12 [192.168.90.12] with ESMTP
	via ip-206.mailobj.net [213.182.55.206]
	Fri, 14 May 2021 11:59:39 +0200 (CEST)
X-EA-Auth: ttC68fS91lUvCld9ud0kPVemJ0w7fIOz9hQgk691gXoSbJWp6RFGvX/9vOTnOnWc7LDRW+XL9p9TDQW/9iqGDlaFrymNpJLy
Date: Fri, 14 May 2021 11:59:37 +0200
From: netfab <netbox253@netc.eu>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Building kernel without messing the kernel 
 source tree
Message-ID: <20210514115937.48d8cadc@coreI5.home>
In-Reply-To: <20210514094713.30616E08F2@pigeon.gentoo.org>
References: <20210514094713.30616E08F2@pigeon.gentoo.org>
X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu)
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: 0534df5d-d736-4656-9d4d-95c4401b3219
X-Archives-Hash: 9f903f077857eda179598d5855a12eb7

Le 14/05/21 =C3=A0 11:47, Thomas Mueller a tapot=C3=A9 :
> I am looking to compile the Linux kernel and send the work and output
> to another directory, thereby leaving the kernel source tree
> directory clean.

You should have a look to KBUILD_OUTPUT environment variable.

https://www.kernel.org/doc/html/latest/kbuild/kbuild.html#kbuild-output