Revert "BACKPORT: FROMGIT: module: allow UNUSED_KSYMS_WHITELIST ..."

Revert submission 3101887-android14-ksyms-wl

Reason for revert: Restore green in release builds

Reverted changes: /q/submissionid:3101887-android14-ksyms-wl

Change-Id: If86a1a6c7875bace543381575544590823cd092c
This commit is contained in:
Yifan Hong
2024-05-28 17:12:58 +00:00
committed by Gerrit Code Review
parent 29f2af3ce7
commit 3f13972470
2 changed files with 2 additions and 2 deletions

View File

@@ -311,7 +311,7 @@ config UNUSED_KSYMS_WHITELIST
exported at all times, even in absence of in-tree users. The value to exported at all times, even in absence of in-tree users. The value to
set here is the path to a text file containing the list of symbols, set here is the path to a text file containing the list of symbols,
one per line. The path can be absolute, or relative to the kernel one per line. The path can be absolute, or relative to the kernel
source or obj tree. source tree.
config MODULES_TREE_LOOKUP config MODULES_TREE_LOOKUP
def_bool y def_bool y

View File

@@ -31,7 +31,7 @@ fi
ksym_wl=$(sed -n 's/^CONFIG_UNUSED_KSYMS_WHITELIST=\(.*\)$/\1/p' include/config/auto.conf) ksym_wl=$(sed -n 's/^CONFIG_UNUSED_KSYMS_WHITELIST=\(.*\)$/\1/p' include/config/auto.conf)
if [ -n "$ksym_wl" ]; then if [ -n "$ksym_wl" ]; then
[ "${ksym_wl}" != "${ksym_wl#/}" ] || [ -f "$ksym_wl" ] || ksym_wl="$abs_srctree/$ksym_wl" [ "${ksym_wl}" != "${ksym_wl#/}" ] || ksym_wl="$abs_srctree/$ksym_wl"
if [ ! -f "$ksym_wl" ] || [ ! -r "$ksym_wl" ]; then if [ ! -f "$ksym_wl" ] || [ ! -r "$ksym_wl" ]; then
echo "ERROR: '$ksym_wl' whitelist file not found" >&2 echo "ERROR: '$ksym_wl' whitelist file not found" >&2
exit 1 exit 1