diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2018-01-28 07:31:04 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2018-01-28 07:31:04 -0500 |
commit | face3fcd8f63c42a750223236da6c3ebc3d8cb17 (patch) | |
tree | bd04e41df29a2cf12885f17315f98c3a3e837238 | |
parent | grs: prettify __init__ arguments (diff) | |
download | grss-face3fcd8f63c42a750223236da6c3ebc3d8cb17.tar.gz grss-face3fcd8f63c42a750223236da6c3ebc3d8cb17.tar.bz2 grss-face3fcd8f63c42a750223236da6c3ebc3d8cb17.zip |
grs/Kernel.py: use scripts/busybox-config if provided
-rw-r--r-- | grs/Kernel.py | 4 |
1 files changed, 4 insertions, 0 deletions
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! |