mkimage-profiles/features.in/uboot/config.mk
Nikita Ermakov ccf377188e uboot: Allow to not specify an fdtdir in extlinux.conf
QEMU for riscv virt machine passes its own DTB. Overriding DTB breaks
Linux loading.
2021-04-04 23:14:44 +07:00

32 lines
752 B
Makefile

ifeq (,$(filter-out qcow2 qcow2c,$(IMAGE_TYPE)))
ifeq (,$(filter-out aarch64 armh,$(ARCH)))
UBOOT_TTY := use/tty/AMA0
else
UBOOT_TTY := use/tty/S0
endif
endif
ifeq (,$(filter-out riscv64,$(ARCH)))
ifeq (,$(filter-out qcow2 qcow2c,$(IMAGE_TYPE)))
UBOOT_TTY := use/tty/S0
UBOOT_NOFDTDIR := 1
else
UBOOT_TTY := use/tty/SIF0
endif
endif
ifneq (,$(filter-out i586 x86_64,$(ARCH)))
use/uboot: use/kernel/initrd-setup $(UBOOT_TTY)
@$(call add_feature)
@$(call add,THE_LISTS,singleboard-tools)
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)
@$(call xport,UBOOT_NOFDTDIR)
else
use/uboot: ; @:
endif