Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 702537 Details for
Bug 785754
Allow use of -dist kernels as boot/kernel/gentoo/sources .spec entries
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to kmerge.sh to detect whether a kernel has already been built before proceeding
0001-Detect-whether-or-not-a-dist-kernel-has-already-been.patch (text/plain), 1.33 KB, created by
Kenneth G. Strawn
on 2021-04-26 01:33:22 UTC
(
hide
)
Description:
Patch to kmerge.sh to detect whether a kernel has already been built before proceeding
Filename:
MIME Type:
Creator:
Kenneth G. Strawn
Created:
2021-04-26 01:33:22 UTC
Size:
1.33 KB
patch
obsolete
>From e267231ea94da8c93f75305abfafaf3efe8f6f9f Mon Sep 17 00:00:00 2001 >From: "Kenneth G. Strawn" <Kenny.Strawn@gmail.com> >Date: Sun, 25 Apr 2021 18:26:52 -0700 >Subject: [PATCH] Detect whether or not a -dist kernel has already been built > before attempting to compile > >--- > targets/support/kmerge.sh | 12 ++++++++++-- > 1 file changed, 10 insertions(+), 2 deletions(-) > >diff --git a/targets/support/kmerge.sh b/targets/support/kmerge.sh >index fb67aba6..621a9a24 100755 >--- a/targets/support/kmerge.sh >+++ b/targets/support/kmerge.sh >@@ -60,10 +60,18 @@ genkernel_compile() { > fi > > if [[ -n ${kernel_merge} ]]; then >- genkernel --callback="emerge ${gk_callback_opts[@]} ${kernel_merge}" \ >+ if [[ -n "$(ls /lib/modules)" && "$(ls /lib/modules)" == "*-dist" ]]; then >+ elog "Kernel already compiled as either sys-kernel/gentoo-kernel or sys-kernel/vanilla-kernel; skipping" >+ else >+ genkernel --callback="emerge ${gk_callback_opts[@]} ${kernel_merge}" \ > "${GK_ARGS[@]}" || exit 1 >+ fi > else >- genkernel "${GK_ARGS[@]}" || exit 1 >+ if [[ -n "$(ls /lib/modules)" && "$(ls /lib/modules)" == "*-dist" ]]; then >+ elog "Kernel already compiled as either sys-kernel/gentoo-kernel or sys-kernel/vanilla-kernel; skipping" >+ else >+ genkernel "${GK_ARGS[@]}" || exit 1 >+ fi > fi > } > >-- >2.31.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 785754
:
702537
|
728907