--- branches/magellan-next/include/kernel.sminc 2011/11/25 23:05:58 9314 +++ branches/magellan-next/include/kernel.sminc 2011/12/01 15:50:56 9463 @@ -99,6 +99,14 @@ # fixes INSTALL_PATH to /boot and EXTRAVERSION sed -i -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \ -e "s:^\(EXTRAVERSION =\).*:\1 ${EXTRAVERSION}:" Makefile || die + + # fix sublevel version with 3.x kernels and higher + local kver=$(echo ${PVER} | sed "s:\.::g") + if [[ ${PVER%%.*} -gt 2 ]] + then + local sublevel="$(echo ${PVER} | cut -d. -f3)" + sed -i "s:^\(SUBLEVEL =\).*:\1 ${sublevel}:" Makefile || die + fi } kernel_src_compile()