Fix build break for Argument list too long
Reduce the number of files listed in the for loop statement in function update_lto_symversions to prevent error "Argument list too long" when building kernel in local workstation. Bug: 138277477 Test: Build pass Change-Id: I5218c60e6728f2425f3faa7f795c7782c5f817ad Signed-off-by: Hsiu-Chang Chen <hsiuchangchen@google.com> Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
This commit is contained in:
committed by
UtsavBalar1231
parent
02fe399439
commit
e7ef2d64ee
@@ -500,11 +500,10 @@ ifdef CONFIG_LTO_CLANG
|
||||
# combine symversions for later processing
|
||||
update_lto_symversions = \
|
||||
rm -f $@.symversions; \
|
||||
for i in $(filter-out FORCE,$^); do \
|
||||
if [ -f $$i.symversions ]; then \
|
||||
cat $$i.symversions \
|
||||
>> $@.symversions; \
|
||||
fi; \
|
||||
for i in $(foreach n, \
|
||||
$(filter-out FORCE,$^), \
|
||||
$(if $(wildcard $(n).symversions),$(n))); do \
|
||||
cat $$i.symversions >> $@.symversions; \
|
||||
done;
|
||||
endif
|
||||
# rebuild the symbol table with llvm-ar to include IR files
|
||||
|
||||
Reference in New Issue
Block a user