summaryrefslogtreecommitdiff
path: root/classes/simpad_flashimg.oeclass
blob: 84b2d2e1e42603b0fd180d265d8b03c78d3db07b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
EXTRA_IMAGEDEPENDS += 'virtual/kernel genboot-native'
IMAGE_CMD_jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime \
                   --output=${T}/${IMAGE_NAME}.rootfs.jffs2 \
		   ${EXTRA_IMAGECMD}; \
		   simpad_do_flashimg"
IMAGE_POSTPROCESS_COMMAND += "rm -f ${IMAGE_ROOTFS}/boot/zImage*; "

simpad_do_flashimg() {
	cd ${DEPLOY_DIR_IMAGE}
	simpad-make-flashimg complete ${STAGING_KERNEL_DIR}/zImage ${T}/${IMAGE_NAME}.rootfs.jffs2
	mv zImage.initrd.flashfile ${IMAGE_NAME}.img
}