This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 58e5bc7e74ef9e4862ca29f00739b289b0c27ae2 Author: wangjianyu3 <[email protected]> AuthorDate: Sun Sep 29 14:43:21 2024 +0800 apps/Makefile: Passing extra arguments to mksymtab.sh https://github.com/apache/nuttx-apps/pull/2637 For example, now can passing file(s) contain additional symbols that may be used in the future to mksymtab.sh by using "-a" option to avoid freuent kernel rebuilds: SYMTABEXT="-a $(XXXX_PREFIX)/platform/nuttx/exports_xxxx_api.txt" ifneq ($(CONFIG_LIBM),) SYMTABEXT+="-a $(XXXX_PREFIX)/platform/nuttx/exports_xxxx_api_math.txt" endif Signed-off-by: wangjianyu3 <[email protected]> --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bf655a3d4..fe39dfe94 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,7 @@ ifeq ($(CONFIG_WINDOWS_NATIVE),y) endif # Symbol table for loadable apps. +# SYMTABEXT: Extra arguments for mksymtab.sh SYMTABSRC = symtab_apps.c SYMTABOBJ = $(SYMTABSRC:.c=$(OBJEXT)) @@ -119,7 +120,7 @@ else $(SYMTABSRC): $(foreach SDIR, $(CONFIGURED_APPS), $(SDIR)_all) $(Q) $(MAKE) install - $(Q) $(APPDIR)$(DELIM)tools$(DELIM)mksymtab.sh $(BINDIR) >[email protected] + $(Q) $(APPDIR)$(DELIM)tools$(DELIM)mksymtab.sh $(BINDIR) $(SYMTABEXT) >[email protected] $(Q) $(call TESTANDREPLACEFILE, [email protected], $@) ifneq ($(CONFIG_ARM_TOOLCHAIN_GHS),y)
