config.mk 815 Bytes
Newer Older
Alexey Shabalin's avatar
Alexey Shabalin committed
1 2 3
# default is plain text prompt
# NB: might be usbflash-ready hybrid iso

4
ifeq (,$(filter-out i586 x86_64 ppc64le aarch64 riscv64,$(ARCH)))
Alexey Shabalin's avatar
Alexey Shabalin committed
5 6 7 8 9 10 11

use/grub: sub/stage1 $(ISOHYBRID:%=use/isohybrid)
	@$(call add_feature)
ifeq (,$(filter-out i586 x86_64,$(ARCH)))
	@$(call try,BOOTVGA,normal)
endif
	@$(call set,RELNAME,ALT ($(IMAGE_NAME)))
12
	@$(call xport,GRUB_DEFAULT)
Alexey Shabalin's avatar
Alexey Shabalin committed
13 14 15

# UI is overwritten
use/grub/ui/%: use/grub
16
ifeq (,$(filter-out i586 x86_64 aarch64,$(ARCH)))
17
	@$(call set,GRUB_UI,$*)
Alexey Shabalin's avatar
Alexey Shabalin committed
18 19
	@if [ "$*" == gfxboot ]; then \
		$(call add,STAGE1_BRANDING,bootloader); \
20
		$(call add,STAGE1_PACKAGES,grub-common); \
Alexey Shabalin's avatar
Alexey Shabalin committed
21
	fi
22 23
else
	@:
24
endif
Alexey Shabalin's avatar
Alexey Shabalin committed
25 26 27 28 29 30

use/grub/%.cfg: use/grub
	@$(call add,GRUB_CFG,$*)

use/grub/timeout/%: use/grub
	@$(call set,GRUB_TIMEOUT,$*)
31 32 33 34 35 36
else

use/grub: ; @:
use/grub/ui/% use/grub/%.cfg use/grub/timeout/%: ; @:

endif