menuselect: Remove last bits completely from the repo
[dahdi/tools.git] / build_tools / make_firmware_object.in
1 #!/bin/sh -e
2
3 # make an object file from a raw binary firmware file
4 # arguments:
5 #   1 - firmware file
6 #   2 - output file
7
8 bfdname=@BDFNAME@
9 bfdarch=@BDFARCH@
10
11 objcopy -I binary ${1} -B ${bfdarch} -O ${bfdname} ${2} --rename-section .data=.rodata,alloc,load,data,contents,readonly