kinetis/check-fcfield: add fcfield verirication for bin files

This commit is contained in:
francisco 2019-05-27 17:43:19 +02:00
parent 963bbe75ba
commit 7156977fed

View File

@ -28,6 +28,8 @@ get_fc_field()
{ {
if [ ${1##*.} = elf ]; then if [ ${1##*.} = elf ]; then
arm-none-eabi-objdump -j.fcfield -s "${1}" arm-none-eabi-objdump -j.fcfield -s "${1}"
elif [ ${1##*.} = bin ]; then
arm-none-eabi-objdump --start-address=${FCFIELD_START} --stop-address=${FCFIELD_END} -bbinary -marm ${1} -s
elif [ ${1##*.} = hex ]; then elif [ ${1##*.} = hex ]; then
arm-none-eabi-objdump --start-address=${FCFIELD_START} --stop-address=${FCFIELD_END} ${1} -s arm-none-eabi-objdump --start-address=${FCFIELD_START} --stop-address=${FCFIELD_END} ${1} -s
else else