113 |
KBRANCH="${BRANCH}" |
KBRANCH="${BRANCH}" |
114 |
SPECIAL_VARS="${SPECIAL_VARS} KPVER KPBUILD KBRANCH" |
SPECIAL_VARS="${SPECIAL_VARS} KPVER KPBUILD KBRANCH" |
115 |
|
|
116 |
|
# dummy function to apply kernel patches |
117 |
|
kernel_apply_patches() |
118 |
|
{ |
119 |
|
return 0 |
120 |
|
} |
121 |
|
|
122 |
kernel_src_prepare() |
kernel_src_prepare() |
123 |
{ |
{ |
124 |
munpack ${SRCFILE} || die |
munpack ${SRCFILE} || die |
129 |
chmod -R a+r-w+X,u+w ${SRCDIR} || die |
chmod -R a+r-w+X,u+w ${SRCDIR} || die |
130 |
|
|
131 |
cd ${SRCDIR} |
cd ${SRCDIR} |
132 |
|
kernel_apply_patches || die |
133 |
|
|
134 |
# fixes INSTALL_PATH to /boot and EXTRAVERSION |
# fixes INSTALL_PATH to /boot and EXTRAVERSION |
135 |
sed -i -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \ |
sed -i -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \ |
140 |
if [[ ${PVER%%.*} -gt 2 ]] |
if [[ ${PVER%%.*} -gt 2 ]] |
141 |
then |
then |
142 |
local sublevel="$(echo ${PVER} | cut -d. -f3)" |
local sublevel="$(echo ${PVER} | cut -d. -f3)" |
143 |
sed -i "s:^\(SUBLEVEL =\).*:\1 ${sublevel}:" Makefile || die |
sed -i "s:^\(SUBLEVEL =\).*:\1 ${sublevel}:" Makefile || die |
144 |
fi |
fi |
145 |
} |
} |
146 |
|
|
406 |
if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
407 |
then |
then |
408 |
# remove old image entry from grub |
# remove old image entry from grub |
409 |
new-kernel-pkg -v --rminitrd --remove ${KPVER}-${KBRANCH}-${KPBUILD} |
new-kernel-pkg -v --rminitrd --rmmoddep --remove ${KPVER}-${KBRANCH}-${KPBUILD} |
410 |
fi |
fi |
411 |
} |
} |
412 |
|
|