# -*-makefile-*- # # Copyright (C) 2003-2010 by the ptxdist project # # See CREDITS for details about who has contributed to this project. # # For further information about the PTXdist project and license conditions # see the README file. # SEL_ROOTFS-$(PTXCONF_IMAGE_CPIO) += $(IMAGEDIR)/root.cpio ifdef PTXCONF_IMAGE_CPIO $(IMAGEDIR)/root.cpio: $(STATEDIR)/image_working_dir @echo -n "Creating '$(notdir $(@))' from working dir..." @cd $(image/work_dir) && \ ( \ awk -F: $(DOPERMISSIONS) $(image/permissions) && \ echo "find . | cpio --quiet -H newc -o > '$(@)'" \ ) | $(FAKEROOT) -- @echo "done." endif SEL_ROOTFS-$(PTXCONF_IMAGE_CPIO_GZ) += $(IMAGEDIR)/root.cpio.gz ifdef PTXCONF_IMAGE_CPIO_GZ $(IMAGEDIR)/root.cpio.gz: $(IMAGEDIR)/root.cpio @echo -n "Creating '$(notdir $(@))' from '$(notdir $(^))'..." @cat "$(^)" | gzip -n --best > "$(@)" @echo "done." endif # vim: syntax=make