优化编译脚本

This commit is contained in:
2023-07-04 10:36:16 +08:00
parent 99ba4ea209
commit ce457f2266

View File

@@ -31,8 +31,15 @@ cd linux-"$VERSION"* || exit
cp ../config .config
#
# disable DEBUG_INFO to speedup build
scripts/config --disable DEBUG_INFO
scripts/config --set-str SYSTEM_TRUSTED_KEYS ""
scripts/config --set-str SYSTEM_REVOCATION_KEYS ""
scripts/config --undefine DEBUG_INFO
scripts/config --undefine DEBUG_INFO_COMPRESSED
scripts/config --undefine DEBUG_INFO_REDUCED
scripts/config --undefine DEBUG_INFO_SPLIT
scripts/config --undefine GDB_SCRIPTS
scripts/config --set-val DEBUG_INFO_DWARF5 n
scripts/config --set-val DEBUG_INFO_NONE y
# apply patches
# shellcheck source=src/util.sh
# source ../patch.d/*.sh