You need to sign in or sign up before continuing.
vm.mk 698 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
# step 2: build up virtual machine's configuration

ifndef MKIMAGE_PROFILES
$(error this makefile is designed to be included in toplevel one)
endif

ifeq (vm,$(IMAGE_CLASS))

vm/.bare: profile/bare
10
	@$(call add,BASE_PACKAGES,interactivesystem shadow-utils e2fsprogs)
11 12

ifeq (,$(filter-out i586 x86_64,$(ARCH)))
13
vm/.base-lilo: vm/.bare use/bootloader/lilo; @:
14 15
else
vm/.base-lilo: vm/.base-grub; @:
16
endif
17

18
ifeq (,$(filter-out i586 x86_64 ppc64le,$(ARCH)))
19
vm/.base-grub: vm/.bare use/bootloader/grub; @:
20 21
else
vm/.base-grub: vm/.base-grub-efi; @:
22 23
endif

24
ifeq (,$(filter-out x86_64 aarch64 riscv64,$(ARCH)))
25
vm/.base-grub-efi: vm/.bare use/efi/grub; @:
26 27
else
vm/.base-grub-efi: vm/.bare; @:
28 29
endif

30
endif