aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2018-02-18 11:36:23 -0500
committerAnthony G. Basile <blueness@gentoo.org>2018-02-18 11:36:23 -0500
commita7fc9bfe8447be1804066f5c5da4209784960c7e (patch)
tree6463817718d92419e4b4e3d101e46301fcb8a18d
parentgrs/Synchronize.py: checkout the branch before updating the submodule (diff)
downloadgrss-a7fc9bfe8447be1804066f5c5da4209784960c7e.tar.gz
grss-a7fc9bfe8447be1804066f5c5da4209784960c7e.tar.bz2
grss-a7fc9bfe8447be1804066f5c5da4209784960c7e.zip
grs/Kernel.py: use scripts/genkernel.conf if provided
-rw-r--r--grs/Kernel.py3
1 files changed, 3 insertions, 0 deletions
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: