tsmd: install also a little helper script to control the touchscreen daemon
[openembedded.git] / classes / nylon-image.bbclass
blobe973bf7cf56ddad7d64ecf64683cd0ffbcdf5ab6
1 # we dont need the kernel in the image
2 ROOTFS_POSTPROCESS_COMMAND = "rm -f ${IMAGE_ROOTFS}/tmp/*Image*"
4 # create a tar.gz (.imgz) file containing the filesystem and the kernel
5 nylon_create_imgz() {
6         rm -rf ${DEPLOY_DIR_IMAGE}/tmp
7         rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.imgz
8         install -d ${DEPLOY_DIR_IMAGE}/tmp
9         
10         # copy the kernel (for mips on flash) into tmp  
11         FLASH_BIN=${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_NAME}.flash.bin  
12         cp ${FLASH_BIN} ${DEPLOY_DIR_IMAGE}/tmp/zImage.flash 
14         # copy rootfs.jffs (or so) into tmp 
15         cp ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 ${DEPLOY_DIR_IMAGE}/tmp/rootfs.jffs2
17         # make an imgz out of tmp
18         ( cd ${DEPLOY_DIR_IMAGE}/tmp; tar cvzf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.imgz * )
19         rm -r ${DEPLOY_DIR_IMAGE}/tmp
22 IMAGE_POSTPROCESS_COMMAND += "kldsköa"
23 IMAGE_POSTPROCESS_COMMAND_mtx-1 += "nylon_create_imgz;"
24 IMAGE_POSTPROCESS_COMMAND_mtx-2 += "nylon_create_imgz;"
25 IMAGE_POSTPROCESS_COMMAND_mtx-3a += "nylon_create_initrd_uimage;"