Merge pull request #2362 from PX4/master_elf_sizes

Document the the sizes of sections inside the elf files.
This commit is contained in:
Lorenz Meier 2015-06-13 19:38:48 +02:00
commit 7263402cec
3 changed files with 11 additions and 0 deletions

View File

@ -74,6 +74,7 @@ script:
- echo -en 'travis_fold:end:script.3\\r'
- echo 'Building NuttX Firmware..' && echo -en 'travis_fold:start:script.4\\r'
- make -j4
- make size
- ccache -s
- echo -en 'travis_fold:end:script.4\\r'
- zip Firmware.zip Images/*.px4

View File

@ -210,6 +210,7 @@ menuconfig: $(NUTTX_SRC)
$(Q) (cd $(NUTTX_SRC)/configs && $(COPYDIR) $(PX4_BASE)nuttx-configs/$(BOARD) .)
$(Q) (cd $(NUTTX_SRC)tools && ./configure.sh $(BOARD)/nsh)
@$(ECHO) %% Running menuconfig for $(BOARD)
$(Q) $(MAKE) -r -j$(J) -C $(NUTTX_SRC) -r $(MQUIET) oldconfig
$(Q) $(MAKE) -r -j$(J) -C $(NUTTX_SRC) -r $(MQUIET) menuconfig
@$(ECHO) %% Saving configuration file
$(Q)$(COPY) $(NUTTX_SRC).config $(PX4_BASE)nuttx-configs/$(BOARD)/nsh/defconfig
@ -264,6 +265,14 @@ checkgitversion: $(GIT_VER_FILE)
$(ECHO) "#define PX4_GIT_VERSION_BINARY 0x$(GIT_DESC_SHORT)" >> $(GIT_HEADER_FILE); \
$(ECHO) $(GIT_DESC) > $(GIT_VER_FILE); \
fi
#
# Sizes
#
.PHONY: size
size:
$(Q) for elfs in Build/*; do if [ -f $$elfs/firmware.elf ]; then $(SIZE) $$elfs/firmware.elf; fi done
#
# Submodule Checks

View File

@ -92,6 +92,7 @@ export UNZIP_CMD = unzip
export PYTHON = python
export OPENOCD = openocd
export GREP = grep
export SIZE = size
#
# Host-specific paths, hacks and fixups