diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-10-28 18:26:04 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-10-28 18:26:04 +0000 |
commit | f6b333c29926fba9141491d078c5bd0a85c83172 (patch) | |
tree | d2763f1026198221b8b456565dc2a9e1fbdbba89 /build_tools | |
parent | 60514309c0a2edc2bbb9bca527e10ceeef0c5691 (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')
-rwxr-xr-x | build_tools/make_firmware_object.in (renamed from build_tools/make_firmware_object) | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/build_tools/make_firmware_object b/build_tools/make_firmware_object.in index 4d72110..1c301a4 100755 --- a/build_tools/make_firmware_object +++ b/build_tools/make_firmware_object.in @@ -4,9 +4,8 @@ # arguments: # 1 - firmware file # 2 - output file -# 3 - template output file (used to learn desired format) -bfdname=`LANG=C objdump -f ${3} | grep -e "${3}:" | sed "s/.*file format \(.*\)/\1/"` -bfdarch=`LANG=C objdump -f ${3} | grep -e "architecture:" | sed "s/.*ture: \(.*\),.*/\1/"` +bfdname=@BDFNAME@ +bfdarch=@BDFARCH@ objcopy -I binary ${1} -B ${bfdarch} -O ${bfdname} ${2} --rename-section .data=.rodata,alloc,load,data,contents,readonly |