distro.mk 864 Bytes
Newer Older
1 2 3 4
# step 2: build up distribution's configuration

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

7
ifeq (distro,$(IMAGE_CLASS))
8

9
# install media bootloader
10
boot/%:
11
	@$(call set,BOOTLOADER,$*)
12

13
# fundamental targets
Michael Shigorin's avatar
Michael Shigorin committed
14

15 16 17 18
distro/.init: profile/bare
	@$(call try,META_PREPARER,mkimage-profiles)
	@$(call try,META_APP_ID,$(IMAGE_NAME))
	@$(call set,META_PUBLISHER,ALT Linux Team)
19 20 21

# NB: the last flavour in KFLAVOURS gets to be the default one;
# the kernel packages regexp evaluation has to take place at build stage
22
distro/.base: distro/.init use/kernel
23
	@$(call set,META_SYSTEM_ID,LINUX)
24
	@$(call set,META_VOL_ID,ALT Linux $(IMAGE_NAME)/$(ARCH))
25
	@$(call set,META_VOL_SET,ALT Linux)
26

27 28
# this one should not be fundamental as it appears (think armh)
distro/.installer: distro/.base use/bootloader/grub +installer; @:
29

30
endif