diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-01-19 01:14:45 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-01-19 01:14:45 +0000 |
commit | d3cae4c425eb240d3a25395a79037ae97f80cfae (patch) | |
tree | df9b27ee2da1c997652cbed889855004cb76de01 | |
parent | 7b83cebba9c47be80060ecadd82097f4b9370cb2 (diff) | |
download | master-187ad058-d3cae4c425eb240d3a25395a79037ae97f80cfae.tar.gz master-187ad058-d3cae4c425eb240d3a25395a79037ae97f80cfae.tar.bz2 master-187ad058-d3cae4c425eb240d3a25395a79037ae97f80cfae.zip |
Make the grub timeout configurable on x86 targets
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29786 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | target/linux/x86/image/Config.in | 7 | ||||
-rw-r--r-- | target/linux/x86/image/Makefile | 3 | ||||
-rw-r--r-- | target/linux/x86/image/menu.lst | 2 |
3 files changed, 11 insertions, 1 deletions
diff --git a/target/linux/x86/image/Config.in b/target/linux/x86/image/Config.in index a9412cdd67..b60baeabb9 100644 --- a/target/linux/x86/image/Config.in +++ b/target/linux/x86/image/Config.in @@ -47,6 +47,13 @@ config X86_GRUB_BOOTOPTS help If you don't know, just leave it blank. +config X86_GRUB_TIMEOUT + string "Seconds to wait before booting the default entry" + depends X86_GRUB_IMAGES + default "5" + help + If you don't know, 5 seconds is a reasonable default. + config X86_VDI_IMAGES bool "Build VirtualBox image files (VDI)" depends X86_GRUB_IMAGES diff --git a/target/linux/x86/image/Makefile b/target/linux/x86/image/Makefile index c070a10319..185da1096c 100644 --- a/target/linux/x86/image/Makefile +++ b/target/linux/x86/image/Makefile @@ -31,6 +31,8 @@ endif ROOTPART:=$(call qstrip,$(CONFIG_TARGET_ROOTFS_PARTNAME)) +GRUB_TIMEOUT:=$(call qstrip,$(CONFIG_X86_GRUB_TIMEOUT)) + ifneq ($(CONFIG_X86_GRUB_IMAGES),) BOOTOPTS:=$(call qstrip,$(CONFIG_X86_GRUB_BOOTOPTS)) @@ -64,6 +66,7 @@ ifneq ($(CONFIG_X86_GRUB_IMAGES),) -e 's#@SERIAL_CONFIG@#$(strip $(GRUB_SERIAL_CONFIG))#g' \ -e 's#@TERMINAL_CONFIG@#$(strip $(GRUB_TERMINAL_CONFIG))#g' \ -e 's#@CMDLINE@#$(strip $(call Image/cmdline/$(1)) $(BOOTOPTS) $(GRUB_CONSOLE_CMDLINE))#g' \ + -e 's#@TIMEOUT@#$(GRUB_TIMEOUT)#g' \ ./menu.lst > $(KDIR)/root.grub/boot/grub/menu.lst PADDING="$(CONFIG_TARGET_IMAGES_PAD)" PATH="$(TARGET_PATH)" ./gen_image_x86.sh \ $(BIN_DIR)/$(IMG_PREFIX)-combined-$(1).img \ diff --git a/target/linux/x86/image/menu.lst b/target/linux/x86/image/menu.lst index 5f99f21560..5af1e955b3 100644 --- a/target/linux/x86/image/menu.lst +++ b/target/linux/x86/image/menu.lst @@ -2,7 +2,7 @@ @TERMINAL_CONFIG@ default 0 -timeout 5 +timeout @TIMEOUT@ title OpenWrt root (hd0,0) |