2011-07-30 15:56:56 +04:00
# TODO: invent something prettier (think "lilo+grub" -- or error out?)
# - add,BASE_PACKAGES,alterator-$* is overly additive
2012-01-22 01:16:09 +04:00
# NB: due to make target becoming having been made,
# the last different one wins
2011-07-30 15:56:56 +04:00
# - remember .base if adding yet another *_PACKAGES
2011-08-21 22:50:43 +04:00
2018-01-24 14:31:52 +03:00
# NB: "mysterious" conflicts if BASE_BOOTLOADER is empty
2019-05-29 17:20:21 +03:00
GRUB_ARCHES := i586 x86_64 aarch64 ppc64le
2018-02-07 22:35:41 +03:00
use/bootloader : use /pkgpriorities
2012-04-18 21:53:51 +04:00
@$( call add_feature)
2019-05-07 19:11:16 +03:00
@$( call try,BASE_BOOTLOADER,grub)
@$( call xport,BASE_BOOTLOADER)
@$( call add,BASE_LISTS,$$ ( BASE_BOOTLOADER) )
i f e q ( d i s t r o , $( IMAGE_CLASS ) )
2011-09-14 00:51:22 +04:00
@$( call add,BASE_PACKAGES,alterator-$$ ( BASE_BOOTLOADER) )
2018-02-07 22:35:41 +03:00
@$( call add,PINNED_PACKAGES,alterator-$$ ( BASE_BOOTLOADER) )
@$( call add,PINNED_PACKAGES,installer-bootloader-$$ ( BASE_BOOTLOADER) -stage2)
2019-05-07 19:11:16 +03:00
e n d i f
2011-08-21 22:50:43 +04:00
2019-05-07 19:11:16 +03:00
use/bootloader/grub use/bootloader/lilo : \
use/bootloader/%: use/bootloader
2011-09-14 00:51:22 +04:00
@$( call set,BASE_BOOTLOADER,$* )
2018-01-24 14:31:52 +03:00
2019-05-07 19:11:16 +03:00
use/bootloader/uboot : use /bootloader use /uboot
@$( call set,BASE_BOOTLOADER,uboot)
2018-01-24 14:31:52 +03:00
use/bootloader/live : use /bootloader
@$( call add,LIVE_PACKAGES,alterator-$$ ( BASE_BOOTLOADER) )
2018-08-10 13:58:29 +03:00
use/bootloader/os-prober : use /bootloader
@$( call add,BASE_PACKAGES,os-prober)