Commit b4757501 authored by Tim Gardner's avatar Tim Gardner

UBUNTU: [debian] Moved scripts/fw-to-ihex.sh to debian/scripts/misc

Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent 0cf7da6d
...@@ -10,7 +10,9 @@ fi ...@@ -10,7 +10,9 @@ fi
echo "unsigned char d[] = {" > $F.c echo "unsigned char d[] = {" > $F.c
hexdump -v -e '"\t" 8/1 "0x%02x, " "\n"' $F >> $F.c hexdump -v -e '"\t" 8/1 "0x%02x, " "\n"' $F >> $F.c
echo "};" >> $F.c echo "};" >> $F.c
sed -i 's/0x .*$//' $F.c
gcc -c $F.c O="`dirname $F`/`basename $F`.o"
gcc -o $O -c $F.c
objcopy -Oihex $F.o $F.ihex objcopy -Oihex $F.o $F.ihex
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment