blob: 4fc6d9777302361eeed7845591477cde41425a72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/bin/sh
# PLEASE READ:
# This script recompiles all the kernel-dependent video drivers for
# every currently supported kernel. You can use this script when
# you bump kernels or xorg-server.
. /kogaion/bin/kernels.inc
packages="=x11-drivers/nvidia-drivers-173* =x11-drivers/nvidia-drivers-304* =x11-drivers/nvidia-drivers-313*"
non_injected_packages="x11-drivers/nvidia-drivers x11-drivers/ati-drivers x11-drivers/xf86-video-virtualbox"
general_purpose_packages="media-video/amdcccle"
ETP_REPO="${ETP_REPO:-kogaion-testing}"
for kernel in $kernels; do
mypackages="${packages}"
if [ "${kernel}" != "${running_kernel}" ]; then
mypackages="${mypackages} ${non_injected_packages}"
fi
# 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
# Workout drivers for the running kernel, those non injected
eselect kernel set "linux-${running_kernel}" || exit 1
emerge ${non_injected_packages} ${general_purpose_packages} || exit 1
echo -5 | etc-update
eit add ${non_injected_packages} ${general_purpose_packages} || exit 1
echo "Now you should remove old packages, if you want of course"
|