File: make_firmware_object.in

package info (click to toggle)
dahdi-firmware 2.11.1.0.20170917-3
  • links: PTS, VCS
  • area: non-free-firmware
  • in suites: trixie
  • size: 9,224 kB
  • sloc: ansic: 120,145; perl: 2,395; sh: 973; makefile: 365; xml: 21
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