From 58e5bc7e74ef9e4862ca29f00739b289b0c27ae2 Mon Sep 17 00:00:00 2001 From: wangjianyu3 Date: Sun, 29 Sep 2024 14:43:21 +0800 Subject: [PATCH] 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 --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bf655a3d4ce..fe39dfe94d3 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) >$@.tmp + $(Q) $(APPDIR)$(DELIM)tools$(DELIM)mksymtab.sh $(BINDIR) $(SYMTABEXT) >$@.tmp $(Q) $(call TESTANDREPLACEFILE, $@.tmp, $@) ifneq ($(CONFIG_ARM_TOOLCHAIN_GHS),y)