mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
ANDROID: GKI: Remove duplicates from symbol lists
scripts/gen_gki_modules_headers.sh: Add an option to only keep unique symbols during the symbol list prep phase as for header generation symbol list needs to be unique union of all vendor symbol lists in an ascending order. This reduces the array size and improves the lookup time for the binary search. Bug: 232430739 Test: TH Fixes:13e6a16651("ANDROID: GKI: Header generation fix and improvements") Change-Id: Ib6868f5a8eb0b3713e192bec111804e993e3d085 Signed-off-by: Ramji Jiyani <ramjiyani@google.com> (cherry picked from commit2069048a73)
This commit is contained in:
committed by
Treehugger Robot
parent
87b17926cd
commit
f4011fc8ae
@@ -54,7 +54,7 @@ generate_header() {
|
||||
sed -i '/^[[:space:]]*$/d; /^#/d; /\[abi_symbol_list\]/d' "${symbol_file}"
|
||||
|
||||
# Sort in byte order for kernel binary search at runtime
|
||||
LC_ALL=C sort -o "${symbol_file}" "${symbol_file}"
|
||||
LC_ALL=C sort -u -o "${symbol_file}" "${symbol_file}"
|
||||
|
||||
# Trim white spaces & +1 for null termination
|
||||
local max_name_len=$(awk '
|
||||
|
||||
Reference in New Issue
Block a user