Skip to content

Commit

Permalink
Fix build break for Argument list too long
Browse files Browse the repository at this point in the history
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
Bug: 140525226
Test: Build pass
Change-Id: I5218c60e6728f2425f3faa7f795c7782c5f817ad
Signed-off-by: Hsiu-Chang Chen <hsiuchangchen@google.com>
(cherry picked from commit ebcd6f7)
Signed-off-by: Kyle Lin <kylelin@google.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
  • Loading branch information
Hsiu-Chang Chen authored and UtsavBalar1231 committed Dec 31, 2020
1 parent a86bf9d commit 5410e87
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/Makefile.build
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5410e87

Please sign in to comment.