source: rtems/c/src/lib/libbsp/i386/ts_386ex/tools/elf2exe @ cba119c9

4.104.114.84.95
Last change on this file since cba119c9 was 1d4048b2, checked in by Joel Sherrill <joel.sherrill@…>, on 08/11/99 at 23:45:57

Patch from Tony R. Ambardar <tonya@…>:

I'm attaching a big patch for the ts_386ex BSP which adds and includes
the following:

1) Conversion to ELF format + minor code cleanups + documentation.

2) An Ada95 binding to FreeBSD sockets, based on Samuel Tardieu's

adasockets-0.1.3 package. This includes some sample applications.

3) Some Ada and C interfaces to add serial-port debugging to

programs. Comes with examples, too; the Ada one shows how
transparent adding the support can be. Note that Rosimildo sent me
the original C code.

The network stuff is not BSP specific, and could be added to your Ada
code collection. The debugging stuff is specific to the i386. Right
now, everything sits in my "tools" directory.

  • Property mode set to 100755
File size: 532 bytes
Line 
1#!/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
8OBJCOPY=/usr/local/rtems/bin/i386-rtemself-objcopy
9
10if [ $# = 0 ]
11then
12  echo "Description: Convert RTEMS elf files to raw binary files."
13  echo "Usage: elf2exe <list-of-elf-files>"
14  echo
15  exit 1
16fi
17
18for i in $*
19do
20  OUTFILE=$(basename `echo $i | sed 's/\.[a-zA-Z0-9]*$//g'`.exe)
21  $OBJCOPY -O binary $i $OUTFILE
22done
23
Note: See TracBrowser for help on using the repository browser.