transtreamproxy updated.
[vuplus_openvuplus_3.0] / meta-bsp / classes / image_types_ubi.bbclass
1 inherit image_types
2
3 UBI_VOLNAME = "rootfs"
4
5 MKUBIFS_ARGS = "-m 2048 -e 126976 -c ${MKFS_UBI_MAX_ERASE_BLK_COUNT} -F"
6 UBINIZE_ARGS = "-m 2048 -p 128KiB"
7
8 IMAGEDIR ?= "${MACHINE}"
9 EXTRA_IMAGECMD_COMPAT = "--eraseblock=0x20000 -n -l"
10
11 IMAGE_CMD_ubi_prepend = " \
12         cp ${IMAGE_ROOTFS}/tmp/vmlinux.gz ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.vmlinux.gz; \
13         rm -f ${IMAGE_ROOTFS}/tmp/vmlinux.gz; \
14         mkfs.jffs2 --root=${IMAGE_ROOTFS}/boot --faketime \
15         --disable-compressor=lzo --compression-mode=size \
16         --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.boot.jffs2 \
17         ${EXTRA_IMAGECMD_COMPAT}; rm -rf ${IMAGE_ROOTFS}/boot/*; \
18 "
19
20 IMAGE_CMD_ubi_append = " \
21         vfi3 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubi ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.boot.jffs2 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.vmlinux.gz > ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.nfi; \
22         mkdir -p ${DEPLOY_DIR_IMAGE}/${IMAGE_UNPACK_PATH}; \
23         cp ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubi ${DEPLOY_DIR_IMAGE}/${IMAGE_UNPACK_PATH}/root_cfe_auto.jffs2; \
24         cp ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.boot.jffs2 ${DEPLOY_DIR_IMAGE}/${IMAGE_UNPACK_PATH}/boot_cfe_auto.jffs2; \
25         cp ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.vmlinux.gz ${DEPLOY_DIR_IMAGE}/${IMAGE_UNPACK_PATH}/kernel_cfe_auto.bin; \
26         cd ${DEPLOY_DIR_IMAGE}; \
27         zip ${IMAGE_NAME}_usb.zip ${IMAGE_UNPACK_PATH}/*; \
28         rm -rf vuplus; \
29 "