2006-11-22 20:10:59 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# cpio to archive target filesystem
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2010-03-10 00:13:24 +01:00
|
|
|
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
|
2010-03-10 00:13:24 +01:00
|
|
|
endef
|
2006-11-22 20:10:59 +01:00
|
|
|
|
2010-03-10 00:13:24 +01:00
|
|
|
ROOTFS_CPIO_PRE_GEN_HOOKS += ROOTFS_CPIO_INIT_SYMLINK
|
2007-08-12 00:01:13 +02:00
|
|
|
|
2010-03-10 00:13:24 +01:00
|
|
|
define ROOTFS_CPIO_CMD
|
|
|
|
cd $(TARGET_DIR) && find . | cpio --quiet -o -H newc > $$@
|
|
|
|
endef
|
2007-08-12 00:01:13 +02:00
|
|
|
|
2010-03-10 00:13:24 +01:00
|
|
|
$(eval $(call ROOTFS_TARGET,cpio))
|