[zaptel-commits] file: branch file/zaptel-firmware r2080 - /team/file/zaptel-firmware/build_to...

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Fri Feb 2 11:10:01 MST 2007


Author: file
Date: Fri Feb  2 12:10:00 2007
New Revision: 2080

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2080
Log:
Probably want the script that makes the firmware object...

Added:
    team/file/zaptel-firmware/build_tools/make_firmware_object   (with props)

Added: team/file/zaptel-firmware/build_tools/make_firmware_object
URL: http://svn.digium.com/view/zaptel/team/file/zaptel-firmware/build_tools/make_firmware_object?view=auto&rev=2080
==============================================================================
--- team/file/zaptel-firmware/build_tools/make_firmware_object (added)
+++ team/file/zaptel-firmware/build_tools/make_firmware_object Fri Feb  2 12:10:00 2007
@@ -1,0 +1,12 @@
+#!/bin/sh -e
+
+# make an object file from a raw binary firmware file
+# arguments:
+#   1 - firmware file
+#   2 - output file
+#   3 - template output file (used to learn desired format)
+
+bfdname=`objdump -f ${3} | grep -e "${3}:" | sed "s/.*file format \(.*\)/\1/"`
+bfdarch=`objdump -f ${3} | grep -e "architecture:" | sed "s/.*ture: \(.*\),.*/\1/"`
+
+objcopy -I binary ${1} -B ${bfdarch} -O ${bfdname} ${2}

Propchange: team/file/zaptel-firmware/build_tools/make_firmware_object
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/file/zaptel-firmware/build_tools/make_firmware_object
------------------------------------------------------------------------------
    svn:executable = *

Propchange: team/file/zaptel-firmware/build_tools/make_firmware_object
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/file/zaptel-firmware/build_tools/make_firmware_object
------------------------------------------------------------------------------
    svn:mime-type = text/plain



More information about the zaptel-commits mailing list