uboot: Define timeout variable

It is possible to set a timeout for automatic bootloading via a
variable.
This commit is contained in:
Anton Midyukov 2021-03-10 02:29:19 +07:00
parent ef342e7742
commit d30083a857
2 changed files with 3 additions and 1 deletions

View File

@ -17,7 +17,9 @@ use/uboot: use/kernel/initrd-setup $(UBOOT_TTY)
ifeq (,$(filter-out riscv64,$(ARCH)))
@$(call add,UBOOT_BOOTARGS,earlyprintk debug no_alt_virt_keyboard)
endif
@$(call try,UBOOT_TIMEOUT,50)
@$(call xport,UBOOT_BOOTARGS)
@$(call xport,UBOOT_TIMEOUT)
else
use/uboot: ; @:
endif

View File

@ -11,7 +11,7 @@ cat > /boot/extlinux/extlinux.conf << EOF
menu title ALTLinux Boot Options
default linux
timeout 70
timeout $GLOBAL_UBOOT_TIMEOUT
label linux
kernel /boot/vmlinuz