summaryrefslogblamecommitdiffstats
path: root/fs/cpio/cpio.mk
blob: ab7d546185bae66de0cc070d56fb0b5c4026d4f4 (plain) (tree)
1
2
3
4
5
6
7
8
9





                                                             
                               
                                
                                          
     
 
                                                     
 


                                                                  
 
                                 
#############################################################
#
# cpio to archive target filesystem
#
#############################################################

define ROOTFS_CPIO_INIT_SYMLINK
	rm -f $(TARGET_DIR)/init
	ln -s sbin/init $(TARGET_DIR)/init
endef

ROOTFS_CPIO_PRE_GEN_HOOKS += ROOTFS_CPIO_INIT_SYMLINK

define ROOTFS_CPIO_CMD
	cd $(TARGET_DIR) && find . | cpio --quiet -o -H newc > $$@
endef

$(eval $(call ROOTFS_TARGET,cpio))