Solo4K Support.
[vuplus_openvuplus_3.0] / meta-bsp / classes / image_types_ubi_splash.bbclass
1 inherit image_types
2
3 UBI_VOLNAME = "rootfs"
4 MKUBIFS_ARGS = "-m 2048 -e 126976 -c ${MKFS_UBI_MAX_ERASE_BLK_COUNT} -F"
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/splash_cfe_auto.bin ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.splash_cfe_auto.bin; \
13         rm -f ${IMAGE_ROOTFS}/tmp/vmlinux.gz; \
14         rm -f ${IMAGE_ROOTFS}/boot/splash_cfe_auto.bin; \
15         mkfs.jffs2 --root=${IMAGE_ROOTFS}/boot --faketime \
16         --disable-compressor=lzo --compression-mode=size \
17         --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.boot.jffs2 \
18         ${EXTRA_IMAGECMD_COMPAT}; rm -rf ${IMAGE_ROOTFS}/boot/*; \
19 "
20
21 IMAGE_CMD_ubi_append = " \
22         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; \
23         mkdir -p ${DEPLOY_DIR_IMAGE}/${IMAGE_UNPACK_PATH}; \
24         cp ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ubi ${DEPLOY_DIR_IMAGE}/${IMAGE_UNPACK_PATH}/root_cfe_auto.jffs2; \
25         cp ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.boot.jffs2 ${DEPLOY_DIR_IMAGE}/${IMAGE_UNPACK_PATH}/boot_cfe_auto.jffs2; \
26         cp ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.vmlinux.gz ${DEPLOY_DIR_IMAGE}/${IMAGE_UNPACK_PATH}/kernel_cfe_auto.bin; \
27         cp ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.splash_cfe_auto.bin ${DEPLOY_DIR_IMAGE}/${IMAGE_UNPACK_PATH}/splash_cfe_auto.bin; \
28         cd ${DEPLOY_DIR_IMAGE}; \
29         zip ${IMAGE_NAME}_usb.zip ${IMAGE_UNPACK_PATH}/*; \
30         rm -rf vuplus; \
31 "