1 |
commit: 0680193cd7aa2e3e7c1472d31739df157d90e4cb |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 30 00:27:14 2015 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 30 00:27:14 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0680193c |
7 |
|
8 |
sys-firmware/seabios: add USE=debug to control debug output levels |
9 |
|
10 |
sys-firmware/seabios/seabios-1.8.2.ebuild | 14 +++++++++++--- |
11 |
1 file changed, 11 insertions(+), 3 deletions(-) |
12 |
|
13 |
diff --git a/sys-firmware/seabios/seabios-1.8.2.ebuild b/sys-firmware/seabios/seabios-1.8.2.ebuild |
14 |
index 61b1a8d..23e935b 100644 |
15 |
--- a/sys-firmware/seabios/seabios-1.8.2.ebuild |
16 |
+++ b/sys-firmware/seabios/seabios-1.8.2.ebuild |
17 |
@@ -32,9 +32,10 @@ HOMEPAGE="http://www.seabios.org" |
18 |
|
19 |
LICENSE="LGPL-3 GPL-3" |
20 |
SLOT="0" |
21 |
-IUSE="+binary +seavgabios" |
22 |
+IUSE="+binary debug +seavgabios" |
23 |
|
24 |
-REQUIRED_USE="ppc? ( binary ) |
25 |
+REQUIRED_USE="debug? ( !binary ) |
26 |
+ ppc? ( binary ) |
27 |
ppc64? ( binary )" |
28 |
|
29 |
DEPEND=" |
30 |
@@ -73,7 +74,14 @@ src_prepare() { |
31 |
} |
32 |
|
33 |
src_configure() { |
34 |
- use binary || tc-ld-disable-gold #438058 |
35 |
+ use binary && return |
36 |
+ |
37 |
+ tc-ld-disable-gold #438058 |
38 |
+ |
39 |
+ if use debug ; then |
40 |
+ echo "CONFIG_DEBUG_LEVEL=8" >.config |
41 |
+ fi |
42 |
+ _emake config |
43 |
} |
44 |
|
45 |
_emake() { |