poky/meta/classes/srec.bbclass
Darren Hart fc934af7c8 logging: update existing oe* logging users to the bb* interface
The new bash logging class provides bbnote, bbwarn, bbfatal, and bbdebug
replacements (as well as bbplain and bberror) for the oe* equivalents. Use the
new bb* API in preparation to delete the oe* logging API.

This patch was automatically generated by a sed script. The result has been
visually inspected and used to build core-image-sato for qemux86.

(From OE-Core rev: a1f09fce5caba389d0484b169f0cde85d64514fa)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-05-04 00:54:37 +01:00

29 lines
762 B
Plaintext

#
# Creates .srec files from images.
#
# Useful for loading with Yamon.
# Define SREC_VMAADDR in your machine.conf.
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"
# Do not build srec files for these types of images:
SREC_SKIP = "tar"
do_srec[nostamp] = "1"
do_srec () {
if [ ${SREC_VMAADDR} = "" ] ; then
bbfatal Cannot do_srec without SREC_VMAADDR defined.
fi
for type in ${IMAGE_FSTYPES}; do
for skiptype in ${SREC_SKIP}; do
if [ $type = $skiptype ] ; then continue 2 ; fi
done
${SREC_CMD}
done
return 0
}
addtask srec after do_rootfs before do_build