mkimage-profiles/image.in/Makefile

38 lines
1003 B
Makefile
Raw Normal View History

include globals.mk
include functions.mk
include $(MKIMAGE_PREFIX)/config.mk
include $(GLOBAL_BUILDDIR)/.config.mk
SUBDIRS = $(SUBPROFILES)
# "main" subprofile needs genbasedir
CHROOT_PACKAGES = apt-utils
###
MKI_PACK_RESULTS = isoboot:mkimage-profiles.iso
COPY_TREE = ./files
BOOT_TYPE = isolinux
include $(MKIMAGE_PREFIX)/targets.mk
all: prep copy-tree copy-subdirs run-scripts pack-image
# FIXME: scripts.d/?
prep: disk-info metadata
@echo "TOPDIR=$(TOPDIR)"
disk-info:
mkdir -p files/.disk
echo "$(PROPAGATOR_VERSION)" >files/.disk/info ### +$(ARCH)
(cd $(TOPDIR); git show-ref --head --dereference -s -- HEAD 2>/dev/null) >files/.disk/commit
[ -s files/.disk/commit ] || rm files/.disk/commit
# see also alterator-pkg (backend3/pkg-install)
# FIXME: groups unmerged, and only .base hardwired in
metadata:
mkdir -p files/Metadata
rm -f files/Metadata/pkg-groups.tar
tar -cvf files/Metadata/pkg-groups.tar \
-C $(PKGDIR) \
$(shell echo $(call list,.base) | sed 's,$(PKGDIR)/*,,g')