2013-06-06 23:54:13 +02:00
|
|
|
################################################################################
|
2010-12-21 18:38:07 +01:00
|
|
|
#
|
|
|
|
# Embed the ubifs image into an ubi one
|
|
|
|
#
|
2013-06-06 23:54:13 +02:00
|
|
|
################################################################################
|
2010-12-21 18:38:07 +01:00
|
|
|
|
|
|
|
UBI_UBINIZE_OPTS := -m $(BR2_TARGET_ROOTFS_UBIFS_MINIOSIZE)
|
|
|
|
UBI_UBINIZE_OPTS += -p $(BR2_TARGET_ROOTFS_UBI_PEBSIZE)
|
|
|
|
ifneq ($(BR2_TARGET_ROOTFS_UBI_SUBSIZE),0)
|
|
|
|
UBI_UBINIZE_OPTS += -s $(BR2_TARGET_ROOTFS_UBI_SUBSIZE)
|
|
|
|
endif
|
|
|
|
|
2013-04-24 04:29:19 +02:00
|
|
|
UBI_UBINIZE_OPTS += $(call qstrip,$(BR2_TARGET_ROOTFS_UBI_OPTS))
|
|
|
|
|
2010-12-21 18:38:07 +01:00
|
|
|
ROOTFS_UBI_DEPENDENCIES = rootfs-ubifs
|
|
|
|
|
|
|
|
define ROOTFS_UBI_CMD
|
|
|
|
cp fs/ubifs/ubinize.cfg . ;\
|
2013-01-20 15:03:13 +01:00
|
|
|
echo "image=$@fs" \
|
2010-12-21 18:38:07 +01:00
|
|
|
>> ./ubinize.cfg ;\
|
2013-01-20 15:03:13 +01:00
|
|
|
$(HOST_DIR)/usr/sbin/ubinize -o $@ $(UBI_UBINIZE_OPTS) ubinize.cfg ;\
|
2010-12-21 18:38:07 +01:00
|
|
|
rm ubinize.cfg
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call ROOTFS_TARGET,ubi))
|