Commit 51f5b880 authored by Michael Shigorin's avatar Michael Shigorin

initial branding feature

As duly noted by glebfm@, branding issues need more attention by now since only stage1/install2 got some of it so far in this regard. Hence the dedicated feature comes to the rescue (well no, it doesn't actually mess with rescue!).
parent c20e820a
Эта фича врезается в makefile субпрофилей и обеспечивает
добавление задающих внешний вид и сообщения дистрибутива
пакетов; см. тж. http://www.altlinux.org/Branding
use/branding:
@$(call add_feature)
@### see install2
@#$(call add,BASE_PACKAGES,branding-$$(BRANDING)-release)
# NB: not every distro might have all the branding of its own
use/branding/full: use/branding use/syslinux/ui/gfxboot
@$(call add,THE_BRANDING,alterator bootsplash graphics)
@$(call add,THE_BRANDING,indexhtml notes slideshow)
use/branding/complete: use/branding/full
@$(call add,INSTALL2_BRANDING,notes slideshow)
@$(call add,THE_BRANDING,menu) ### not sure if it's generic enough
IMAGE_PACKAGES_REGEXP += $(call branding,$(THE_BRANDING))
IMAGE_PACKAGES_REGEXP += $(call branding,$(THE_BRANDING))
CHROOT_PACKAGES_REGEXP += $(call branding,$(STAGE1_BRANDING))
......@@ -9,7 +9,7 @@ use/syslinux/ui/%: use/syslinux
@$(call set,SYSLINUX_UI,$*)
@if [ "$*" == gfxboot ]; then \
$(call add,STAGE1_PACKAGES,gfxboot); \
$(call add,STAGE1_PACKAGES,branding-$$(BRANDING)-bootloader); \
$(call add,STAGE1_BRANDING,bootloader); \
fi
# modules and config snippets just add up
......
......@@ -19,5 +19,9 @@ NULL :=
SPACE := $(NULL) # the officially documented way of getting a space
list2re = $(subst $(SPACE),|,$(strip $(1)))
# args: KMODULES, KFLAVOURS
kpackages = ^kernel-(image|modules-($(call list2re,$(1))))-($(call list2re,$(2)))$$
# arg: branding subpackages
branding = ^branding-$(BRANDING)-($(call list2re,$(1)))$$
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