bootloader: provide lilo and grub support only on corresponding arches

This commit is contained in:
Gleb Fotengauer-Malinovskiy 2019-07-09 18:47:55 +03:00 committed by Michael Shigorin
parent 9a581248af
commit 255a0f87d5

View File

@ -19,9 +19,17 @@ ifeq (distro,$(IMAGE_CLASS))
@$(call add,PINNED_PACKAGES,installer-bootloader-$$(BASE_BOOTLOADER)-stage2)
endif
use/bootloader/grub use/bootloader/lilo: \
ifeq (,$(filter-out i586 x86_64,$(ARCH)))
use/bootloader/lilo: \
use/bootloader/%: use/bootloader
@$(call set,BASE_BOOTLOADER,$*)
endif
ifeq (,$(filter-out $(GRUB_ARCHES),$(ARCH)))
use/bootloader/grub: \
use/bootloader/%: use/bootloader
@$(call set,BASE_BOOTLOADER,$*)
endif
use/bootloader/uboot: use/bootloader use/uboot
@$(call set,BASE_BOOTLOADER,uboot)