From mboxrd@z Thu Jan 1 00:00:00 1970 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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5643CC433EF for ; Thu, 27 Jan 2022 21:56:34 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 962B7837C5; Thu, 27 Jan 2022 22:56:17 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 1C75F8365D; Thu, 27 Jan 2022 17:46:56 +0100 (CET) Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C97B182BA6 for ; Thu, 27 Jan 2022 17:46:53 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=gcbu-u-boot-users@m.gmane-mx.org Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nD7vB-0000yn-3k for u-boot@lists.denx.de; Thu, 27 Jan 2022 17:46:53 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: u-boot@lists.denx.de From: Grant Edwards Subject: How to modify defconfig file - make savedefconfig? Date: Thu, 27 Jan 2022 16:46:48 -0000 (UTC) Message-ID: User-Agent: slrn/1.0.3 (Linux) X-Mailman-Approved-At: Thu, 27 Jan 2022 22:56:13 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean What is the "right" way to modify a defconfig file? Most sources I've found just say things like "edit the defconfig file". That seems error-prone -- especially when dealing with settings that have side effects. I did stumble across one mention of "make savedefconfig", and this seems to be the right way to modify a defconfig file: make myboard_defconfig make menuconfig make savedefconfig cp defconfig configs/myboard_defconfig Do people manually edit their defconfig file when they want to make a change, or do they use "make savedefconfig" like I show above? One reason I'm asking is that the original defconfig file provided by the silicon vendor (Renesas) appears to be a manually stripped-down ..config file, because when I do make vendors_defconfig make savedefconfig The defconfig file generated by 'make savedefconfig' looks _nothing_ like the starting vendors_defconfig. The new defconfig generates the same .config file as the vendors_defconfig file. But the vendors_defconfig file is arranged completely differently with different/extra comments, extra blank lines, etc. -- Grant