grub: restrict graphics mode to architectures i586, x86_64, aarch64

Not needed for other architectures.
See-also: use/branding/full
This commit is contained in:
Anton Midyukov 2021-03-16 20:59:11 +07:00
parent 453c520b9f
commit 724d904cae

View File

@ -13,10 +13,12 @@ endif
# UI is overwritten
use/grub/ui/%: use/grub
@$(call set,GRUB_UI,$*)
ifeq (,$(filter-out i586 x86_64 aarch64,$(ARCH)))
@if [ "$*" == gfxboot ]; then \
$(call add,STAGE1_BRANDING,bootloader); \
$(call add,STAGE1_PACKAGES,grub-common); \
fi
endif
use/grub/%.cfg: use/grub
@$(call add,GRUB_CFG,$*)