1 |
commit: 333d55fbc810077961b8fe346c8157ab25e13597 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 27 07:24:58 2016 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 27 07:30:08 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=333d55fb |
7 |
|
8 |
toolchain-funcs.eclass: Remove code that has become redundant. |
9 |
|
10 |
After commit 81c226e451be564a545696f93fc5880ebc160812, type cannot be |
11 |
"kern" in these two places, so ninj would always return its second |
12 |
argument, i.e. it can be replaced by simple echo. |
13 |
|
14 |
eclass/toolchain-funcs.eclass | 4 +--- |
15 |
1 file changed, 1 insertion(+), 3 deletions(-) |
16 |
|
17 |
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass |
18 |
index 2652e0e..2af9b02 100644 |
19 |
--- a/eclass/toolchain-funcs.eclass |
20 |
+++ b/eclass/toolchain-funcs.eclass |
21 |
@@ -497,8 +497,6 @@ ninj() { [[ ${type} == "kern" ]] && echo $1 || echo $2 ; } |
22 |
echo powerpc |
23 |
elif [[ ${host} == powerpc64* ]] ; then |
24 |
echo ppc64 |
25 |
- elif [[ ${PROFILE_ARCH} == "ppc64" ]] ; then |
26 |
- ninj ppc64 ppc |
27 |
else |
28 |
echo ppc |
29 |
fi |
30 |
@@ -522,7 +520,7 @@ ninj() { [[ ${type} == "kern" ]] && echo $1 || echo $2 ; } |
31 |
if [[ ${type} == "kern" ]] ; then |
32 |
echo x86 |
33 |
else |
34 |
- ninj x86_64 amd64 |
35 |
+ echo amd64 |
36 |
fi |
37 |
;; |
38 |
xtensa*) echo xtensa;; |