summaryrefslogtreecommitdiff
path: root/drivers/dahdi/firmware/make_firmware_object.in
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dahdi/firmware/make_firmware_object.in')
-rwxr-xr-xdrivers/dahdi/firmware/make_firmware_object.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/dahdi/firmware/make_firmware_object.in b/drivers/dahdi/firmware/make_firmware_object.in
new file mode 100755
index 0000000..0effb32
--- /dev/null
+++ b/drivers/dahdi/firmware/make_firmware_object.in
@@ -0,0 +1,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