From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1004279-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 943341382C5
	for <garchives@archives.gentoo.org>; Sun, 18 Feb 2018 16:37:22 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id A182EE0CE3;
	Sun, 18 Feb 2018 16:37:05 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 84099E0CE3
	for <gentoo-commits@lists.gentoo.org>; Sun, 18 Feb 2018 16:37:05 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 380EB335C39
	for <gentoo-commits@lists.gentoo.org>; Sun, 18 Feb 2018 16:37:04 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 18C9A21C
	for <gentoo-commits@lists.gentoo.org>; Sun, 18 Feb 2018 16:37:00 +0000 (UTC)
From: "Anthony G. Basile" <blueness@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" <blueness@gentoo.org>
Message-ID: <1518971783.a7fc9bfe8447be1804066f5c5da4209784960c7e.blueness@gentoo>
Subject: [gentoo-commits] proj/grss:master commit in: grs/
X-VCS-Repository: proj/grss
X-VCS-Files: grs/Kernel.py
X-VCS-Directories: grs/
X-VCS-Committer: blueness
X-VCS-Committer-Name: Anthony G. Basile
X-VCS-Revision: a7fc9bfe8447be1804066f5c5da4209784960c7e
X-VCS-Branch: master
Date: Sun, 18 Feb 2018 16:37:00 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: d236ae51-f317-4db6-826b-5fd9f562117d
X-Archives-Hash: a5839d8f42b5d0f5bda142cf9b9b4575

commit:     a7fc9bfe8447be1804066f5c5da4209784960c7e
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 18 16:36:23 2018 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Feb 18 16:36:23 2018 +0000
URL:        https://gitweb.gentoo.org/proj/grss.git/commit/?id=a7fc9bfe

grs/Kernel.py: use scripts/genkernel.conf if provided

 grs/Kernel.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/grs/Kernel.py b/grs/Kernel.py
index cbe470e..2bc3e72 100644
--- a/grs/Kernel.py
+++ b/grs/Kernel.py
@@ -42,6 +42,7 @@ class Kernel():
         self.logfile = logfile
         self.kernel_config = os.path.join(self.libdir, 'scripts/kernel-config')
         self.busybox_config = os.path.join(self.libdir, 'scripts/busybox-config')
+        self.genkernel_config = os.path.join(self.libdir, 'scripts/genkernel.conf')
 
 
     def parse_kernel_config(self):
@@ -130,6 +131,8 @@ class Kernel():
         cmd += '--arch-override=%s ' % arch
         if os.path.isfile(self.busybox_config):
             cmd += '--busybox-config=%s ' % self.busybox_config
+        if os.path.isfile(self.genkernel_config):
+            cmd += '--config=%s ' % self.genkernel_config):
         if has_modules:
             cmd += 'all'
         else: