From: Tom Rini Date: Mon, 20 Jun 2016 08:46:03 -0400 Subject: [U-Boot] [PATCH v3] autoboot: add CONFIG_AUTOBOOT to allow to not compile autoboot.c In-Reply-To: <1466411619-10730-1-git-send-email-yamada.masahiro@socionext.com> References: <1466411619-10730-1-git-send-email-yamada.masahiro@socionext.com> Message-ID: <20160620124603.GZ4353@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Jun 20, 2016 at 05:33:39PM +0900, Masahiro Yamada wrote: > Since commit bb597c0eeb7e ("common: bootdelay: move CONFIG_BOOTDELAY > into a Kconfig option"), CONFIG_BOOTDELAY is defined for all boards. > > Prior to that commit, it was allowed to unset CONFIG_BOOTDELAY to > not compile common/autoboot.c, as described in common/Makefile: > > # This option is not just y/n - it can have a numeric value > ifdef CONFIG_BOOTDELAY > obj-y += autoboot.o > endif > > It was a bit odd to enable/disable code with an integer type option, > but it was how this option worked before that commit, and several > boards actually unset it to opt out of the autoboot feature. > > This commit adds a new bool option, CONFIG_AUTOBOOT, and makes > CONFIG_BOOTDELAY depend on it. > > I chose "default y" for this option because most boards use the > autoboot. I added "# CONFIG_AUTOBOOT is not set" for the boards that > had not set CONFIG_BOOTDELAY prior to the bad commit. > > Signed-off-by: Masahiro Yamada Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: