90-build-distro.mk 1.22 KB
Newer Older
1 2
# step 4: build the distribution image

3 4 5 6 7
# proxy over the ISO metadata collected; see also genisoimagerc(5)
BOOT_SYSI := $(META_SYSTEM_ID)
BOOT_PUBL := $(META_PUBLISHER)
BOOT_PREP := $(META_PREPARER)
BOOT_APPI := $(META_APP_ID)
8
BOOT_VOLI := $(shell echo $(META_VOL_ID) | cut -c1-32)
9 10 11
BOOT_VOLS := $(META_VOL_SET)
BOOT_BIBL := $(META_BIBLIO)
BOOT_ABST := $(META_ABSTRACT)
12
BOOT_COPY := $(META_LICENSE_FILE)
13 14 15 16 17 18 19 20 21

ISODATA_SYSI = $(BOOT_SYSI)
ISODATA_PUBL = $(BOOT_PUBL)
ISODATA_PREP = $(BOOT_PREP)
ISODATA_APPI = $(BOOT_APPI)
ISODATA_VOLI = $(BOOT_VOLI)
ISODATA_VOLS = $(BOOT_VOLS)
ISODATA_BIBL = $(BOOT_BIBL)
ISODATA_ABST = $(BOOT_ABST)
22
ISODATA_COPY = $(BOOT_COPY)
23

24
DATE_F    := $(shell date +%F)
25

26
BOOT_TYPE := $(BOOTLOADER)
27

28
all: | $(GLOBAL_DEBUG) prep copy-subdirs copy-tree run-scripts pack-image \
29 30
	postprocess $(GLOBAL_CLEAN_WORKDIR)

31
prep: | $(GLOBAL_DEBUG) dot-disk $(WHATEVER)
32

Michael Shigorin's avatar
Michael Shigorin committed
33
# can't use mp-showref which belongs to the metaprofile
34 35
dot-disk:
	@mkdir -p files/.disk
36 37 38 39 40
	@if [ -n "$(META_DISK_INFO)" ]; then \
		echo "$(META_DISK_INFO)" >files/.disk/info; \
	else \
		echo "$(META_VOL_ID) build $(DATE_F)" >files/.disk/info; \
	fi
41 42
	@echo "$(ARCH)" >files/.disk/arch
	@echo "$(DATE)" >files/.disk/date
43
	@if [ -s commit ]; then cp commit files/.disk/; fi