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
The following commit(s) were added to refs/heads/master by this push:
new a2e6e6c24 Application.mk:execute archive in batches
a2e6e6c24 is described below
commit a2e6e6c2438a162a1c7eee9a9fed12a3b3a00e11
Author: xuxin19 <[email protected]>
AuthorDate: Wed Aug 30 19:57:16 2023 +0800
Application.mk:execute archive in batches
Signed-off-by: xuxin19 <[email protected]>
---
Application.mk | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Application.mk b/Application.mk
index 38dda73ee..7f5936da8 100644
--- a/Application.mk
+++ b/Application.mk
@@ -209,7 +209,10 @@ $(ZIGOBJS): %$(ZIGEXT)$(SUFFIX)$(OBJEXT): %$(ZIGEXT)
$(call ELFCOMPILEZIG, $<, $@), $(call COMPILEZIG, $<, $@))
archive:
- $(call ARCHIVE_ADD, $(call CONVERT_PATH,$(BIN)), $(OBJS))
+ $(call SPLITVARIABLE,ALL_OBJS,$(OBJS),100)
+ $(foreach BATCH, $(ALL_OBJS_TOTAL), \
+ $(call ARCHIVE_ADD, $(call CONVERT_PATH,$(BIN)),
$(ALL_OBJS_$(BATCH))) \
+ )
ifeq ($(BUILD_MODULE),y)