Several improvements (#907)

* Make _llvm_ias="1" the default in customization.cfg

* Remove all git related files after copying source files

* Update PREEMPT_RT's supported kernel subversion and patch revision for 6.8

* Make _libunwind_replace a variable in customization.cfg

* Revise the description of native_intel

* Add ECHO CPU scheduler in customization.cfg
This commit is contained in:
Blackteahamburger
2024-04-08 13:12:35 +08:00
committed by GitHub
parent c81eeaec81
commit 2e887a2d8e
4 changed files with 31 additions and 28 deletions

View File

@@ -112,9 +112,7 @@ if [ "$1" = "install" ] || [ "$1" = "config" ]; then
# Run init script that is also run in PKGBUILD, it will define some env vars that we will use
_tkg_initscript
if [[ "${_compiler}" = "llvm" && "${_distro}" =~ ^(Generic|Gentoo)$ ]]; then
read -p "Replace \"libunwind\" with \"llvm-libunwind\" ? Y/[n]:" _libunwind_replace
if [[ "${_libunwind_replace}" =~ ^(y|yes|Yes|Y)$ ]]; then
if [[ "${_compiler}" = "llvm" && "${_distro}" =~ ^(Generic|Gentoo)$ && "${_libunwind_replace}" = "true" ]]; then
export LDFLAGS_MODULE="-unwindlib=libunwind"
export HOSTLDFLAGS="-unwindlib=libunwind"
fi
@@ -399,7 +397,7 @@ if [ "$1" = "install" ]; then
sudo rm -rf "/usr/src/$_headers_folder_name"
fi
sudo cp -R . "/usr/src/$_headers_folder_name"
sudo rm -rf "/usr/src/$_headers_folder_name/.git"
sudo rm -rf "/usr/src/$_headers_folder_name"/.git*
cd "/usr/src/$_headers_folder_name"
msg2 "Installing modules"