summaryrefslogtreecommitdiff
path: root/build_tools/make_firmware_object.in
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2008-05-23 14:32:43 +0000
committerKevin P. Fleming <kpfleming@digium.com>2008-05-23 14:32:43 +0000
commit9288979fd4333f7afbd5a4838b678634f7d8a375 (patch)
treed26759059c2c5a45aa556e055ef3e4ffa52ea13a /build_tools/make_firmware_object.in
parent879dd11beedffead65cb7a3acc4ad99701029584 (diff)
add configure script
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4337 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'build_tools/make_firmware_object.in')
-rwxr-xr-xbuild_tools/make_firmware_object.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/build_tools/make_firmware_object.in b/build_tools/make_firmware_object.in
new file mode 100755
index 0000000..1c301a4
--- /dev/null
+++ b/build_tools/make_firmware_object.in
@@ -0,0 +1,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