mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-01 06:54:08 +08:00
Merge pull request #2362 from PX4/master_elf_sizes
Document the the sizes of sections inside the elf files.
This commit is contained in:
commit
7263402cec
@ -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
|
||||
|
||||
9
Makefile
9
Makefile
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user