summaryrefslogtreecommitdiff
path: root/bin/bump_injected_nvidia_drivers
diff options
context:
space:
mode:
Diffstat (limited to 'bin/bump_injected_nvidia_drivers')
-rwxr-xr-xbin/bump_injected_nvidia_drivers20
1 files changed, 20 insertions, 0 deletions
diff --git a/bin/bump_injected_nvidia_drivers b/bin/bump_injected_nvidia_drivers
new file mode 100755
index 0000000..9a394e5
--- /dev/null
+++ b/bin/bump_injected_nvidia_drivers
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+. /kogaion/bin/kernels.inc
+
+packages="=x11-drivers/nvidia-drivers-173* =x11-drivers/nvidia-drivers-304*"
+non_kernel_packages="=x11-drivers/nvidia-userspace-173* =x11-drivers/nvidia-userspace-304*"
+ETP_REPO="${ETP_REPO:-kogaion-testing}"
+
+rm -rf /usr/portage/packages/x11-drivers/*
+emerge -B ${non_kernel_packages} || exit 1
+eit inject --to ${ETP_REPO} /usr/portage/packages/x11-drivers/* || exit 1
+
+for kernel in $kernels; do
+ mypackages="${packages}"
+ # build for latest kernel
+ rm -rf /usr/portage/packages/x11-drivers/*
+ KERNEL_DIR="/usr/src/linux-${kernel}" emerge -B ${mypackages} || exit 1
+ eit inject --to ${ETP_REPO} /usr/portage/packages/x11-drivers/*
+ echo
+done