OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [i386/] [ts_386ex/] [tools/] [coff2bin] - Blame information for rev 493

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
#!/bin/sh
2
# Just a Q&D prog to convert a bunch of RTEMS generated COFF files to raw
3
# binary images that can be loaded on the TS-1325. The converted files are
4
# saved in the current directory.
5
#
6
# Tony Ambardar
7
 
8
OBJCOPY=/usr/local/rtems/bin/i386-rtems-objcopy
9
 
10
if [ $# = 0 ]
11
then
12
  echo "Description: Convert RTEMS coff files to raw binary files."
13
  echo "Usage: coff2bin "
14
  echo
15
  exit 1
16
fi
17
 
18
for i in $*
19
do
20
  OUTFILE=$(basename `echo $i | sed 's/\.[a-zA-Z0-9]*$//g'`.bin)
21
  $OBJCOPY -O binary $i $OUTFILE
22
done
23
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.