fso-specs: bump version and SRCREV
[openembedded.git] / classes / srec.bbclass
bloba869a4f1f37306ec97d45b6eed23b1615d5a8eea
2 # Creates .srec files from images.
4 # Useful for loading with Yamon.
6 # Define SREC_VMAADDR in your machine.conf.
8 SREC_CMD = "${TARGET_PREFIX}objcopy -O srec -I binary --adjust-vma ${SREC_VMAADDR} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.${type} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.${type}.srec"
10 # Do not build srec files for these types of images:
11 SREC_SKIP = "tar"
13 do_srec[nostamp] = "1"
15 do_srec () {
16     if [ ${SREC_VMAADDR} = "" ] ; then
17        oefatal Cannot do_srec without SREC_VMAADDR defined.
18     fi
19     for type in ${IMAGE_FSTYPES}; do
20         for skiptype in ${SREC_SKIP}; do
21             if [ $type = $skiptype ] ; then continue 2 ; fi
22         done
23         ${SREC_CMD}
24     done
25     return 0
28 addtask srec after do_rootfs before do_build