2011-10-06 12:46:31 +04:00
# step 4: build the distribution image
2012-03-26 23:23:28 +04:00
# 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)
2013-01-24 22:35:15 +04:00
BOOT_VOLI := $( shell echo $( META_VOL_ID) | cut -c1-32)
2012-03-26 23:23:28 +04:00
BOOT_VOLS := $( META_VOL_SET)
BOOT_BIBL := $( META_BIBLIO)
BOOT_ABST := $( META_ABSTRACT)
2018-07-25 16:26:04 +03:00
BOOT_COPY := $( META_LICENSE_FILE)
2018-07-25 16:21:00 +03:00
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)
2018-07-25 16:26:04 +03:00
ISODATA_COPY = $( BOOT_COPY)
2018-07-25 16:21:00 +03:00
2013-09-18 17:56:21 +04:00
DATE_F := $( shell date +%F)
2012-03-26 23:23:28 +04:00
2018-07-25 15:40:56 +03:00
i f e q ( i s o d a t a , $( IMAGE_PACKTYPE ) )
BOOT_TYPE :=
e l s e
2018-05-10 11:31:33 +03:00
i f e q ( , $( filter -out e 2k %,$ ( ARCH ) ) )
BOOT_TYPE := e2kboot
2018-07-25 15:40:56 +03:00
e n d i f
i f e q ( , $( filter -out i 586 x 86_ 64,$ ( ARCH ) ) )
2012-03-26 23:23:28 +04:00
BOOT_TYPE := isolinux
2018-05-10 11:31:33 +03:00
e n d i f
2019-07-10 08:44:40 +03:00
i f e q ( , $( filter -out aarch 64,$ ( ARCH ) ) )
2021-02-16 20:57:36 +03:00
BOOT_TYPE := efiboot
2019-07-10 08:44:40 +03:00
e n d i f
2019-07-09 14:20:17 +03:00
i f e q ( , $( filter -out ppc 64le ,$ ( ARCH ) ) )
BOOT_TYPE := ieee1275boot
e n d i f
2018-07-25 15:40:56 +03:00
e n d i f
2011-10-06 12:46:31 +04:00
2017-01-24 17:22:12 +03:00
all : | $( GLOBAL_DEBUG ) prep copy -subdirs copy -tree run -scripts pack -image \
2011-10-06 12:46:31 +04:00
postprocess $( GLOBAL_CLEAN_WORKDIR)
2017-01-24 17:22:12 +03:00
prep : | $( GLOBAL_DEBUG ) dot -disk $( WHATEVER )
2011-10-06 12:46:31 +04:00
2012-08-10 00:32:00 +04:00
# can't use mp-showref which belongs to the metaprofile
2011-10-06 12:46:31 +04:00
dot-disk :
@mkdir -p files/.disk
2019-02-13 18:18:00 +03:00
@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
2011-10-06 12:46:31 +04:00
@echo " $( ARCH) " >files/.disk/arch
@echo " $( DATE) " >files/.disk/date
@if type -t git >& /dev/null; then \
2011-10-31 12:34:15 +04:00
( cd $( TOPDIR) && test -d .git && \
git show-ref --head -ds -- HEAD || :) \
2011-10-06 12:46:31 +04:00
>files/.disk/commit 2>/dev/null; \
fi