commit: face3fcd8f63c42a750223236da6c3ebc3d8cb17
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 28 12:31:04 2018 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Jan 28 12:31:04 2018 +0000
URL: https://gitweb.gentoo.org/proj/grss.git/commit/?id=face3fcd
grs/Kernel.py: use scripts/busybox-config if provided
grs/Kernel.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/grs/Kernel.py b/grs/Kernel.py
index bd89ee2..cbe470e 100644
--- a/grs/Kernel.py
+++ b/grs/Kernel.py
@@ -41,6 +41,7 @@ class Kernel():
self.package = package
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')
def parse_kernel_config(self):
@@ -127,10 +128,13 @@ class Kernel():
cmd += '--module-prefix=%s ' % image_dir
cmd += '--modprobedir=%s ' % modprobe_dir
cmd += '--arch-override=%s ' % arch
+ if os.path.isfile(self.busybox_config):
+ cmd += '--busybox-config=%s ' % self.busybox_config
if has_modules:
cmd += 'all'
else:
cmd += 'bzImage'
+
Execute(cmd, timeout=None, logfile=self.logfile)
# Strip the modules to shrink their size enormously!