image.in/Makefile: introduced save-profile

From now on, non-empty SAVE_PROFILE variable will indicate
the need to carry the particular generated profile inside
the image built from it.

Thanks gns@ for this feature in liveflash.eeepc.
This commit is contained in:
Michael Shigorin 2012-02-07 22:21:33 +02:00
parent 3dd020338b
commit 4355f401db
2 changed files with 12 additions and 0 deletions

View File

@ -65,6 +65,11 @@
+ значение: пусто (по умолчанию) либо любая строка
+ см. ../lib/build.mk
- SAVE_PROFILE
+ сохраняет архив сгенерированного профиля в .disk/
+ значение: пусто (по умолчанию) либо любая строка
+ см. ../image.in/Makefile
пример
~~~~~~
make DEBUG=1 CLEAN=1 distro/syslinux.iso

View File

@ -47,6 +47,13 @@ include $(MKIMAGE_PREFIX)/targets.mk
pack-image: OUTDIR = $(IMAGEDIR)
pack-image: imagedir
copy-tree: $(SAVE_PROFILE:%=save-profile)
save-profile:
@mkdir -p files/.disk; \
git archive --prefix=mkimage-profile/ HEAD \
| gzip -9 > files/.disk/profile.tgz
.PHONY: imagedir postprocess debug
imagedir: