Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 284957 | Differences between
and this patch

Collapse All | Expand All

(-)klibc-1.5.15.ebuild_orig (-25 / +25 lines)
Lines 51-56 Link Here
51
# Do not strip
51
# Do not strip
52
RESTRICT="strip"
52
RESTRICT="strip"
53
53
54
kernel_asm_arch() {
55
	a="${1:${ARCH}}"
56
	case ${a} in
57
		# Merged arches
58
		x86|amd64) echo x86 ;;
59
		ppc*) echo powerpc ;;
60
		# Non-merged
61
		alpha|arm|ia64|m68k|mips|sh|sparc*) echo ${1} ;;
62
		*) die "TODO: Update the code for your asm-ARCH symlink" ;;
63
	esac
64
}
65
66
# For a given Gentoo ARCH,
67
# specify the kernel defconfig most relevant
68
kernel_defconfig() {
69
	a="${1:${ARCH}}"
70
	# most, but not all arches have a sanely named defconfig
71
	case ${a} in
72
		ppc64) echo ppc64_defconfig ;;
73
		ppc) echo pmac32_defconfig ;;
74
		sh*) die "TODO: Your arch is not supported by the klibc ebuild. Please suggest a defconfig in a bug." ;;
75
		*) echo defconfig ;;
76
	esac
77
}
78
54
src_unpack() {
79
src_unpack() {
55
	unpack linux-${OKV}.tar.bz2 ${P}.tar.bz2
80
	unpack linux-${OKV}.tar.bz2 ${P}.tar.bz2
56
	[ -n "${PKV}" ] && EPATCH_OPTS="-d ${KS} -p1" epatch "${DISTDIR}"/patch-${PKV}.bz2
81
	[ -n "${PKV}" ] && EPATCH_OPTS="-d ${KS} -p1" epatch "${DISTDIR}"/patch-${PKV}.bz2
Lines 79-97 Link Here
79
	epatch "${FILESDIR}"/${PN}-1.5.11-x86_64-io.h-return.diff
104
	epatch "${FILESDIR}"/${PN}-1.5.11-x86_64-io.h-return.diff
80
}
105
}
81
106
82
# For a given Gentoo ARCH,
83
# specify the kernel defconfig most relevant
84
kernel_defconfig() {
85
	a="${1:${ARCH}}"
86
	# most, but not all arches have a sanely named defconfig
87
	case ${a} in
88
		ppc64) echo ppc64_defconfig ;;
89
		ppc) echo pmac32_defconfig ;;
90
		sh*) die "TODO: Your arch is not supported by the klibc ebuild. Please suggest a defconfig in a bug." ;;
91
		*) echo defconfig ;;
92
	esac
93
}
94
95
# klibc has it's own ideas of arches
107
# klibc has it's own ideas of arches
96
# They reflect userspace strictly.
108
# They reflect userspace strictly.
97
# This functions maps from a Gentoo ARCH, to an arch that klibc expects
109
# This functions maps from a Gentoo ARCH, to an arch that klibc expects
Lines 106-123 Link Here
106
	esac
118
	esac
107
}
119
}
108
120
109
kernel_asm_arch() {
110
	a="${1:${ARCH}}"
111
	case ${a} in
112
		# Merged arches
113
		x86|amd64) echo x86 ;;
114
		ppc*) echo powerpc ;;
115
		# Non-merged
116
		alpha|arm|ia64|m68k|mips|sh|sparc*) echo ${1} ;;
117
		*) die "TODO: Update the code for your asm-ARCH symlink" ;;
118
	esac
119
}
120
121
src_compile() {
121
src_compile() {
122
	local myargs="all"
122
	local myargs="all"
123
	local myARCH="${ARCH}" myABI="${ABI}"
123
	local myARCH="${ARCH}" myABI="${ABI}"

Return to bug 284957