forked from JeremyStarTM/aur-linux-clear
Compare commits
4 commits
YF-use-cur
...
master
Author | SHA1 | Date | |
---|---|---|---|
f2aac1064c | |||
0ce919c973 | |||
28802bcd0b | |||
6fd2cc8bf5 |
2 changed files with 18 additions and 14 deletions
6
.SRCINFO
6
.SRCINFO
|
@ -1,6 +1,6 @@
|
|||
pkgbase = linux-clear
|
||||
pkgdesc = Linux kernel with patches from Clear Linux which allow for higher performance.
|
||||
pkgver = 6.11.7
|
||||
pkgver = 6.11.10
|
||||
pkgrel = 1
|
||||
url = https://git.staropensource.de/JeremyStarTM/aur-linux-clear
|
||||
arch = x86_64
|
||||
|
@ -20,7 +20,7 @@ pkgbase = linux-clear
|
|||
options = !debug
|
||||
source = https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.11.tar.xz
|
||||
source = https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.11.tar.sign
|
||||
source = https://cdn.kernel.org/pub/linux/kernel/v6.x/patch-6.11.7.xz
|
||||
source = https://cdn.kernel.org/pub/linux/kernel/v6.x/patch-6.11.10.xz
|
||||
source = cl-linux::git+https://github.com/clearlinux-pkgs/linux.git#tag=6.11.6-1477
|
||||
source = more-uarches-20241018.tar.gz::https://github.com/graysky2/kernel_compiler_patch/archive/20241018.tar.gz
|
||||
validpgpkeys = ABAF11C65A2970B130ABE3C479BE3E4300411886
|
||||
|
@ -29,7 +29,7 @@ pkgbase = linux-clear
|
|||
validpgpkeys = AC2B29BD34A6AFDDB3F68F35E7BFC8EC95861109
|
||||
sha256sums = 55d2c6c025ebc27810c748d66325dd5bc601e8d32f8581d9e77673529bdacb2e
|
||||
sha256sums = SKIP
|
||||
sha256sums = 4ccabe59805d7efd8165405624695255a87811cbea5c0e1d7a3981c21789b2ec
|
||||
sha256sums = d2a794cfdb4f2979e6aec50e6a6ac3f9242a266df929a1daf923cc701cf88c67
|
||||
sha256sums = SKIP
|
||||
sha256sums = b3fd8b1c5bbd39a577afcccf6f1119fdf83f6d72119f4c0811801bdd51d1bc61
|
||||
|
||||
|
|
26
PKGBUILD
26
PKGBUILD
|
@ -1,5 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
# shellcheck disable=SC2034 disable=SC2048 disable=SC2086 disable=SC2154
|
||||
# Maintainer: JeremyStarTM <jeremystartm@staropensource.de>
|
||||
# Maintainer: Josip Ponjavic <josipponjavic at gmail dot com>
|
||||
# Contributor: yarost12 <yaro330@gmail.com>
|
||||
|
||||
### BUILD OPTIONS
|
||||
# You can modify these settings by executing "env _<setting>=<value> makepkg"
|
||||
|
@ -117,7 +120,7 @@
|
|||
|
||||
# Kernel version
|
||||
_kernel_major=6.11
|
||||
_kernel_minor=7
|
||||
_kernel_minor=10
|
||||
# Clear Linux patches version
|
||||
_clr=6-1477
|
||||
# kernel_compiler_patch version
|
||||
|
@ -148,9 +151,9 @@ source=(
|
|||
|
||||
[[ -n "${_use_llvm_lto}" ]] && BUILD_FLAGS=("LLVM=1" "LLVM_IAS=1")
|
||||
|
||||
export KBUILD_BUILD_HOST=archlinux
|
||||
export KBUILD_BUILD_USER=${pkgbase}
|
||||
export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"
|
||||
export "KBUILD_BUILD_HOST=archlinux"
|
||||
export "KBUILD_BUILD_USER=${pkgbase}"
|
||||
export "KBUILD_BUILD_TIMESTAMP=$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"
|
||||
|
||||
# Applies all patches
|
||||
apply_patches() {
|
||||
|
@ -175,8 +178,8 @@ apply_patches() {
|
|||
|
||||
# Copies the kernel config
|
||||
copy_defconfig() {
|
||||
local _cur_major_ver="$(zcat /proc/config.gz | grep Linux | grep -o '[0-9]*[0-9]\.[0-9]*[0-9]')"
|
||||
[[ ${_cur_major_ver} != ${_kernel_major} ]] &&
|
||||
local "_cur_major_ver=$(zcat /proc/config.gz | grep Linux | grep -o '[0-9]*[0-9]\.[0-9]*[0-9]')"
|
||||
[[ "${_cur_major_ver}" != "${_kernel_major}" ]] &&
|
||||
warning "Major version was updated, you should regen the defconfig"
|
||||
|
||||
if [[ -s /proc/config.gz ]]; then
|
||||
|
@ -295,6 +298,7 @@ update_defconfig() {
|
|||
[[ -n "$_makenconfig" ]] && make ${BUILD_FLAGS[*]} nconfig
|
||||
|
||||
# Save configuration
|
||||
# shellcheck disable=SC2015
|
||||
[[ -n "${_copyfinalconfig}" ]] && cp -Tf ./.config "${startdir}/kconfig-new" || true
|
||||
}
|
||||
|
||||
|
@ -336,7 +340,7 @@ _package() {
|
|||
install=linux.install
|
||||
|
||||
cd "${_src_linux}" || exit 1
|
||||
local modulesdir="${pkgdir}/usr/lib/modules/$(<version)"
|
||||
local "modulesdir=${pkgdir}/usr/lib/modules/$(<version)"
|
||||
|
||||
# Create boot image
|
||||
# systemd expects to find the kernel there to allow hibernation
|
||||
|
@ -360,7 +364,7 @@ _package-headers() {
|
|||
depends=("pahole")
|
||||
|
||||
cd "${_src_linux}" || exit 1
|
||||
local builddir="${pkgdir}/usr/lib/modules/$(<version)/build"
|
||||
local "builddir=${pkgdir}/usr/lib/modules/$(<version)/build"
|
||||
|
||||
install -Dt "${builddir}" -m644 .config Makefile Module.symvers System.map \
|
||||
localversion.* version vmlinux
|
||||
|
@ -437,8 +441,8 @@ _package-headers() {
|
|||
pkgname=("$pkgbase" "$pkgbase-headers")
|
||||
for _p in "${pkgname[@]}"; do
|
||||
eval "package_$_p() {
|
||||
$(declare -f "_package${_p#$pkgbase}")
|
||||
_package${_p#$pkgbase}
|
||||
$(declare -f "_package${_p#"$pkgbase"}")
|
||||
_package${_p#"$pkgbase"}
|
||||
}"
|
||||
done
|
||||
|
||||
|
@ -451,6 +455,6 @@ validpgpkeys=(
|
|||
)
|
||||
sha256sums=("55d2c6c025ebc27810c748d66325dd5bc601e8d32f8581d9e77673529bdacb2e"
|
||||
"SKIP"
|
||||
"4ccabe59805d7efd8165405624695255a87811cbea5c0e1d7a3981c21789b2ec"
|
||||
"d2a794cfdb4f2979e6aec50e6a6ac3f9242a266df929a1daf923cc701cf88c67"
|
||||
"SKIP"
|
||||
"b3fd8b1c5bbd39a577afcccf6f1119fdf83f6d72119f4c0811801bdd51d1bc61")
|
||||
|
|
Loading…
Reference in a new issue