summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2016-06-27 09:24:58 +0200
committerUlrich Müller <ulm@gentoo.org>2016-06-27 09:30:08 +0200
commit333d55fbc810077961b8fe346c8157ab25e13597 (patch)
tree72be7369f1f2910b2cde47870add124722f10f1b /eclass/toolchain-funcs.eclass
parentsys-kernel/git-sources: Automated version bump to 4.7_rc5 (diff)
downloadgentoo-333d55fbc810077961b8fe346c8157ab25e13597.tar.gz
gentoo-333d55fbc810077961b8fe346c8157ab25e13597.tar.bz2
gentoo-333d55fbc810077961b8fe346c8157ab25e13597.zip
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.
Diffstat (limited to 'eclass/toolchain-funcs.eclass')
-rw-r--r--eclass/toolchain-funcs.eclass4
1 files changed, 1 insertions, 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;;