@ -78,8 +78,6 @@ fs-types-$(CONFIG_TARGET_ROOTFS_EXT4FS) += ext4
fs-types-$(CONFIG_TARGET_ROOTFS_ISO) += iso
fs-types-$(CONFIG_TARGET_ROOTFS_UBIFS) += ubifs
fs-subtypes-$(CONFIG_TARGET_ROOTFS_JFFS2) += $( addsuffix -raw,$( addprefix jffs2-,$( JFFS2_BLOCKSIZE) ) )
fs-subtypes-$(CONFIG_TARGET_ROOTFS_CPIOGZ) += cpiogz
fs-subtypes-$(CONFIG_TARGET_ROOTFS_TARGZ) += targz
TARGET_FILESYSTEMS := $( fs-types-y)
@ -217,16 +215,6 @@ define Image/mkfs/ubifs
-o $@ -d $( TARGET_DIR)
e n d e f
d e f i n e I m a g e / m k f s / c p i o g z
( cd $( TARGET_DIR) ; find . | cpio -o -H newc | gzip -9n >$( BIN_DIR) /$( IMG_PREFIX) -rootfs.cpio.gz )
e n d e f
d e f i n e I m a g e / m k f s / t a r g z
$( TAR) -cp --numeric-owner --owner= 0 --group= 0 --sort= name \
$( if $( SOURCE_DATE_EPOCH) ,--mtime= " @ $( SOURCE_DATE_EPOCH) " ) \
-C $( TARGET_DIR) / . | gzip -9n > $( BIN_DIR) /$( IMG_PREFIX) $( if $( PROFILE_SANITIZED) ,-$( PROFILE_SANITIZED) ) -rootfs.tar.gz
e n d e f
E2SIZE = $( shell echo $$ ( ( $( CONFIG_TARGET_ROOTFS_PARTSIZE) *1024*1024) ) )
d e f i n e I m a g e / m k f s / e x t 4
@ -259,6 +247,20 @@ define Image/Checksum
)
e n d e f
i f d e f C O N F I G _ T A R G E T _ R O O T F S _ T A R G Z
define Image/Build/targz
$( TAR) -cp --numeric-owner --owner= 0 --group= 0 --sort= name \
$( if $( SOURCE_DATE_EPOCH) ,--mtime= " @ $( SOURCE_DATE_EPOCH) " ) \
-C $( TARGET_DIR) / . | gzip -9n > $( BIN_DIR) /$( IMG_PREFIX) $( if $( PROFILE_SANITIZED) ,-$( PROFILE_SANITIZED) ) -rootfs.tar.gz
endef
e n d i f
i f d e f C O N F I G _ T A R G E T _ R O O T F S _ C P I O G Z
define Image/Build/cpiogz
( cd $( TARGET_DIR) ; find . | cpio -o -H newc | gzip -9n >$( BIN_DIR) /$( IMG_PREFIX) -rootfs.cpio.gz )
endef
e n d i f
$(KDIR)/root.% : kernel_prepare
$( call Image/mkfs/$( word 1,$( subst +,$( space) ,$* ) ) ,$( subst +,$( space) ,$* ) )
@ -478,6 +480,8 @@ define BuildImage
$( call Image/mkfs/prepare)
kernel_prepare: mkfs_prepare
$( call Image/Build/targz)
$( call Image/Build/cpiogz)
$( call Image/BuildKernel)
$( if $( CONFIG_TARGET_ROOTFS_INITRAMFS) ,$( if $( IB) ,,$( call Image/BuildKernel/Initramfs) ) )
$( call Image/InstallKernel)