fixed stage1 for syslinux.iso

squashcfk.mk is not to be attempted to copy unconditionally,
if we've got no kernel for stage2 there's no data (and hook)
to create it there
This commit is contained in:
Michael Shigorin 2011-08-21 20:45:50 +03:00
parent f5a8b89381
commit 2b47da9852

View File

@ -41,8 +41,10 @@ CHROOT_PACKAGES = $(STAGE1_PACKAGES) $(COMMON_PACKAGES)
# scripts prepare bootloader configuration, too
# NB: we pass tested squashfs options for ../install2/Makefile
all: | debug prepare-workdir copy-tree run-scripts build-propagator \
copy-$(BOOTLOADER) pack-image $(GLOBAL_CLEAN_WORKDIR)
@cp $(OUTDIR)/squashcfg.mk $(GLOBAL_BUILDDIR)/
copy-$(BOOTLOADER) $(COPY_SQUASHCFG) pack-image $(GLOBAL_CLEAN_WORKDIR)
@if test -s $(OUTDIR)/squashcfg.mk; then \
cp $(OUTDIR)/squashcfg.mk $(GLOBAL_BUILDDIR)/; \
fi
debug:
@if test -n "$(GLOBAL_VERBOSE)"; then \