Commit be46eb8b authored by Anton Midyukov's avatar Anton Midyukov

lib/distro.mk: Replace 'set' to 'try'

All variables can be overridden.
parent 36c7fa38
......@@ -10,21 +10,21 @@ ifeq (distro,$(IMAGE_CLASS))
distro/.init: profile/bare
@$(call try,META_PREPARER,mkimage-profiles)
@$(call try,META_APP_ID,$(IMAGE_NAME))
@$(call set,META_PUBLISHER,ALT Linux Team)
@$(call try,META_PUBLISHER,ALT Linux Team)
distro/.boot: distro/.init boot/iso
ifeq (,$(BRANCH))
@$(call set,META_VOL_ID,ALT $(IMAGE_NAME)/$(ARCH))
@$(call try,META_VOL_ID,ALT $(IMAGE_NAME)/$(ARCH))
else
@$(call set,IMAGE_FLAVOUR,$(subst alt-$(BRANCH)-,,$(IMAGE_NAME)))
@$(call set,META_VOL_ID,ALT $(BRANCH) $$(IMAGE_FLAVOUR)/$(ARCH))
@$(call try,IMAGE_FLAVOUR,$(subst alt-$(BRANCH)-,,$(IMAGE_NAME)))
@$(call try,META_VOL_ID,ALT $(BRANCH) $$(IMAGE_FLAVOUR)/$(ARCH))
endif
@$(call set,META_VOL_SET,ALT)
@$(call try,META_VOL_try,ALT)
# NB: the last flavour in KFLAVOURS gets to be the default one;
# the kernel packages regexp evaluation has to take place at build stage
distro/.base: distro/.boot use/kernel
@$(call set,META_SYSTEM_ID,LINUX)
@$(call try,META_SYSTEM_ID,LINUX)
# this one should not be fundamental as it appears (think armh)
distro/.installer: distro/.base use/bootloader/grub +installer; @:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment