makefile/archive: fix build break if object target is split to multi-part

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2023-09-13 15:13:15 +08:00 committed by Xiang Xiao
parent facc9ddc63
commit 1f96e32fcd

View File

@ -211,7 +211,7 @@ $(ZIGOBJS): %$(ZIGEXT)$(SUFFIX)$(OBJEXT): %$(ZIGEXT)
.built: $(OBJS)
$(call SPLITVARIABLE,ALL_OBJS,$(OBJS),100)
$(foreach BATCH, $(ALL_OBJS_TOTAL), \
$(call ARLOCK, $(call CONVERT_PATH,$(BIN)), $(ALL_OBJS_$(BATCH))) \
$(shell $(call ARLOCK, $(call CONVERT_PATH,$(BIN)), $(ALL_OBJS_$(BATCH)))) \
)
$(Q) touch $@