public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
From: "M. J. Everitt" <m.j.everitt@iee.org>
To: gentoo-catalyst@lists.gentoo.org
Subject: [gentoo-catalyst] [PATCH]: Add verbose support for genkernel and callback emerge
Date: Wed, 3 Jan 2018 13:13:32 +0000	[thread overview]
Message-ID: <a20c9435-25c4-ef29-0626-9123ffbbfb18@iee.org> (raw)


[-- Attachment #1.1.1: Type: text/plain, Size: 395 bytes --]

As notified on IRC #gentoo-catalyst, here is my patch for propagating
the 'verbose' option from catalyst through to the genkernel build and
resulting emerge callback (in installcd-stage2).

Tested OK this end (fixed a minor typo in genkernel parameter) ready for
review. I can raise a PR, but here is the 'git format-patch' version for
consideration.

Best regards,

Michael Everitt.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1.2: 0001-Added-verbose-support-for-genkernel-and-callback-eme.patch --]
[-- Type: text/x-patch; name="0001-Added-verbose-support-for-genkernel-and-callback-eme.patch", Size: 1113 bytes --]

From 27c8d4d2bc1df5801632a1b93be5d36984cdbdd8 Mon Sep 17 00:00:00 2001
From: "M. J. Everitt" <m.j.everitt@iee.org>
Date: Wed, 3 Jan 2018 02:00:41 +0000
Subject: [PATCH] Added verbose support for genkernel, and callback emerge

---
 targets/support/kmerge.sh | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/targets/support/kmerge.sh b/targets/support/kmerge.sh
index fc066cc0..9a5daabd 100755
--- a/targets/support/kmerge.sh
+++ b/targets/support/kmerge.sh
@@ -69,6 +69,11 @@ setup_gk_args() {
 			GK_ARGS="${GK_ARGS} --initramfs-overlay=\"${clst_merge_path}\""
 		fi
 	fi
+
+	if [[ "${clst_VERBOSE}" == "true" ]]
+	then
+		GK_ARGS="${GK_ARGS} --loglevel=2"
+	fi
 }
 
 genkernel_compile(){
@@ -92,7 +97,12 @@ genkernel_compile(){
 	esac
 	# Build with genkernel using the set options
 	# callback is put here to avoid escaping issues
-	gk_callback_opts="-qN"
+	if [[ "${clst_VERBOSE}" == "true" ]]
+	then
+		gk_callback_opts="-vN"
+	else
+		gk_callback_opts="-qN"
+	fi
 	PKGDIR=${PKGDIR}
 	if [ -n "${clst_KERNCACHE}" ]
 	then
-- 
2.13.6


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 862 bytes --]

                 reply	other threads:[~2018-01-03 13:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a20c9435-25c4-ef29-0626-9123ffbbfb18@iee.org \
    --to=m.j.everitt@iee.org \
    --cc=gentoo-catalyst@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox