1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

Merge branch 'OP-484_Stac_Standardize-on-all-application-loads-requiring-a-bootloader'

This commit is contained in:
James Cotton 2011-05-08 23:14:37 -05:00
commit 0b63e9d39c
2 changed files with 12 additions and 7 deletions

View File

@ -1,3 +1,6 @@
# Set up a default goal
.DEFAULT_GOAL := help
# Set up some macros for common directories within the tree
ROOT_DIR=$(CURDIR)
TOOLS_DIR=$(ROOT_DIR)/tools
@ -56,11 +59,13 @@ export V1 := $(AT)
else ifeq ($(V), 1)
endif
.PHONY: areyousureyoushouldberunningthis
areyousureyoushouldberunningthis:
.PHONY: help
help:
@echo
@echo " This Makefile will probably only work on Linux and Mac right now."
@echo " If you're sure you want to be using this, you may wish to try the following targets:"
@echo " This Makefile is known to work on Linux and Mac in a standard shell environment."
@echo " It also works on Windows by following the instructions in make/winx86/README.txt."
@echo
@echo " Here is a summary of the available targets:"
@echo
@echo " [Tool Installers]"
@echo " qt_sdk_install - Install the QT v4.6.2 tools"

View File

@ -71,9 +71,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 /,_,$<)))_start=_binary_start \
--redefine-sym _binary_$(subst -,_,$(subst .,_,$(subst /,_,$<)))_end=_binary_end \
--redefine-sym _binary_$(subst -,_,$(subst .,_,$(subst /,_,$<)))_size=_binary_size \
--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 \
$< $@
# Create extended listing file/disassambly from ELF output file.