Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion srcpkgs/linux6.19/files/arm64-dotconfig
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ CONFIG_PREEMPT_COUNT=y
CONFIG_PREEMPTION=y
CONFIG_PREEMPT_DYNAMIC=y
CONFIG_SCHED_CORE=y
# CONFIG_SCHED_CLASS_EXT is not set
CONFIG_SCHED_CLASS_EXT=y

#
# CPU/Task time and stats accounting
Expand Down
5 changes: 3 additions & 2 deletions srcpkgs/linux6.19/files/i386-dotconfig
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ CONFIG_HAVE_EBPF_JIT=y
#
CONFIG_BPF_SYSCALL=y
CONFIG_BPF_JIT=y
# CONFIG_BPF_JIT_ALWAYS_ON is not set
CONFIG_BPF_JIT_ALWAYS_ON=y
CONFIG_BPF_JIT_DEFAULT_ON=y
CONFIG_BPF_UNPRIV_DEFAULT_OFF=y
# CONFIG_BPF_PRELOAD is not set
CONFIG_BPF_LSM=y
Expand All @@ -134,7 +135,7 @@ CONFIG_PREEMPT_COUNT=y
CONFIG_PREEMPTION=y
CONFIG_PREEMPT_DYNAMIC=y
CONFIG_SCHED_CORE=y
# CONFIG_SCHED_CLASS_EXT is not set
CONFIG_SCHED_CLASS_EXT=y

#
# CPU/Task time and stats accounting
Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/linux6.19/files/x86_64-dotconfig
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ CONFIG_PREEMPT_COUNT=y
CONFIG_PREEMPTION=y
CONFIG_PREEMPT_DYNAMIC=y
CONFIG_SCHED_CORE=y
# CONFIG_SCHED_CLASS_EXT is not set
CONFIG_SCHED_CLASS_EXT=y

#
# CPU/Task time and stats accounting
Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/linux6.19/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'linux6.19'
pkgname=linux6.19
version=6.19.5
revision=1
revision=2
short_desc="Linux kernel and modules (${version%.*} series)"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="GPL-2.0-only"
Expand Down
5 changes: 5 additions & 0 deletions srcpkgs/scx-loader/files/scx-loader/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
export NO_COLOR=1
[ -d /sys/kernel/sched_ext ] || exit 1
[ -d /sys/kernel/debug ] || exit 2
exec scx_loader 2>&1
32 changes: 32 additions & 0 deletions srcpkgs/scx-loader/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Template file for 'scx-loader'
pkgname=scx-loader
version=1.0.20
revision=1
archs="x86_64* aarch64*"
conf_files=/etc/scx_loader.toml
build_style=cargo
depends="dbus polkit scx"
short_desc="Dbus loader for sched_ext schedulers"
maintainer="Chloé Vulquin <code@toast.bunkerlabs.net>"
license="GPL-2.0-only"
homepage="https://github.com/sched-ext/scx-loader"
distfiles="https://github.com/sched-ext/scx-loader/archive/refs/tags/v${version}.tar.gz"
checksum=24ba8ef16504b74f7d0c0e6d5da21d3dce146ece1e6cf5ba3f6f9085c6c383b3
nocross="cargo:warning=cc1: error: bad value 'armv8-a' for '-march=' switch"

vshare() {
vinstall "$1" "$2" /usr/share/"$3" "$4"
}

do_install() {
vbin target/"$RUST_TARGET"/release/scx_loader
vbin target/"$RUST_TARGET"/release/scxctl

vshare services/org.scx.Loader.service 644 dbus-1/system-services
vshare configs/org.scx.Loader.conf 644 dbus-1/system.d
vshare configs/org.scx.Loader.xml 644 dbus-1/interfaces
vshare configs/org.scx.Loader.policy 644 polkit-1/actions

vconf configs/scx_loader.toml
vsv scx-loader
}
2 changes: 2 additions & 0 deletions srcpkgs/scx/files/00-pseudofs-scx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
mountpoint -q /sys/kernel/debug || mount -o nosuid,noexec,nodev -t debugfs debugfs /sys/kernel/debug
35 changes: 35 additions & 0 deletions srcpkgs/scx/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Template file for 'scx'
pkgname=scx
version=1.0.20
revision=1
archs="x86_64* aarch64*"
build_style=cargo
# fails because it tries to read procfs dynamically
# with bwrap containment even more fail
make_check_args="-- --skip test_thread_operations"
# based on package documentation
# I suspect clang isn't actually used, and may resolve nocross
makedepends="clang libbpf-devel bpftool elfutils-devel zlib-devel libzstd-devel pkgconf libseccomp-devel"
short_desc="Sched_ext schedulers and tools"
maintainer="Chloé Vulquin <code@toast.bunkerlabs.net>"
license="GPL-2.0-only"
homepage="https://github.com/sched-ext/scx"
distfiles="https://github.com/sched-ext/scx/archive/refs/tags/v${version}.tar.gz"
checksum=d9c6b3230915dafe21556da28c6ef2a11f272770f12912842ae1ad23b54d963e
nocross="cargo:warning=cc1: error: bad value 'armv8-a' for '-march=' switch"

# cargo install does not support workspaces
# alternative: specify the wanted packages only
# requires setting do_* manually, but avoids useless build time
do_install() {
# POSIX for find … -maxdepth 1 -executable
find target/"$RUST_TARGET"/release \
! -path target/"$RUST_TARGET"/release -prune \
-type f -perm -0100 -name 'scx*' \
! -name scx_arena_selftests \
-exec install -Dm755 -t "$PKGDESTDIR"/usr/bin '{}' \+
}

post_install() {
vinstall "${FILESDIR}"/00-pseudofs-scx.sh 644 /etc/runit/core-services
}