5f88152223
In particular: - .base is now generated from pieces (see image.in/Makefile) - s/DISTROS/IMAGES/g; s/CONFIGS/DISTROS/g (for clarity) - s/DISK_LISTS/MAIN_LISTS/g ("disk" was early m-p-d legacy) - introduced BASE_PACKAGES to complement BASE_LISTS - minor tweaks to Makefile (ARCH and DATE moved elsewhere) - libdistro.mk: dropped overlooked IMAGE_INIT_LIST copy - clean.mk: silly cleanup
34 lines
1.0 KiB
Makefile
34 lines
1.0 KiB
Makefile
# low-level part of distro.mk
|
|
|
|
# request particular image subprofile inclusion
|
|
sub/%:
|
|
@$(call add,SUBPROFILES,$(@:sub/%=%))
|
|
|
|
sub/install2: sub/stage1
|
|
|
|
boot/%: distro/.init
|
|
@$(call set,BOOTLOADER,$*)
|
|
|
|
# initalize config from scratch, put some sane defaults in
|
|
distro/.init:
|
|
@echo "** preparing distro configuration$${DEBUG:+: see $(CONFIG)}" $(SHORTEN)
|
|
@$(call try,MKIMAGE_PREFIX,/usr/share/mkimage)
|
|
@$(call try,GLOBAL_VERBOSE,)
|
|
@$(call try,IMAGEDIR,$(IMAGEDIR))
|
|
@$(call try,IMAGENAME,$(IMAGENAME))
|
|
|
|
distro/.branding: distro/.init
|
|
@$(call try,BRANDING,altlinux-sisyphus)
|
|
@$(call set,IMAGE_INIT_LIST,+branding-$$(BRANDING)-release)
|
|
|
|
# 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/.branding sub/stage1 use/syslinux use/syslinux/localboot.cfg
|
|
@$(call set,KFLAVOURS,std-def)
|
|
|
|
# pick up release manager's config
|
|
distro/.rc:
|
|
@if [ -s $(HOME)/.mkimage/profiles.mk ]; then \
|
|
$(call put,-include $(HOME)/.mkimage/profiles.mk); \
|
|
fi
|