1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-30 15:52:12 +01:00

Merge branch 'parched/OP-1735_Build_fails_with_tidle_in_path' into next

This commit is contained in:
James Duley 2015-02-20 11:59:12 +13:00
commit 31c13855eb

View File

@ -71,6 +71,9 @@ MSG_FLASH_IMG = $(QUOTE) FLASH_IMG $(MSG_EXTRA) $(QUOTE)
# to the top of the source tree.
toprel = $(subst $(realpath $(ROOT_DIR))/,,$(abspath $(1)))
# Function to replace special characters like is done for the symbols.
replace_special_chars = $(subst ~,_,$(subst @,_,$(subst :,_,$(subst -,_,$(subst .,_,$(subst /,_,$1))))))
# Display compiler version information.
.PHONY: gccversion
gccversion:
@ -100,9 +103,9 @@ gccversion:
$(V1) $(OBJCOPY) -I binary -O elf32-littlearm --binary-architecture arm \
--rename-section .data=.rodata,alloc,load,readonly,data,contents \
--wildcard \
--redefine-sym _binary_$(subst :,_,$(subst -,_,$(subst .,_,$(subst /,_,$<))))_start=_binary_start \
--redefine-sym _binary_$(subst :,_,$(subst -,_,$(subst .,_,$(subst /,_,$<))))_end=_binary_end \
--redefine-sym _binary_$(subst :,_,$(subst -,_,$(subst .,_,$(subst /,_,$<))))_size=_binary_size \
--redefine-sym _binary_$(call replace_special_chars,$<)_start=_binary_start \
--redefine-sym _binary_$(call replace_special_chars,$<)_end=_binary_end \
--redefine-sym _binary_$(call replace_special_chars,$<)_size=_binary_size \
$< $@
# Create extended listing file/disassambly from ELF output file.