apps/examples/elf: Add an option to strip debug symbols even if the debug symbols are enabled in the base code.
This commit is contained in:
parent
9dcf0c5ecb
commit
12baeaa22d
@ -48,6 +48,17 @@ config EXAMPLES_ELF_DEVPATH
|
||||
|
||||
endif # EXAMPLES_ELF_ROMFS
|
||||
|
||||
config EXAMPLES_ELF_NOSTRIP
|
||||
bool "Do not strip debug symbols"
|
||||
default n
|
||||
depends on DEBUG_SYMBOLS
|
||||
---help---
|
||||
By default, if debug symbols are enabled (via CONFIG_DEBUG_SYMBOLS), then the
|
||||
ELF executables will also retain debug symbols in the resulting ELF binaries.
|
||||
Select this option if you do not want that behavior, this option will permit
|
||||
debug symbols in the base code but will strip debug symbols out of the ELF
|
||||
binaries for a smaller ROM file system image.
|
||||
|
||||
config EXAMPLES_ELF_SYSCALL
|
||||
bool "Link with SYSCALL library"
|
||||
default n
|
||||
|
@ -101,7 +101,7 @@ build: $(foreach DIR, $(BUILD_SUBDIRS), $(DIR)_build)
|
||||
|
||||
install: $(foreach DIR, $(BUILD_SUBDIRS), $(DIR)_install)
|
||||
ifneq ($(STRIP),)
|
||||
ifneq ($(CONFIG_DEBUG_SYMBOLS),y)
|
||||
ifneq ($(CONFIG_EXAMPLES_ELF_NOSTRIP),y)
|
||||
$(Q) $(STRIP) $(wildcard $(FSIMG_SUBDIR)/*)
|
||||
endif
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user