#!/bin/sh
if [ "x$1" == "x" ]; then
	echo "Please provide an argument or two"
	return 1;
fi

TARGET=$2

if [ "x$TARGET" == "x" ]; then
	TARGET=`basename "$1"`.binhex
fi

TMPFILE=`mktemp`

echo "Converting $1 to $TARGET"

objcopy -j.text -O binary "$1" "$TMPFILE"
hexdump -v -e '"0x%08x\n"' "$TMPFILE" > "$TARGET"

Add hexdump image creation tool
Add hexdump image creation tool

Signed-off-by: Jan Vesely <ed664c4bb5cadd95cb7521d1190a56e280fa6954@rutgers.edu>
