Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EAB6FC7EE2F for ; Sat, 25 Feb 2023 13:34:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229577AbjBYNeU (ORCPT ); Sat, 25 Feb 2023 08:34:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjBYNeS (ORCPT ); Sat, 25 Feb 2023 08:34:18 -0500 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEF2E17CE3; Sat, 25 Feb 2023 05:34:16 -0800 (PST) Received: from [2a02:8108:8980:2478:8cde:aa2c:f324:937e]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1pVugl-00040o-JH; Sat, 25 Feb 2023 14:34:11 +0100 Message-ID: <643054d9-5f96-b6d3-8ea4-a5feb9f094d7@leemhuis.info> Date: Sat, 25 Feb 2023 14:34:10 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 From: Thorsten Leemhuis To: Pavel Machek Cc: Jonathan Corbet , Randy Dunlap , Lukas Bulwahn , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, regressions@lists.linux.dev References: <1c222195-8fec-5067-c382-78dfd2505974@leemhuis.info> Content-Language: en-US, de-DE Subject: Re: [PATCH v1] docs: describe how to quickly build Linux In-Reply-To: <1c222195-8fec-5067-c382-78dfd2505974@leemhuis.info> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;linux@leemhuis.info;1677332056;8c633890; X-HE-SMSGID: 1pVugl-00040o-JH Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25.02.23 10:29, Thorsten Leemhuis wrote: > On 25.02.23 10:17, Pavel Machek wrote: > >>> + mkdir ~/linux/ ~/linux/sources ~/linux/build >>> + git clone https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git \ >>> + ~/linux/sources >>> + cd ~/linux/sources/ >>> + # hint: if you don't want to build any stable or longterm kernels, skip the >>> + # next two commands >>> + git remote add linux-stable \ >>> + https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git >>> + git fetch --all >>> + # hint: if you want to apply patches, do it at this point (see below for details) >>> + # hint: at this point it's recommended to tag your build (see below for details) >>> + yes "" | make O=~/linux/build/ localmodconfig >>> + # hint: at this point you might want or have to adjust the build configuration >>> + # (see below for details) >>> + # note: if you are running a Debian kernel, you'll have to adjust the configuration >>> + # at this point (see below) >>> + make -j $(nproc --all) O=~/linux/build/ >> >> Is the complexity of using O= worth it for one-off kernel builds? > > That is a good question. I seemed like the right thing to do when I > started writing this guide (maybe just because I've been doing it that > way for ages), but now that you ask I'm unsure myself. > > /me wonders how others feel about it /me should have pondered with the idea for more time before writing aboe mail, because: Having thought about this some more, I decided to drop it, the complexity really is not worth it. Many thx for the suggestion! Ciao, Thorsten