mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
autoboot: add CONFIG_AUTOBOOT to allow to not compile autoboot.c
Since commit bb597c0eeb
("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>
This commit is contained in:
parent
2313d48445
commit
41598c8251
32 changed files with 37 additions and 5 deletions
|
@ -38,6 +38,12 @@ config SYS_PROMPT
|
|||
|
||||
menu "Autoboot options"
|
||||
|
||||
config AUTOBOOT
|
||||
bool "Autoboot"
|
||||
default y
|
||||
help
|
||||
This enables the autoboot. See doc/README.autoboot for detail.
|
||||
|
||||
config AUTOBOOT_KEYED
|
||||
bool "Stop autobooting via specific input key / string"
|
||||
default n
|
||||
|
|
|
@ -100,6 +100,7 @@ endmenu
|
|||
config BOOTDELAY
|
||||
int "delay in seconds before automatically booting"
|
||||
default 2
|
||||
depends on AUTOBOOT
|
||||
help
|
||||
Delay before automatically running bootcmd;
|
||||
set to -1 to disable autoboot.
|
||||
|
|
|
@ -15,10 +15,7 @@ ifdef CONFIG_SYS_HUSH_PARSER
|
|||
obj-y += cli_hush.o
|
||||
endif
|
||||
|
||||
# This option is not just y/n - it can have a numeric value
|
||||
ifdef CONFIG_BOOTDELAY
|
||||
obj-y += autoboot.o
|
||||
endif
|
||||
obj-$(CONFIG_AUTOBOOT) += autoboot.o
|
||||
|
||||
# This option is not just y/n - it can have a numeric value
|
||||
ifdef CONFIG_BOOT_RETRY_TIME
|
||||
|
|
|
@ -6,6 +6,7 @@ CONFIG_DEFAULT_DEVICE_TREE="10m50_devboard"
|
|||
CONFIG_FIT=y
|
||||
CONFIG_OF_BOARD_SETUP=y
|
||||
CONFIG_HUSH_PARSER=y
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
CONFIG_CMD_CPU=y
|
||||
# CONFIG_CMD_BOOTD is not set
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
|
|
|
@ -6,6 +6,7 @@ CONFIG_DEFAULT_DEVICE_TREE="3c120_devboard"
|
|||
CONFIG_FIT=y
|
||||
CONFIG_OF_BOARD_SETUP=y
|
||||
CONFIG_HUSH_PARSER=y
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
CONFIG_CMD_CPU=y
|
||||
# CONFIG_CMD_BOOTD is not set
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
CONFIG_M68K=y
|
||||
CONFIG_TARGET_M5249EVB=y
|
||||
CONFIG_SYS_TEXT_BASE=0xffe00000
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
CONFIG_LOOPW=y
|
||||
# CONFIG_CMD_SETEXPR is not set
|
||||
# CONFIG_CMD_NET is not set
|
||||
|
|
|
@ -6,6 +6,7 @@ CONFIG_SPL_STACK_R=y
|
|||
CONFIG_FIT=y
|
||||
CONFIG_SYS_EXTRA_OPTIONS="EMMC_BOOT"
|
||||
CONFIG_HUSH_PARSER=y
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_ASKENV=y
|
||||
|
|
|
@ -2,6 +2,7 @@ CONFIG_ARM=y
|
|||
CONFIG_TARGET_BCM28155_AP=y
|
||||
CONFIG_SYS_EXTRA_OPTIONS="SYS_MMC_ENV_DEV=0"
|
||||
CONFIG_HUSH_PARSER=y
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_ASKENV=y
|
||||
|
|
|
@ -2,6 +2,7 @@ CONFIG_ARM=y
|
|||
CONFIG_TARGET_BCM28155_AP=y
|
||||
CONFIG_SYS_EXTRA_OPTIONS="NAND"
|
||||
CONFIG_HUSH_PARSER=y
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_ASKENV=y
|
||||
|
|
|
@ -2,6 +2,7 @@ CONFIG_ARM=y
|
|||
CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK=y
|
||||
CONFIG_TARGET_BCM28155_AP=y
|
||||
CONFIG_HUSH_PARSER=y
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_ASKENV=y
|
||||
|
|
|
@ -3,6 +3,7 @@ CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK=y
|
|||
CONFIG_TARGET_BCM28155_AP=y
|
||||
CONFIG_SYS_EXTRA_OPTIONS="BCM_SF2_ETH,BCM_SF2_ETH_GMAC"
|
||||
CONFIG_HUSH_PARSER=y
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_ASKENV=y
|
||||
|
|
|
@ -2,6 +2,7 @@ CONFIG_ARM=y
|
|||
CONFIG_TARGET_BCMCYGNUS=y
|
||||
CONFIG_SYS_EXTRA_OPTIONS="SYS_SDRAM_SIZE=0x20000000,ARMV7_NONSEC"
|
||||
CONFIG_HUSH_PARSER=y
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_ASKENV=y
|
||||
|
|
|
@ -2,6 +2,7 @@ CONFIG_ARM=y
|
|||
CONFIG_TARGET_BCMCYGNUS=y
|
||||
CONFIG_SYS_EXTRA_OPTIONS="SYS_SDRAM_SIZE=0x20000000"
|
||||
CONFIG_HUSH_PARSER=y
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_ASKENV=y
|
||||
|
|
|
@ -2,6 +2,7 @@ CONFIG_ARM=y
|
|||
CONFIG_TARGET_BCMCYGNUS=y
|
||||
CONFIG_SYS_EXTRA_OPTIONS="SYS_SDRAM_SIZE=0x40000000"
|
||||
CONFIG_HUSH_PARSER=y
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_ASKENV=y
|
||||
|
|
|
@ -2,6 +2,7 @@ CONFIG_ARM=y
|
|||
CONFIG_TARGET_BCMCYGNUS=y
|
||||
CONFIG_SYS_EXTRA_OPTIONS="SYS_SDRAM_SIZE=0x40000000,ARMV7_NONSEC"
|
||||
CONFIG_HUSH_PARSER=y
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_ASKENV=y
|
||||
|
|
|
@ -2,6 +2,7 @@ CONFIG_ARM=y
|
|||
CONFIG_TARGET_BCMCYGNUS=y
|
||||
CONFIG_SYS_EXTRA_OPTIONS="SYS_SDRAM_SIZE=0x40000000"
|
||||
CONFIG_HUSH_PARSER=y
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_ASKENV=y
|
||||
|
|
|
@ -2,6 +2,7 @@ CONFIG_ARM=y
|
|||
CONFIG_TARGET_BCMCYGNUS=y
|
||||
CONFIG_SYS_EXTRA_OPTIONS="SYS_SDRAM_SIZE=0x40000000"
|
||||
CONFIG_HUSH_PARSER=y
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_ASKENV=y
|
||||
|
|
|
@ -2,6 +2,7 @@ CONFIG_ARM=y
|
|||
CONFIG_TARGET_BCMNSP=y
|
||||
CONFIG_SYS_EXTRA_OPTIONS="SYS_SDRAM_SIZE=0x01000000"
|
||||
CONFIG_HUSH_PARSER=y
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
CONFIG_CMD_BOOTZ=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_ASKENV=y
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
CONFIG_BLACKFIN=y
|
||||
CONFIG_TARGET_BF506F_EZKIT=y
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
# CONFIG_CMD_BDI is not set
|
||||
# CONFIG_CMD_CONSOLE is not set
|
||||
# CONFIG_CMD_BOOTD is not set
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
CONFIG_BLACKFIN=y
|
||||
CONFIG_TARGET_DNP5370=y
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
CONFIG_CMD_GPIO=y
|
||||
# CONFIG_CMD_SETEXPR is not set
|
||||
CONFIG_CMD_MII=y
|
||||
|
|
|
@ -4,5 +4,6 @@ CONFIG_ARCH_EXYNOS7=y
|
|||
CONFIG_SYS_MALLOC_F_LEN=0x2000
|
||||
CONFIG_DEFAULT_DEVICE_TREE="exynos7420-espresso7420"
|
||||
CONFIG_SYS_PROMPT="ESPRESSO7420 # "
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
# CONFIG_CMD_SETEXPR is not set
|
||||
|
|
|
@ -4,6 +4,7 @@ CONFIG_CPU_MIPS64_R2=y
|
|||
CONFIG_DEFAULT_DEVICE_TREE="mti,malta"
|
||||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_SYS_PROMPT="malta # "
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
# CONFIG_CMD_LOADB is not set
|
||||
# CONFIG_CMD_LOADS is not set
|
||||
# CONFIG_CMD_FPGA is not set
|
||||
|
|
|
@ -5,6 +5,7 @@ CONFIG_CPU_MIPS64_R2=y
|
|||
CONFIG_DEFAULT_DEVICE_TREE="mti,malta"
|
||||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_SYS_PROMPT="maltael # "
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
# CONFIG_CMD_LOADB is not set
|
||||
# CONFIG_CMD_LOADS is not set
|
||||
# CONFIG_CMD_FPGA is not set
|
||||
|
|
|
@ -3,6 +3,7 @@ CONFIG_TARGET_MALTA=y
|
|||
CONFIG_DEFAULT_DEVICE_TREE="mti,malta"
|
||||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_SYS_PROMPT="malta # "
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
# CONFIG_CMD_LOADB is not set
|
||||
# CONFIG_CMD_LOADS is not set
|
||||
# CONFIG_CMD_FPGA is not set
|
||||
|
|
|
@ -4,6 +4,7 @@ CONFIG_SYS_LITTLE_ENDIAN=y
|
|||
CONFIG_DEFAULT_DEVICE_TREE="mti,malta"
|
||||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_SYS_PROMPT="maltael # "
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
# CONFIG_CMD_LOADB is not set
|
||||
# CONFIG_CMD_LOADS is not set
|
||||
# CONFIG_CMD_FPGA is not set
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
CONFIG_SH=y
|
||||
CONFIG_TARGET_MPR2=y
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
# CONFIG_CMD_BDI is not set
|
||||
# CONFIG_CMD_CONSOLE is not set
|
||||
# CONFIG_CMD_BOOTD is not set
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
CONFIG_SH=y
|
||||
CONFIG_TARGET_MS7720SE=y
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
# CONFIG_CMD_BDI is not set
|
||||
# CONFIG_CMD_CONSOLE is not set
|
||||
# CONFIG_CMD_BOOTD is not set
|
||||
|
|
|
@ -7,3 +7,4 @@ CONFIG_CMD_DHCP=y
|
|||
CONFIG_CMD_MII=y
|
||||
CONFIG_CMD_PING=y
|
||||
CONFIG_SYS_NS16550=y
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
CONFIG_SH=y
|
||||
CONFIG_TARGET_RSK7203=y
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
# CONFIG_CMD_BDI is not set
|
||||
# CONFIG_CMD_CONSOLE is not set
|
||||
# CONFIG_CMD_BOOTD is not set
|
||||
|
|
|
@ -4,6 +4,7 @@ CONFIG_TARGET_S5P_GONI=y
|
|||
CONFIG_DEFAULT_DEVICE_TREE="s5pc1xx-goni"
|
||||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_SYS_PROMPT="Goni # "
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
# CONFIG_CMD_XIMG is not set
|
||||
# CONFIG_CMD_FLASH is not set
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
CONFIG_SH=y
|
||||
CONFIG_TARGET_SHMIN=y
|
||||
# CONFIG_AUTOBOOT is not set
|
||||
# CONFIG_CMD_BDI is not set
|
||||
# CONFIG_CMD_CONSOLE is not set
|
||||
# CONFIG_CMD_BOOTD is not set
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#ifndef __AUTOBOOT_H
|
||||
#define __AUTOBOOT_H
|
||||
|
||||
#ifdef CONFIG_BOOTDELAY
|
||||
#ifdef CONFIG_AUTOBOOT
|
||||
/**
|
||||
* bootdelay_process() - process the bootd delay
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue