linux: slim down kernel

This commit is contained in:
Ella Stanforth 2022-04-23 14:11:10 +00:00
parent a2eec6b648
commit 0f98f828a2

View file

@ -26,11 +26,22 @@ fi
build() { build() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
bad --gmake gmake CC=clang HOSTCC=clang YACC=yacc LLVM=1 LLVM_IAS=1 ARCH=$_arch mod2yesconfig bad --gmake gmake CC=clang HOSTCC=clang YACC=yacc LLVM=1 LLVM_IAS=1 ARCH=$_arch mod2yesconfig
./scripts/config -m CONFIG_DRM
./scripts/config -m CONFIG_SND
./scripts/config -m CONFIG_CFG80211
./scripts/config -m CONFIG_BT
./scripts/config -m CONFIG_IPV6
bad --gmake gmake CC=clang HOSTCC=clang YACC=yacc LLVM=1 LLVM_IAS=1 ARCH=$_arch olddefconfig
sed -i 's/CONFIG_UNWINDER_ORC=y/# CONFIG_UNWINDER_ORC is not set/g' .config sed -i 's/CONFIG_UNWINDER_ORC=y/# CONFIG_UNWINDER_ORC is not set/g' .config
sed -i 's/# CONFIG_UNWINDER_FRAME_POINTER is not set/CONFIG_UNWINDER_FRAME_POINTER=y/g' .config sed -i 's/# CONFIG_UNWINDER_FRAME_POINTER is not set/CONFIG_UNWINDER_FRAME_POINTER=y/g' .config
if [ -z "$FOR_CROSS" ]; then if [ -z "$FOR_CROSS" ]; then
bad --gmake gmake CC=clang HOSTCC=clang YACC=yacc LLVM=1 LLVM_IAS=1 ARCH=$_arch bad --gmake gmake CC=clang HOSTCC=clang YACC=yacc LLVM=1 LLVM_IAS=1 ARCH=$_arch
set +e # depmod causes errors
bad --gmake gmake CC=cc HOSTCC=cc YACC=yacc LLVM=1 LLVM_IAS=1 ARCH=$_arch INSTALL_MOD_PATH=$pkgdir/ modules_install
set -e
fi fi
} }