From 6b680376fddb0aa3cd5a0edba1be61c5e4b14a31 Mon Sep 17 00:00:00 2001 From: Ramji Jiyani Date: Thu, 20 Jul 2023 17:56:08 -0700 Subject: [PATCH] ANDROID: GKI: Remove temp build file abi_gki_protected_exports abi_gki_protected_exports is a prepped list of symbols protected from being exported by unsigned modules; and input to generate gki_module_protected_exports.h during kernel build. Delete it once header is generated so it is not lingering in the source when kernel sournce is being built in-place i.e. OBJ is not set during the build. Bug: 286529877 Test: Manual verification & TH Change-Id: Ia06db62da03289b8f90917bcd302c81c8a4d31d2 Signed-off-by: Ramji Jiyani --- scripts/gen_gki_modules_headers.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/gen_gki_modules_headers.sh b/scripts/gen_gki_modules_headers.sh index 3aa221a058f4..2adf3b266626 100755 --- a/scripts/gen_gki_modules_headers.sh +++ b/scripts/gen_gki_modules_headers.sh @@ -119,5 +119,10 @@ else fi generate_header "${TARGET}" "${GKI_EXPORTED_SYMBOLS}" "protected_exports" + + # Remove temp file + if [ -f "${GKI_EXPORTED_SYMBOLS}" ]; then + rm -f -- "${GKI_EXPORTED_SYMBOLS}" + fi fi