Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/grss:master commit in: grs/
Date: Sun, 28 Jan 2018 12:31:15
Message-Id: 1517142664.face3fcd8f63c42a750223236da6c3ebc3d8cb17.blueness@gentoo
1 commit: face3fcd8f63c42a750223236da6c3ebc3d8cb17
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 28 12:31:04 2018 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 28 12:31:04 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/grss.git/commit/?id=face3fcd
7
8 grs/Kernel.py: use scripts/busybox-config if provided
9
10 grs/Kernel.py | 4 ++++
11 1 file changed, 4 insertions(+)
12
13 diff --git a/grs/Kernel.py b/grs/Kernel.py
14 index bd89ee2..cbe470e 100644
15 --- a/grs/Kernel.py
16 +++ b/grs/Kernel.py
17 @@ -41,6 +41,7 @@ class Kernel():
18 self.package = package
19 self.logfile = logfile
20 self.kernel_config = os.path.join(self.libdir, 'scripts/kernel-config')
21 + self.busybox_config = os.path.join(self.libdir, 'scripts/busybox-config')
22
23
24 def parse_kernel_config(self):
25 @@ -127,10 +128,13 @@ class Kernel():
26 cmd += '--module-prefix=%s ' % image_dir
27 cmd += '--modprobedir=%s ' % modprobe_dir
28 cmd += '--arch-override=%s ' % arch
29 + if os.path.isfile(self.busybox_config):
30 + cmd += '--busybox-config=%s ' % self.busybox_config
31 if has_modules:
32 cmd += 'all'
33 else:
34 cmd += 'bzImage'
35 +
36 Execute(cmd, timeout=None, logfile=self.logfile)
37
38 # Strip the modules to shrink their size enormously!