OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

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

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 ELF 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-rtemself-objcopy
9
 
10
if [ $# = 0 ]
11
then
12
  echo "Description: Convert RTEMS elf files to raw binary files."
13
  echo "Usage: elf2exe "
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'`.exe)
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.