blob: 9173e4ab450d9a0ced7df3a6eff44aae56032c87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# -*-makefile-*-
#
# Copyright (C) 2003-2010 by the ptxdist project <ptxdist@pengutronix.de>
#
# 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
$(IMAGEDIR)/root.cpio: $(STATEDIR)/image_working_dir
@echo -n "Creating '$(notdir $(@))' from working dir..."
@cd $(WORKDIR) && \
( \
awk -F: $(DOPERMISSIONS) $(IMAGEDIR)/permissions && \
echo "find . | cpio --quiet -H newc -o > '$(@)'" \
) | $(FAKEROOT) --
@echo "done."
SEL_ROOTFS-$(PTXCONF_IMAGE_CPIO_GZ) += $(IMAGEDIR)/root.cpio.gz
$(IMAGEDIR)/root.cpio.gz: $(IMAGEDIR)/root.cpio
@echo -n "Creating '$(notdir $(@))' from '$(notdir $(^))'..."
@cat "$(^)" | gzip -n --best > "$(@)"
@echo "done."
# vim: syntax=make
|