Skip to content

Commit

Permalink
Reworking ZFS build lock in RT kernels
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Gorski <[email protected]>
  • Loading branch information
sirlucjan committed Nov 2, 2023
1 parent 126e339 commit f976981
Show file tree
Hide file tree
Showing 16 changed files with 64 additions and 24 deletions.
2 changes: 1 addition & 1 deletion linux-bore/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated by makepkg 6.0.2
# Wed Nov 1 20:57:21 UTC 2023
# Thu Nov 2 22:06:43 UTC 2023
pkgbase = linux-bore
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.6.0
Expand Down
9 changes: 7 additions & 2 deletions linux-bore/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ source=(
"auto-cpu-optimization.sh"
"${_patchsource}/all/0001-cachyos-base-all.patch")

# WARNING The ZFS module doesn't build with selected RT sched due to licensing issues."
if [[ "$_cpusched" = "rt" || "$_cpusched" = "bore-rt" ]]; then
unset _build_zfs
fi

# ZFS support
if [ -n "$_build_zfs" ]; then
makedepends+=(git)
Expand Down Expand Up @@ -678,7 +683,7 @@ build() {
make ${BUILD_FLAGS[*]} ${MODULE_FLAGS[*]} -j$(nproc) modules
fi

if [[ "$_cpusched" != "rt" || "$_cpusched" != "bore-rt" ]] && [ -n "$_build_zfs" ]; then
if [ -n "$_build_zfs" ]; then
cd ${srcdir}/"zfs"

local CONFIGURE_FLAGS=()
Expand Down Expand Up @@ -857,7 +862,7 @@ _package-schedulers() {
}

pkgname=("$pkgbase" "$pkgbase-headers")
[[ "$_cpusched" != "rt" || "$_cpusched" != "bore-rt" ]] && [ -n "$_build_zfs" ] && pkgname+=("$pkgbase-zfs")
[ -n "$_build_zfs" ] && pkgname+=("$pkgbase-zfs")
[ -n "$_build_nvidia" ] && pkgname+=("$pkgbase-nvidia")
[ "$_cpusched" = "sched-ext" ] && pkgname+=("$pkgbase-schedulers")
for _p in "${pkgname[@]}"; do
Expand Down
2 changes: 1 addition & 1 deletion linux-cachyos-bore-rt/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated by makepkg 6.0.2
# Wed Nov 1 20:58:03 UTC 2023
# Thu Nov 2 22:15:31 UTC 2023
pkgbase = linux-cachyos-bore-rt
pkgdesc = Linux kernel with BORE-RT patches by CachyOS with other patches and improvements
pkgver = 6.6.0
Expand Down
9 changes: 7 additions & 2 deletions linux-cachyos-bore-rt/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ source=(
"auto-cpu-optimization.sh"
"${_patchsource}/all/0001-cachyos-base-all.patch")

# WARNING The ZFS module doesn't build with selected RT sched due to licensing issues."
if [[ "$_cpusched" = "rt" || "$_cpusched" = "bore-rt" ]]; then
unset _build_zfs
fi

# ZFS support
if [ -n "$_build_zfs" ]; then
makedepends+=(git)
Expand Down Expand Up @@ -678,7 +683,7 @@ build() {
make ${BUILD_FLAGS[*]} ${MODULE_FLAGS[*]} -j$(nproc) modules
fi

if [[ "$_cpusched" != "rt" || "$_cpusched" != "bore-rt" ]] && [ -n "$_build_zfs" ]; then
if [ -n "$_build_zfs" ]; then
cd ${srcdir}/"zfs"

local CONFIGURE_FLAGS=()
Expand Down Expand Up @@ -857,7 +862,7 @@ _package-schedulers() {
}

pkgname=("$pkgbase" "$pkgbase-headers")
[[ "$_cpusched" != "rt" || "$_cpusched" != "bore-rt" ]] && [ -n "$_build_zfs" ] && pkgname+=("$pkgbase-zfs")
[ -n "$_build_zfs" ] && pkgname+=("$pkgbase-zfs")
[ -n "$_build_nvidia" ] && pkgname+=("$pkgbase-nvidia")
[ "$_cpusched" = "sched-ext" ] && pkgname+=("$pkgbase-schedulers")
for _p in "${pkgname[@]}"; do
Expand Down
2 changes: 1 addition & 1 deletion linux-cachyos-bore/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated by makepkg 6.0.2
# Wed Nov 1 20:57:49 UTC 2023
# Thu Nov 2 22:07:46 UTC 2023
pkgbase = linux-cachyos-bore
pkgdesc = Linux BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.6.0
Expand Down
9 changes: 7 additions & 2 deletions linux-cachyos-bore/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ source=(
"auto-cpu-optimization.sh"
"${_patchsource}/all/0001-cachyos-base-all.patch")

# WARNING The ZFS module doesn't build with selected RT sched due to licensing issues."
if [[ "$_cpusched" = "rt" || "$_cpusched" = "bore-rt" ]]; then
unset _build_zfs
fi

# ZFS support
if [ -n "$_build_zfs" ]; then
makedepends+=(git)
Expand Down Expand Up @@ -678,7 +683,7 @@ build() {
make ${BUILD_FLAGS[*]} ${MODULE_FLAGS[*]} -j$(nproc) modules
fi

if [[ "$_cpusched" != "rt" || "$_cpusched" != "bore-rt" ]] && [ -n "$_build_zfs" ]; then
if [ -n "$_build_zfs" ]; then
cd ${srcdir}/"zfs"

local CONFIGURE_FLAGS=()
Expand Down Expand Up @@ -857,7 +862,7 @@ _package-schedulers() {
}

pkgname=("$pkgbase" "$pkgbase-headers")
[[ "$_cpusched" != "rt" || "$_cpusched" != "bore-rt" ]] && [ -n "$_build_zfs" ] && pkgname+=("$pkgbase-zfs")
[ -n "$_build_zfs" ] && pkgname+=("$pkgbase-zfs")
[ -n "$_build_nvidia" ] && pkgname+=("$pkgbase-nvidia")
[ "$_cpusched" = "sched-ext" ] && pkgname+=("$pkgbase-schedulers")
for _p in "${pkgname[@]}"; do
Expand Down
2 changes: 1 addition & 1 deletion linux-cachyos-eevdf/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated by makepkg 6.0.2
# Wed Nov 1 20:58:17 UTC 2023
# Thu Nov 2 22:08:50 UTC 2023
pkgbase = linux-cachyos-eevdf
pkgdesc = Linux EEVDF scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.6.0
Expand Down
9 changes: 7 additions & 2 deletions linux-cachyos-eevdf/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ source=(
"auto-cpu-optimization.sh"
"${_patchsource}/all/0001-cachyos-base-all.patch")

# WARNING The ZFS module doesn't build with selected RT sched due to licensing issues."
if [[ "$_cpusched" = "rt" || "$_cpusched" = "bore-rt" ]]; then
unset _build_zfs
fi

# ZFS support
if [ -n "$_build_zfs" ]; then
makedepends+=(git)
Expand Down Expand Up @@ -678,7 +683,7 @@ build() {
make ${BUILD_FLAGS[*]} ${MODULE_FLAGS[*]} -j$(nproc) modules
fi

if [[ "$_cpusched" != "rt" || "$_cpusched" != "bore-rt" ]] && [ -n "$_build_zfs" ]; then
if [ -n "$_build_zfs" ]; then
cd ${srcdir}/"zfs"

local CONFIGURE_FLAGS=()
Expand Down Expand Up @@ -857,7 +862,7 @@ _package-schedulers() {
}

pkgname=("$pkgbase" "$pkgbase-headers")
[[ "$_cpusched" != "rt" || "$_cpusched" != "bore-rt" ]] && [ -n "$_build_zfs" ] && pkgname+=("$pkgbase-zfs")
[ -n "$_build_zfs" ] && pkgname+=("$pkgbase-zfs")
[ -n "$_build_nvidia" ] && pkgname+=("$pkgbase-nvidia")
[ "$_cpusched" = "sched-ext" ] && pkgname+=("$pkgbase-schedulers")
for _p in "${pkgname[@]}"; do
Expand Down
2 changes: 1 addition & 1 deletion linux-cachyos-rc/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated by makepkg 6.0.2
# Wed Nov 1 20:59:03 UTC 2023
# Thu Nov 2 22:09:54 UTC 2023
pkgbase = linux-cachyos-rc
pkgdesc = Linux EEVDF-BORE scheduler Kernel by CachyOS and with some other patches and other improvements
pkgver = 6.6.rc7
Expand Down
9 changes: 7 additions & 2 deletions linux-cachyos-rc/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@ source=(
"auto-cpu-optimization.sh"
"${_patchsource}/all/0001-cachyos-base-all.patch")

# WARNING The ZFS module doesn't build with selected RT sched due to licensing issues."
if [[ "$_cpusched" = "rt" || "$_cpusched" = "bore-rt" ]]; then
unset _build_zfs
fi

# ZFS support
if [ -n "$_build_zfs" ]; then
makedepends+=(git)
Expand Down Expand Up @@ -677,7 +682,7 @@ build() {
make ${BUILD_FLAGS[*]} ${MODULE_FLAGS[*]} -j$(nproc) modules
fi

if [[ "$_cpusched" != "rt" || "$_cpusched" != "bore-rt" ]] && [ -n "$_build_zfs" ]; then
if [ -n "$_build_zfs" ]; then
cd ${srcdir}/"zfs"

local CONFIGURE_FLAGS=()
Expand Down Expand Up @@ -859,7 +864,7 @@ _package-schedulers() {
}

pkgname=("$pkgbase" "$pkgbase-headers")
[[ "$_cpusched" != "rt" || "$_cpusched" != "bore-rt" ]] && [ -n "$_build_zfs" ] && pkgname+=("$pkgbase-zfs")
[ -n "$_build_zfs" ] && pkgname+=("$pkgbase-zfs")
[ -n "$_build_nvidia" ] && pkgname+=("$pkgbase-nvidia")
[ "$_cpusched" = "sched-ext" ] && pkgname+=("$pkgbase-schedulers")
for _p in "${pkgname[@]}"; do
Expand Down
2 changes: 1 addition & 1 deletion linux-cachyos-rt/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated by makepkg 6.0.2
# Wed Nov 1 20:59:18 UTC 2023
# Thu Nov 2 22:10:26 UTC 2023
pkgbase = linux-cachyos-rt
pkgdesc = Linux kernel with RT patches by CachyOS with other patches and improvements
pkgver = 6.6.0
Expand Down
9 changes: 7 additions & 2 deletions linux-cachyos-rt/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ source=(
"auto-cpu-optimization.sh"
"${_patchsource}/all/0001-cachyos-base-all.patch")

# WARNING The ZFS module doesn't build with selected RT sched due to licensing issues."
if [[ "$_cpusched" = "rt" || "$_cpusched" = "bore-rt" ]]; then
unset _build_zfs
fi

# ZFS support
if [ -n "$_build_zfs" ]; then
makedepends+=(git)
Expand Down Expand Up @@ -678,7 +683,7 @@ build() {
make ${BUILD_FLAGS[*]} ${MODULE_FLAGS[*]} -j$(nproc) modules
fi

if [[ "$_cpusched" != "rt" || "$_cpusched" != "bore-rt" ]] && [ -n "$_build_zfs" ]; then
if [ -n "$_build_zfs" ]; then
cd ${srcdir}/"zfs"

local CONFIGURE_FLAGS=()
Expand Down Expand Up @@ -857,7 +862,7 @@ _package-schedulers() {
}

pkgname=("$pkgbase" "$pkgbase-headers")
[[ "$_cpusched" != "rt" || "$_cpusched" != "bore-rt" ]] && [ -n "$_build_zfs" ] && pkgname+=("$pkgbase-zfs")
[ -n "$_build_zfs" ] && pkgname+=("$pkgbase-zfs")
[ -n "$_build_nvidia" ] && pkgname+=("$pkgbase-nvidia")
[ "$_cpusched" = "sched-ext" ] && pkgname+=("$pkgbase-schedulers")
for _p in "${pkgname[@]}"; do
Expand Down
2 changes: 1 addition & 1 deletion linux-cachyos-server/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated by makepkg 6.0.2
# Wed Nov 1 20:59:32 UTC 2023
# Thu Nov 2 22:10:58 UTC 2023
pkgbase = linux-cachyos-server
pkgdesc = Linux EEVDF scheduler Kernel by CachyOS targeted for Servers
pkgver = 6.6.0
Expand Down
9 changes: 7 additions & 2 deletions linux-cachyos-server/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ source=(
"auto-cpu-optimization.sh"
"${_patchsource}/all/0001-cachyos-base-all.patch")

# WARNING The ZFS module doesn't build with selected RT sched due to licensing issues."
if [[ "$_cpusched" = "rt" || "$_cpusched" = "bore-rt" ]]; then
unset _build_zfs
fi

# ZFS support
if [ -n "$_build_zfs" ]; then
makedepends+=(git)
Expand Down Expand Up @@ -678,7 +683,7 @@ build() {
make ${BUILD_FLAGS[*]} ${MODULE_FLAGS[*]} -j$(nproc) modules
fi

if [[ "$_cpusched" != "rt" || "$_cpusched" != "bore-rt" ]] && [ -n "$_build_zfs" ]; then
if [ -n "$_build_zfs" ]; then
cd ${srcdir}/"zfs"

local CONFIGURE_FLAGS=()
Expand Down Expand Up @@ -857,7 +862,7 @@ _package-schedulers() {
}

pkgname=("$pkgbase" "$pkgbase-headers")
[[ "$_cpusched" != "rt" || "$_cpusched" != "bore-rt" ]] && [ -n "$_build_zfs" ] && pkgname+=("$pkgbase-zfs")
[ -n "$_build_zfs" ] && pkgname+=("$pkgbase-zfs")
[ -n "$_build_nvidia" ] && pkgname+=("$pkgbase-nvidia")
[ "$_cpusched" = "sched-ext" ] && pkgname+=("$pkgbase-schedulers")
for _p in "${pkgname[@]}"; do
Expand Down
2 changes: 1 addition & 1 deletion linux-cachyos/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated by makepkg 6.0.2
# Wed Nov 1 20:57:36 UTC 2023
# Thu Nov 2 22:07:15 UTC 2023
pkgbase = linux-cachyos
pkgdesc = Linux EEVDF-BORE scheduler Kernel by CachyOS with other patches and improvements
pkgver = 6.6.0
Expand Down
9 changes: 7 additions & 2 deletions linux-cachyos/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ source=(
"auto-cpu-optimization.sh"
"${_patchsource}/all/0001-cachyos-base-all.patch")

# WARNING The ZFS module doesn't build with selected RT sched due to licensing issues."
if [[ "$_cpusched" = "rt" || "$_cpusched" = "bore-rt" ]]; then
unset _build_zfs
fi

# ZFS support
if [ -n "$_build_zfs" ]; then
makedepends+=(git)
Expand Down Expand Up @@ -678,7 +683,7 @@ build() {
make ${BUILD_FLAGS[*]} ${MODULE_FLAGS[*]} -j$(nproc) modules
fi

if [[ "$_cpusched" != "rt" || "$_cpusched" != "bore-rt" ]] && [ -n "$_build_zfs" ]; then
if [ -n "$_build_zfs" ]; then
cd ${srcdir}/"zfs"

local CONFIGURE_FLAGS=()
Expand Down Expand Up @@ -857,7 +862,7 @@ _package-schedulers() {
}

pkgname=("$pkgbase" "$pkgbase-headers")
[[ "$_cpusched" != "rt" || "$_cpusched" != "bore-rt" ]] && [ -n "$_build_zfs" ] && pkgname+=("$pkgbase-zfs")
[ -n "$_build_zfs" ] && pkgname+=("$pkgbase-zfs")
[ -n "$_build_nvidia" ] && pkgname+=("$pkgbase-nvidia")
[ "$_cpusched" = "sched-ext" ] && pkgname+=("$pkgbase-schedulers")
for _p in "${pkgname[@]}"; do
Expand Down

0 comments on commit f976981

Please sign in to comment.