--- klibc-1.5.15.ebuild_orig 2009-09-15 20:57:52.983106698 -0400 +++ klibc-1.5.15.ebuild 2009-09-15 21:21:00.495106639 -0400 @@ -51,6 +51,31 @@ # Do not strip RESTRICT="strip" +kernel_asm_arch() { + a="${1:${ARCH}}" + case ${a} in + # Merged arches + x86|amd64) echo x86 ;; + ppc*) echo powerpc ;; + # Non-merged + alpha|arm|ia64|m68k|mips|sh|sparc*) echo ${1} ;; + *) die "TODO: Update the code for your asm-ARCH symlink" ;; + esac +} + +# For a given Gentoo ARCH, +# specify the kernel defconfig most relevant +kernel_defconfig() { + a="${1:${ARCH}}" + # most, but not all arches have a sanely named defconfig + case ${a} in + ppc64) echo ppc64_defconfig ;; + ppc) echo pmac32_defconfig ;; + sh*) die "TODO: Your arch is not supported by the klibc ebuild. Please suggest a defconfig in a bug." ;; + *) echo defconfig ;; + esac +} + src_unpack() { unpack linux-${OKV}.tar.bz2 ${P}.tar.bz2 [ -n "${PKV}" ] && EPATCH_OPTS="-d ${KS} -p1" epatch "${DISTDIR}"/patch-${PKV}.bz2 @@ -79,19 +104,6 @@ epatch "${FILESDIR}"/${PN}-1.5.11-x86_64-io.h-return.diff } -# For a given Gentoo ARCH, -# specify the kernel defconfig most relevant -kernel_defconfig() { - a="${1:${ARCH}}" - # most, but not all arches have a sanely named defconfig - case ${a} in - ppc64) echo ppc64_defconfig ;; - ppc) echo pmac32_defconfig ;; - sh*) die "TODO: Your arch is not supported by the klibc ebuild. Please suggest a defconfig in a bug." ;; - *) echo defconfig ;; - esac -} - # klibc has it's own ideas of arches # They reflect userspace strictly. # This functions maps from a Gentoo ARCH, to an arch that klibc expects @@ -106,18 +118,6 @@ esac } -kernel_asm_arch() { - a="${1:${ARCH}}" - case ${a} in - # Merged arches - x86|amd64) echo x86 ;; - ppc*) echo powerpc ;; - # Non-merged - alpha|arm|ia64|m68k|mips|sh|sparc*) echo ${1} ;; - *) die "TODO: Update the code for your asm-ARCH symlink" ;; - esac -} - src_compile() { local myargs="all" local myARCH="${ARCH}" myABI="${ABI}"