mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-27 21:10:28 +09:00
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 19ce16cc96)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user