mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
ANDROID: kbuild: avoid excessively long argument lists
With LTO, modules with a large number of compilation units maybe end up exceeding the for loop argument list in the shell. Reduce the probability for this happening by including only the modules that have exported symbols. Bug: 150234396 Change-Id: I4a289aff47e1444aca28d1bd00b125628f39bcd5 Suggested-by: Hsiu-Chang Chen <[email protected]> Signed-off-by: Sami Tolvanen <[email protected]>
This commit is contained in:
parent
7d4ce645d3
commit
a105629b82
1 changed files with 6 additions and 7 deletions
|
|
@ -407,13 +407,12 @@ $(sort $(subdir-obj-y)): $(subdir-ym) ;
|
|||
# combine symversions for later processing
|
||||
quiet_cmd_update_lto_symversions = SYMVER $@
|
||||
ifeq ($(CONFIG_LTO_CLANG) $(CONFIG_MODVERSIONS),y y)
|
||||
cmd_update_lto_symversions = \
|
||||
rm -f [email protected]; \
|
||||
for i in $(filter-out FORCE,$^); do \
|
||||
if [ -f $$i.symversions ]; then \
|
||||
cat $$i.symversions \
|
||||
>> [email protected]; \
|
||||
fi; \
|
||||
cmd_update_lto_symversions = \
|
||||
rm -f [email protected]; \
|
||||
for i in $(foreach n, \
|
||||
$(filter-out FORCE,$^), \
|
||||
$(if $(wildcard $(n).symversions),$(n))); do \
|
||||
cat $$i.symversions >> [email protected]; \
|
||||
done
|
||||
else
|
||||
cmd_update_lto_symversions = echo >/dev/null
|
||||
|
|
|
|||
Loading…
Reference in a new issue