]> git.ipfire.org Git - people/ms/u-boot.git/commit
autoboot: add CONFIG_AUTOBOOT to allow to not compile autoboot.c
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 20 Jun 2016 08:33:39 +0000 (17:33 +0900)
committerTom Rini <trini@konsulko.com>
Mon, 20 Jun 2016 09:19:09 +0000 (05:19 -0400)
commit41598c82513672b1052c88ce816d98467345141f
treed5becad1d40063d826dcd52e4a908363e9e43231
parent2313d48445e59f063ec9a3b4940fe8252737db76
autoboot: add CONFIG_AUTOBOOT to allow to not compile autoboot.c

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 <yamada.masahiro@socionext.com>
32 files changed:
cmd/Kconfig
common/Kconfig
common/Makefile
configs/10m50_defconfig
configs/3c120_defconfig
configs/M5249EVB_defconfig
configs/am335x_sl50_defconfig
configs/bcm11130_defconfig
configs/bcm11130_nand_defconfig
configs/bcm28155_ap_defconfig
configs/bcm28155_w1d_defconfig
configs/bcm911360_entphn-ns_defconfig
configs/bcm911360_entphn_defconfig
configs/bcm911360k_defconfig
configs/bcm958300k-ns_defconfig
configs/bcm958300k_defconfig
configs/bcm958305k_defconfig
configs/bcm958622hr_defconfig
configs/bf506f-ezkit_defconfig
configs/dnp5370_defconfig
configs/espresso7420_defconfig
configs/malta64_defconfig
configs/malta64el_defconfig
configs/malta_defconfig
configs/maltael_defconfig
configs/mpr2_defconfig
configs/ms7720se_defconfig
configs/openrisc-generic_defconfig
configs/rsk7203_defconfig
configs/s5p_goni_defconfig
configs/shmin_defconfig
include/autoboot.h