16 |
# set the version here like USE_LINUX_FIRMARE="20110605" |
# set the version here like USE_LINUX_FIRMARE="20110605" |
17 |
# version "internal" keeps the bits too |
# version "internal" keeps the bits too |
18 |
# |
# |
19 |
# ${INCLUDE_KERNELVERSION_FILE}: |
# ${INCLUDE_KERNELVERSION_FILE}: creates a /boot/kernelversion file (deprecated) |
20 |
# ${USE_KERNEL_SYMLINKS}: |
# ${USE_KERNEL_SYMLINKS}: creates symlinks to unversioned kernel image files |
21 |
|
# - kernel-x.x.x.x -> /boot/vmlinuz |
22 |
|
# - initrd-x.x.x.x -> /boot/initrd |
23 |
|
# - config-x.x.x.x -> /boot/config |
24 |
|
# - System.map-x.x.x.x -> /boot/System.map |
25 |
|
|
26 |
sminclude mtools |
sminclude mtools |
27 |
|
|
96 |
DEPEND="${DEPEND} |
DEPEND="${DEPEND} |
97 |
>= sys-kernel/linux-firmware-${LINUX_FIRMWARE}" |
>= sys-kernel/linux-firmware-${LINUX_FIRMWARE}" |
98 |
fi |
fi |
99 |
|
SDEPEND="${SDEPEND} |
100 |
|
>= sys-dev/bc-1.06" |
101 |
: ${DESCRIPTION="Kernel image of the '${PVER}-${BRANCH}-${PBUILD}${KERNEL_ARCH_EXTENSION}' kernel branch."} |
: ${DESCRIPTION="Kernel image of the '${PVER}-${BRANCH}-${PBUILD}${KERNEL_ARCH_EXTENSION}' kernel branch."} |
102 |
;; |
;; |
103 |
|
|
121 |
KBRANCH="${BRANCH}" |
KBRANCH="${BRANCH}" |
122 |
SPECIAL_VARS="${SPECIAL_VARS} KPVER KPBUILD KBRANCH USE_KERNEL_SYMLINKS" |
SPECIAL_VARS="${SPECIAL_VARS} KPVER KPBUILD KBRANCH USE_KERNEL_SYMLINKS" |
123 |
|
|
124 |
|
# dummy function to apply kernel patches |
125 |
|
kernel_apply_patches() |
126 |
|
{ |
127 |
|
return 0 |
128 |
|
} |
129 |
|
|
130 |
kernel_src_prepare() |
kernel_src_prepare() |
131 |
{ |
{ |
132 |
munpack ${SRCFILE} || die |
munpack ${SRCFILE} || die |
137 |
chmod -R a+r-w+X,u+w ${SRCDIR} || die |
chmod -R a+r-w+X,u+w ${SRCDIR} || die |
138 |
|
|
139 |
cd ${SRCDIR} |
cd ${SRCDIR} |
140 |
|
kernel_apply_patches || die |
141 |
|
|
142 |
# fixes INSTALL_PATH to /boot and EXTRAVERSION |
# fixes INSTALL_PATH to /boot and EXTRAVERSION |
143 |
sed -i -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \ |
sed -i -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \ |