Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f5b5c22 authored by Joe Onorato's avatar Joe Onorato Committed by LaMont Jones
Browse files

Save approx 18GB of RAM by not having a bazillion copies of the same modules names

Bug: 280108166
Bug: 278864904
Test: treehugger, m, manual inspection
Merged-In: 2556850
Change-Id: Ib564b3edf4a0523fc8231b8e57a5ba9c42a73294
parent 2467b20c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -597,7 +597,7 @@ endef
define declare-copy-target-license-metadata
$(strip $(if $(filter $(OUT_DIR)%,$(2)),\
  $(eval _tgt:=$(strip $(1)))\
  $(eval ALL_COPIED_TARGETS.$(_tgt).SOURCES := $(ALL_COPIED_TARGETS.$(_tgt).SOURCES) $(filter $(OUT_DIR)%,$(2)))\
  $(eval ALL_COPIED_TARGETS.$(_tgt).SOURCES := $(sort $(ALL_COPIED_TARGETS.$(_tgt).SOURCES) $(filter $(OUT_DIR)%,$(2))))\
  $(eval ALL_COPIED_TARGETS += $(_tgt))))
endef