File: make_firmware_object.in

package info (click to toggle)
dahdi-tools 1%3A3.1.0-2.1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 4,416 kB
  • sloc: ansic: 54,472; perl: 4,031; sh: 2,618; makefile: 555; xml: 26
file content (11 lines) | stat: -rwxr-xr-x 282 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh -e

# make an object file from a raw binary firmware file
# arguments:
#   1 - firmware file
#   2 - output file

bfdname=@BDFNAME@
bfdarch=@BDFARCH@

objcopy -I binary ${1} -B ${bfdarch} -O ${bfdname} ${2} --rename-section .data=.rodata,alloc,load,data,contents,readonly