From 10a89081c17fadcb9fad0a14c22ce72ec52f26ee Mon Sep 17 00:00:00 2001 From: xuxin19 Date: Wed, 30 Aug 2023 19:57:16 +0800 Subject: [PATCH] Application.mk:execute archive in batches Signed-off-by: xuxin19 --- Application.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Application.mk b/Application.mk index 38dda73eec..7f5936da8b 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)