147 |
cd ${SRCDIR} |
cd ${SRCDIR} |
148 |
kernel_apply_patches || die |
kernel_apply_patches || die |
149 |
|
|
150 |
|
# fix permissions after the patchwork |
151 |
|
# gnu patch doesn't support git-style file mode |
152 |
|
if [ -e tools/objtool/sync-check.sh ] |
153 |
|
then |
154 |
|
chmod +x tools/objtool/sync-check.sh || die |
155 |
|
fi |
156 |
|
|
157 |
# fixes INSTALL_PATH to /boot and EXTRAVERSION |
# fixes INSTALL_PATH to /boot and EXTRAVERSION |
158 |
sed -i -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \ |
sed -i -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \ |
159 |
-e "s:^\(EXTRAVERSION =\).*:\1 ${EXTRAVERSION}:" Makefile || die |
-e "s:^\(EXTRAVERSION =\).*:\1 ${EXTRAVERSION}:" Makefile || die |
448 |
# do not run this if ${MROOT} is set ! |
# do not run this if ${MROOT} is set ! |
449 |
if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
450 |
then |
then |
451 |
new-kernel-pkg -v --mkinitrd --make-default --install ${KPVER}-${KBRANCH}-${KPBUILD} |
new-kernel-pkg -v --mkinitrd --dracut --make-default --install ${KPVER}-${KBRANCH}-${KPBUILD} |
452 |
fi |
fi |
453 |
|
|
454 |
if [[ ${USE_KERNEL_SYMLINKS} = true ]] |
if [[ ${USE_KERNEL_SYMLINKS} = true ]] |