kumquat-buildroot/fs/cpio/cpio.mk

18 lines
445 B
Makefile
Raw Normal View History

#############################################################
#
# cpio to archive target filesystem
#
#############################################################
define ROOTFS_CPIO_INIT_SYMLINK
2006-11-22 22:24:58 +01:00
rm -f $(TARGET_DIR)/init
2006-11-22 20:58:35 +01:00
ln -s sbin/init $(TARGET_DIR)/init
endef
ROOTFS_CPIO_PRE_GEN_HOOKS += ROOTFS_CPIO_INIT_SYMLINK
2007-08-12 00:01:13 +02:00
define ROOTFS_CPIO_CMD
cd $(TARGET_DIR) && find . | cpio --quiet -o -H newc > $$@
endef
2007-08-12 00:01:13 +02:00
$(eval $(call ROOTFS_TARGET,cpio))