summaryrefslogtreecommitdiff
path: root/build_tools/make_firmware_object.in
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-10-28 18:26:04 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-10-28 18:26:04 +0000
commitf6b333c29926fba9141491d078c5bd0a85c83172 (patch)
treed2763f1026198221b8b456565dc2a9e1fbdbba89 /build_tools/make_firmware_object.in
parent60514309c0a2edc2bbb9bca527e10ceeef0c5691 (diff)
Firmware object file building does not depend anymore on another object
to be linked into the same module. That dependency existed solely for checking target binary properties in make_firmware_object . Those properties are now checked in autoconf. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3198 5390a7c7-147a-4af0-8ec9-7488f05a26cb
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