blob: 8517c033e914efd8d6c375a6794ef2637acb2249 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# we dont need the kernel in the image
ROOTFS_POSTPROCESS_COMMAND = "rm -f ${IMAGE_ROOTFS}/tmp/zImage*"
# create a tar.gz (.imgz) file containing the filesystem and the kernel
nylon_create_imgz() {
rm -rf ${DEPLOY_DIR_IMAGE}/tmp
rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.imgz
install -d ${DEPLOY_DIR_IMAGE}/tmp
cp ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_NAME}.flash.bin ${DEPLOY_DIR_IMAGE}/tmp/zImage.flash
cp ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.${type} ${DEPLOY_DIR_IMAGE}/tmp/rootfs.${type}
( cd ${DEPLOY_DIR_IMAGE}/tmp; tar cvzf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.imgz * )
rm -r ${DEPLOY_DIR_IMAGE}/tmp
}
IMAGE_POSTPROCESS_COMMAND += "nylon_create_imgz;"
|