mkimage-profiles/features.in/grub/config.mk
Anton Midyukov af6b9378e1 grub: not set GRUB_UI for unsupported ARCHES
If GRUB_UI variable is set, the gfxterm config will be added, which
in turn will lead to a build error on an unsupported architecture.
2021-08-09 18:59:56 +07:00

37 lines
815 B
Makefile

# default is plain text prompt
# NB: might be usbflash-ready hybrid iso
ifeq (,$(filter-out i586 x86_64 ppc64le aarch64 riscv64,$(ARCH)))
use/grub: sub/stage1 $(ISOHYBRID:%=use/isohybrid)
@$(call add_feature)
ifeq (,$(filter-out i586 x86_64,$(ARCH)))
@$(call try,BOOTVGA,normal)
endif
@$(call set,RELNAME,ALT ($(IMAGE_NAME)))
@$(call xport,GRUB_DEFAULT)
# UI is overwritten
use/grub/ui/%: use/grub
ifeq (,$(filter-out i586 x86_64 aarch64,$(ARCH)))
@$(call set,GRUB_UI,$*)
@if [ "$*" == gfxboot ]; then \
$(call add,STAGE1_BRANDING,bootloader); \
$(call add,STAGE1_PACKAGES,grub-common); \
fi
else
@:
endif
use/grub/%.cfg: use/grub
@$(call add,GRUB_CFG,$*)
use/grub/timeout/%: use/grub
@$(call set,GRUB_TIMEOUT,$*)
else
use/grub: ; @:
use/grub/ui/% use/grub/%.cfg use/grub/timeout/%: ; @:
endif