summaryrefslogtreecommitdiff
path: root/drivers/dahdi/firmware/make_firmware_object.in
blob: 0effb32755f63408901246e5840554aa9905f7f4 (plain)
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