105 |
>= sys-kernel/linux-firmware-${LINUX_FIRMWARE}" |
>= sys-kernel/linux-firmware-${LINUX_FIRMWARE}" |
106 |
fi |
fi |
107 |
SDEPEND="${SDEPEND} |
SDEPEND="${SDEPEND} |
108 |
>= sys-dev/bc-1.06" |
>= sys-dev/bc-1.06 |
109 |
|
>= sys-dev/bison-3 |
110 |
|
>= sys-dev/flex-2.6" |
111 |
: ${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."} |
112 |
;; |
;; |
113 |
|
|
149 |
cd ${SRCDIR} |
cd ${SRCDIR} |
150 |
kernel_apply_patches || die |
kernel_apply_patches || die |
151 |
|
|
152 |
|
# fix permissions after the patchwork |
153 |
|
# gnu patch doesn't support git-style file mode |
154 |
|
if [ -e tools/objtool/sync-check.sh ] |
155 |
|
then |
156 |
|
chmod +x tools/objtool/sync-check.sh || die |
157 |
|
fi |
158 |
|
|
159 |
# fixes INSTALL_PATH to /boot and EXTRAVERSION |
# fixes INSTALL_PATH to /boot and EXTRAVERSION |
160 |
sed -i -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \ |
sed -i -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \ |
161 |
-e "s:^\(EXTRAVERSION =\).*:\1 ${EXTRAVERSION}:" Makefile || die |
-e "s:^\(EXTRAVERSION =\).*:\1 ${EXTRAVERSION}:" Makefile || die |
450 |
# do not run this if ${MROOT} is set ! |
# do not run this if ${MROOT} is set ! |
451 |
if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
452 |
then |
then |
453 |
new-kernel-pkg -v --mkinitrd --make-default --install ${KPVER}-${KBRANCH}-${KPBUILD} |
new-kernel-pkg -v --mkinitrd --dracut --make-default --install ${KPVER}-${KBRANCH}-${KPBUILD} |
454 |
fi |
fi |
455 |
|
|
456 |
if [[ ${USE_KERNEL_SYMLINKS} = true ]] |
if [[ ${USE_KERNEL_SYMLINKS} = true ]] |