File: make_firmware_object.in

package info (click to toggle)
dahdi-linux 1%3A2.6.1%2Bdfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 7,212 kB
  • sloc: ansic: 119,954; perl: 1,397; sh: 914; makefile: 489
file content (8 lines) | stat: -rw-r--r-- 239 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
#!/bin/sh -e

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

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