760c09c393
Add target use/bootloader/uboot. Das U-Boot -- the Universal Boot Loader, used on single board PCs (also in qemu). Use bootloader lists to provide better portability and to avoid overcomplicating bootloader switch. Added restriction for alterator-$$(BASE_BOOTLOADER)) only for ISO images. Since the new uboot bootloader is not supported in Alterator and is not used when building ISO images.
32 lines
1.1 KiB
Makefile
32 lines
1.1 KiB
Makefile
# 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
|
|
|
|
use/bootloader: use/pkgpriorities
|
|
@$(call add_feature)
|
|
@$(call try,BASE_BOOTLOADER,grub)
|
|
@$(call xport,BASE_BOOTLOADER)
|
|
@$(call add,BASE_LISTS,$$(BASE_BOOTLOADER))
|
|
ifeq (distro,$(IMAGE_CLASS))
|
|
@$(call add,BASE_PACKAGES,alterator-$$(BASE_BOOTLOADER))
|
|
@$(call add,PINNED_PACKAGES,alterator-$$(BASE_BOOTLOADER))
|
|
@$(call add,PINNED_PACKAGES,installer-bootloader-$$(BASE_BOOTLOADER)-stage2)
|
|
endif
|
|
|
|
use/bootloader/grub use/bootloader/lilo: \
|
|
use/bootloader/%: use/bootloader
|
|
@$(call set,BASE_BOOTLOADER,$*)
|
|
|
|
use/bootloader/uboot: use/bootloader use/uboot
|
|
@$(call set,BASE_BOOTLOADER,uboot)
|
|
|
|
use/bootloader/live: use/bootloader
|
|
@$(call add,LIVE_PACKAGES,alterator-$$(BASE_BOOTLOADER))
|
|
|
|
use/bootloader/os-prober: use/bootloader
|
|
@$(call add,BASE_PACKAGES,os-prober)
|