view g23m/copyout.sh @ 44:a39516059f83

gdi display.c: using D-Sample-like approach fixed the display garbage bug
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Wed, 11 Nov 2015 23:34:43 +0000
parents c56a4b0bcf38
children
line wrap: on
line source

#!/bin/sh
# This shell script copies and renames the final output files from TI's
# nasty build system.  The latter gives these files insanely long names,
# hence we need to rename them before we can work with them comfortably.
#
# We also produce a binary image for flashing with fc-loadtool.
# In this C139 version we use dd to strip off the TCS211 version of
# the bootloader (uses non-understood protocol) and produce a binary
# image that can be flashed starting at 0x10000, using our
# compal-flash-boot-for-fc.bin as the bootloader.

if [ "$1" = aci -o "$1" = 2091 ]
then
	mmi_type=aci
	mmi_abbr=ac
else
	mmi_type=mfw
	mmi_abbr=mf
fi

long_name=gsm_${mmi_abbr}_gp_fd_pu_em_cph_ds_vc_cal35_ri_36_amd8_ts0
out=${mmi_type}-build

set -e
mkdir -p $out

echo copying $out
for ft in m0 map out
do
	cp -p __out__/$long_name/bin/$long_name.$ft $out/$out.$ft
done
cp -p __out__/$long_name/bin/str2ind.tab $out
echo converting from m0 to binary
mokosrec2bin $out/$out.m0 $out/$out.fullbin FF
dd if=$out/$out.fullbin of=$out/$out.progbin bs=65536 skip=1
echo $out is ready