1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
7 hppa*) CTARGET=hppa64-${CHOST#*-};;
8 mips*) CTARGET=${CHOST/mips/mips64};;
9 powerpc*) CTARGET=${CHOST/powerpc/powerpc64};;
10 s390*) CTARGET=${CHOST/s390/s390x};;
11 sparc*) CTARGET=${CHOST/sparc/sparc64};;
12 i?86*) CTARGET=x86_64-${CHOST#*-};;
15 TOOLCHAIN_ALLOWED_LANGS="c"
16 GCC_TARGET_NO_MULTILIB=true
20 inherit eutils toolchain
22 DESCRIPTION="64bit kernel compiler"
24 # Works on mips and sparc; all other archs, refer to bug #228115
27 RDEPEND=">=dev-libs/gmp-4.3.2
30 >=sys-devel/gcc-config-1.4"
31 # unlike every other target, hppa has not unified the 32/64 bit
32 # ports in binutils yet
34 hppa? ( sys-devel/binutils-hppa64 )
35 >=sys-apps/texinfo-4.8
36 >=sys-devel/bison-1.875"
39 toolchain_pkg_postinst
44 cat <<-EOF >${CTARGET%%-*}-linux-${x}
46 exec ${CTARGET}-${x} "\$@"
48 chmod a+rx ${CTARGET%%-*}-linux-${x}