From 333d55fbc810077961b8fe346c8157ab25e13597 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ulrich=20M=C3=BCller?= Date: Mon, 27 Jun 2016 09:24:58 +0200 Subject: [PATCH] toolchain-funcs.eclass: Remove code that has become redundant. After commit 81c226e451be564a545696f93fc5880ebc160812, type cannot be "kern" in these two places, so ninj would always return its second argument, i.e. it can be replaced by simple echo. --- eclass/toolchain-funcs.eclass | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index 2652e0eef920..2af9b024ae37 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -497,8 +497,6 @@ ninj() { [[ ${type} == "kern" ]] && echo $1 || echo $2 ; } echo powerpc elif [[ ${host} == powerpc64* ]] ; then echo ppc64 - elif [[ ${PROFILE_ARCH} == "ppc64" ]] ; then - ninj ppc64 ppc else echo ppc fi @@ -522,7 +520,7 @@ ninj() { [[ ${type} == "kern" ]] && echo $1 || echo $2 ; } if [[ ${type} == "kern" ]] ; then echo x86 else - ninj x86_64 amd64 + echo amd64 fi ;; xtensa*) echo xtensa;; -- 2.26.2