34 |
if [[ -z ${SRC_URI[*]} ]] |
if [[ -z ${SRC_URI[*]} ]] |
35 |
then |
then |
36 |
SRC_URI=( |
SRC_URI=( |
37 |
http://www.kernel.org/pub/linux/kernel/v$(echo ${PVER} | cut -d. -f1-2)/${SRCFILE} |
http://www.kernel.org/pub/linux/kernel/v$(echo ${PVER} | cut -d. -f1).x/${SRCFILE} |
38 |
http://ftp.uni-erlangen.de/pub/Linux/MIRROR.kernel/v$(echo ${PVER} | cut -d. -f1-2)/${SRCFILE} |
http://ftp.uni-erlangen.de/pub/Linux/MIRROR.kernel/v$(echo ${PVER} | cut -d. -f1).x/${SRCFILE} |
39 |
mirror://kernel-${BRANCH}/${SRCFILE} |
mirror://kernel-${BRANCH}/${SRCFILE} |
40 |
mirror://kernel-${BRANCH}/config-${PVER}-${BRANCH}-${PBUILD}-i686 |
mirror://kernel-${BRANCH}/config-${PVER}-${BRANCH}-${PBUILD}-i686 |
41 |
mirror://kernel-${BRANCH}/config-${PVER}-${BRANCH}-${PBUILD}-x86_64 |
mirror://kernel-${BRANCH}/config-${PVER}-${BRANCH}-${PBUILD}-x86_64 |
99 |
# fixes INSTALL_PATH to /boot and EXTRAVERSION |
# fixes INSTALL_PATH to /boot and EXTRAVERSION |
100 |
sed -i -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \ |
sed -i -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \ |
101 |
-e "s:^\(EXTRAVERSION =\).*:\1 ${EXTRAVERSION}:" Makefile || die |
-e "s:^\(EXTRAVERSION =\).*:\1 ${EXTRAVERSION}:" Makefile || die |
102 |
|
|
103 |
|
# fix sublevel version with 3.x kernels and higher |
104 |
|
local kver=$(echo ${PVER} | sed "s:\.::g") |
105 |
|
if [[ ${PVER%%.*} -gt 2 ]] |
106 |
|
then |
107 |
|
local sublevel="$(echo ${PVER} | cut -d. -f3)" |
108 |
|
sed -i "s:^\(SUBLEVEL =\).*:\1 ${sublevel}:" Makefile || die |
109 |
|
fi |
110 |
} |
} |
111 |
|
|
112 |
kernel_src_compile() |
kernel_src_compile() |