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