ANDROID: GKI: Do not modify protected exports source list
Header generation script is using the protected exports list as a source to generate the header file during the kernel build. Script preporcess the symbols in-place before using it to generate an array of symbols for protected exports causing the source file to change. This may force the kleaf to build kernel again even though there are no real changes in terms of symbols. Use a copy as a temp file for processing leaving the source file un affected. Unprotected symbol list is already a temp file; so it doesn't affect that target. Bug: 268678245 Test: TH Change-Id: Ifb551639451d1c7bd935ff732bd1959647c014d7 Signed-off-by: Ramji Jiyani <ramjiyani@google.com> (cherry picked from commit 19ce16cc96bf3ddde675f9245b3df7ac6afd0e3a)
This commit is contained in:
parent
dec4cb5ca6
commit
3e08ef692d
1 changed files with 4 additions and 1 deletions
|
|
@ -100,7 +100,10 @@ if [ "$(basename "${TARGET}")" = "gki_module_unprotected.h" ]; then
|
|||
generate_header "${TARGET}" "${GKI_VENDOR_SYMBOLS}" "unprotected"
|
||||
else
|
||||
# Sorted list of exported symbols
|
||||
GKI_EXPORTED_SYMBOLS="${SYMBOL_LIST}"
|
||||
GKI_EXPORTED_SYMBOLS="${OUT_DIR}/protected_exports"
|
||||
|
||||
# Make a temp copy to avoid changing source during pre-processing
|
||||
cp -f "${SYMBOL_LIST}" "${GKI_EXPORTED_SYMBOLS}"
|
||||
|
||||
generate_header "${TARGET}" "${GKI_EXPORTED_SYMBOLS}" "protected_exports"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue