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!).
This commit is contained in:
parent
c20e820ac7
commit
51f5b88062
3
features.in/branding/README
Normal file
3
features.in/branding/README
Normal file
@ -0,0 +1,3 @@
|
||||
Эта фича врезается в makefile субпрофилей и обеспечивает
|
||||
добавление задающих внешний вид и сообщения дистрибутива
|
||||
пакетов; см. тж. http://www.altlinux.org/Branding
|
13
features.in/branding/config.mk
Normal file
13
features.in/branding/config.mk
Normal file
@ -0,0 +1,13 @@
|
||||
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
|
1
features.in/branding/live/lib/50branding.mk
Normal file
1
features.in/branding/live/lib/50branding.mk
Normal file
@ -0,0 +1 @@
|
||||
IMAGE_PACKAGES_REGEXP += $(call branding,$(THE_BRANDING))
|
1
features.in/branding/main/lib/50branding.mk
Normal file
1
features.in/branding/main/lib/50branding.mk
Normal file
@ -0,0 +1 @@
|
||||
IMAGE_PACKAGES_REGEXP += $(call branding,$(THE_BRANDING))
|
1
features.in/branding/stage1/lib/50branding.mk
Normal file
1
features.in/branding/stage1/lib/50branding.mk
Normal file
@ -0,0 +1 @@
|
||||
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)))$$
|
||||
|
Loading…
Reference in New Issue
Block a user