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: