You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.5 KiB
50 lines
1.5 KiB
# TODO: invent something prettier (think "lilo+grub" -- or error out?)
|
|
# - add,BASE_PACKAGES,alterator-$* is overly additive
|
|
# NB: due to make target becoming having been made,
|
|
# the last different one wins
|
|
# - remember .base if adding yet another *_PACKAGES
|
|
|
|
# NB: "mysterious" conflicts if BASE_BOOTLOADER is empty
|
|
|
|
GRUB_ARCHES := i586 x86_64 aarch64 ppc64le riscv64
|
|
|
|
use/bootloader: use/pkgpriorities
|
|
ifneq (,$(filter-out e2k%,$(ARCH)))
|
|
@$(call add_feature)
|
|
@$(call try,BASE_BOOTLOADER,grub)
|
|
@$(call xport,BASE_BOOTLOADER)
|
|
@$(call add,BASE_LISTS,$$(BASE_BOOTLOADER))
|
|
@$(call xport,BASE_BOOTARGS)
|
|
ifeq (distro,$(IMAGE_CLASS))
|
|
@$(call add,BASE_PACKAGES,installer-feature-bootloader-$$(BASE_BOOTLOADER))
|
|
@$(call add,PINNED_PACKAGES,alterator-$$(BASE_BOOTLOADER))
|
|
@$(call add,PINNED_PACKAGES,installer-bootloader-$$(BASE_BOOTLOADER)-stage2)
|
|
endif
|
|
endif
|
|
|
|
ifeq (,$(filter-out i586 x86_64,$(ARCH)))
|
|
use/bootloader/lilo: \
|
|
use/bootloader/%: use/bootloader
|
|
@$(call set,BASE_BOOTLOADER,$*)
|
|
else
|
|
use/bootloader/lilo: ; @:
|
|
endif
|
|
|
|
ifeq (,$(filter-out $(GRUB_ARCHES),$(ARCH)))
|
|
use/bootloader/grub: \
|
|
use/bootloader/%: use/bootloader
|
|
@$(call set,BASE_BOOTLOADER,$*)
|
|
else
|
|
use/bootloader/grub: ; @:
|
|
endif
|
|
|
|
use/bootloader/uboot: use/bootloader use/uboot
|
|
@$(call set,BASE_BOOTLOADER,uboot)
|
|
|
|
use/bootloader/live: use/bootloader; @:
|
|
ifneq (,$(filter-out e2k%,$(ARCH)))
|
|
@$(call add,LIVE_PACKAGES,alterator-$$(BASE_BOOTLOADER))
|
|
endif
|
|
|
|
use/bootloader/os-prober: use/bootloader
|
|
@$(call add,BASE_PACKAGES,os-prober)
|
|
|