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

3
ifeq (,$(MKIMAGE_PROFILES))
4
$(error this makefile is designed to be included in toplevel one)
5
endif
6

7 8
ifeq (distro,$(IMAGE_CLASS))
# fundamental targets
Michael Shigorin's avatar
Michael Shigorin committed
9

10 11 12
distro/.init: profile/bare
	@$(call try,META_PREPARER,mkimage-profiles)
	@$(call try,META_APP_ID,$(IMAGE_NAME))
13
	@$(call try,META_PUBLISHER,ALT Linux Team)
14

15
distro/.boot: distro/.init boot/iso
16
ifeq (sisyphus,$(BRANCH))
17
	@$(call try,META_VOL_ID,ALT $(IMAGE_NAME)/$(ARCH))
18
else
19 20
	@$(call try,IMAGE_FLAVOUR,$(subst alt-$(BRANCH)-,,$(IMAGE_NAME)))
	@$(call try,META_VOL_ID,ALT $(BRANCH) $$(IMAGE_FLAVOUR)/$(ARCH))
21
endif
22
	@$(call try,META_VOL_SET,ALT)
23

24 25
# NB: the last flavour in KFLAVOURS gets to be the default one;
# the kernel packages regexp evaluation has to take place at build stage
26
distro/.base: distro/.boot use/kernel use/branding/notes
27
	@$(call try,META_SYSTEM_ID,LINUX)
28

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

32
endif